qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH] virtio-pci: fix bus master bug setting on load


From: Alexander Graf
Subject: [Qemu-devel] Re: [PATCH] virtio-pci: fix bus master bug setting on load
Date: Thu, 17 Jun 2010 18:01:53 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Alex Williamson wrote:
> The comment suggests we're checking for the driver in the ready
> state and bus master disabled, but the code is checking that it's
> not in the ready state.
>
> Signed-off-by: Alex Williamson <address@hidden>
> Found-by: Amit Shah <address@hidden>
> ---
>
>  hw/virtio-pci.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
> index e101fa0..7a86a81 100644
> --- a/hw/virtio-pci.c
> +++ b/hw/virtio-pci.c
> @@ -155,7 +155,7 @@ static int virtio_pci_load_config(void * opaque, QEMUFile 
> *f)
>  
>      /* Try to find out if the guest has bus master disabled, but is
>         in ready state. Then we have a buggy guest OS. */
> -    if (!(proxy->vdev->status & VIRTIO_CONFIG_S_DRIVER_OK) &&
> +    if ((proxy->vdev->status & VIRTIO_CONFIG_S_DRIVER_OK) &&
>   

Phew - that's an evil one. Thanks for the catch!

Acked-by: Alexander Graf <address@hidden>

Alex




reply via email to

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