qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3 02/16] libqos: read QVIRTIO_MMIO_VERSION register


From: Thomas Huth
Subject: Re: [PATCH v3 02/16] libqos: read QVIRTIO_MMIO_VERSION register
Date: Mon, 21 Oct 2019 11:13:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 19/10/2019 08.37, Stefan Hajnoczi wrote:
> There was no real virtio-mmio ABI change between Legacy and VIRTIO 1.0
> except that the Version field was incremented from 1 to 2.
> 
> However, QEMU does not allow Legacy drivers to perform VIRTIO 1.0
> operations like accessing 64-bit feature bits.  Since we will introduce
> 64-bit feature bit support we need a way to differentiate between
> virtio-mmio Version 1 and 2 to avoid upsetting QEMU when we operate in
> Legacy mode.
> 
> Stash away the Version field so later patches can change behavior
> depending on the version.
> 
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
>  tests/libqos/virtio-mmio.h | 1 +
>  tests/libqos/virtio-mmio.c | 3 +++
>  2 files changed, 4 insertions(+)

Reviewed-by: Thomas Huth <address@hidden>




reply via email to

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