qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] virtio: Prevent double swap due to target pre 1.0 VirtIO


From: Peter Maydell
Subject: Re: [PATCH] virtio: Prevent double swap due to target pre 1.0 VirtIO
Date: Wed, 8 Jan 2020 17:51:30 +0000

On Wed, 8 Jan 2020 at 16:20, Andre Silva <address@hidden> wrote:
>
> Remove the bswap function calls after reading and before writing
> memory bytes in virtio_pci_config_read and virtio_pci_config_write
> because they are reverting back an already swapped bytes

Is "because we wrote it via virtio_pci_config_write" really
the only way that the data read by virtio_pci_config_read
is ever set or updated ?

thanks
-- PMM



reply via email to

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