qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/4] raw: Prohibit dangerous writes for probed i


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 3/4] raw: Prohibit dangerous writes for probed images
Date: Thu, 30 Oct 2014 08:27:08 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 10/30/2014 06:26 AM, Kevin Wolf wrote:
> 
> The other differences of this patch to the old one are that it doesn't
> silently write something different than the guest requested by zeroing
> out some bytes (it fails the request instead) and that it doesn't
> maintain a list of signatures in the raw driver (it calls the usual
> probe function instead).
> 
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
>  block.c                   |  5 +++--

> +
> +        drv = bdrv_probe_all(buf, 512, NULL);
> +        if (drv != bs->drv) {
> +            ret = -EPERM;
> +            goto fail;
> +        }

So, what happens when this returns -EPERM?  If the guest is configured
to halt on write errors, does this halt the guest and send an event to
management?  How does it compare to the case of halting on ENOSPACE?  Is
this particular failure mode something that the host should be able to
easily distinguish from other failure modes?

But I definitely like that you only do this failure on probed images,
and that a user that requests an explicit raw format will never trip up.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]