From: "Gerd Hoffmann" <kraxel@redhat.com>
To: Jeff Brasen <jbrasen@nvidia.com>
Cc: devel@edk2.groups.io, philmd@redhat.com,
ardb+tianocore@kernel.org, jiewen.yao@intel.com,
jordan.l.justen@intel.com
Subject: Re: [PATCH] OvmfPkg/VirtioMmioDeviceLib: virtio 1.0: Fix SetQueueAlignment.
Date: Fri, 24 Mar 2023 13:30:35 +0100 [thread overview]
Message-ID: <qalmafderpsso373fwukddzjxeknghamkhb4ikvq2ei6lw72sg@65uhkks33xgs> (raw)
In-Reply-To: <d38bf982d1884a50f19575efcd2e05f61ebc2cdb.1679621985.git.jbrasen@nvidia.com>
On Fri, Mar 24, 2023 at 01:42:17AM +0000, Jeff Brasen wrote:
> Nothing to do here for virtio 1.0 devices
>
> Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
> ---
> .../Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c
> index 8bdf1e1fc3..de2c5fa2a6 100644
> --- a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c
> +++ b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c
> @@ -144,7 +144,9 @@ VirtioMmioSetQueueAlignment (
>
> Device = VIRTIO_MMIO_DEVICE_FROM_VIRTIO_DEVICE (This);
>
> - VIRTIO_CFG_WRITE (Device, VIRTIO_MMIO_OFFSET_QUEUE_ALIGN, Alignment);
> + if (Device->Version == VIRTIO_MMIO_DEVICE_VERSION_0_95) {
> + VIRTIO_CFG_WRITE (Device, VIRTIO_MMIO_OFFSET_QUEUE_ALIGN, Alignment);
> + }
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
next prev parent reply other threads:[~2023-03-24 12:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-24 1:42 [PATCH] OvmfPkg/VirtioMmioDeviceLib: virtio 1.0: Fix SetQueueAlignment Jeff Brasen
2023-03-24 12:30 ` Gerd Hoffmann [this message]
2023-04-12 11:13 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=qalmafderpsso373fwukddzjxeknghamkhb4ikvq2ei6lw72sg@65uhkks33xgs \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox