From 365b9433458e96df71e1583035d462b5f18d051d Mon Sep 17 00:00:00 2001 From: Brijesh Singh Date: Mon, 14 Aug 2017 07:36:24 -0400 Subject: [PATCH] OvmfPkg/Virtio10Dxe: supply missing BUS_MASTER attribute Virtio devices read and write guest RAM (they don't just decode their IO and/or MMIO BARs), which translates to "bus master". Suggested-by: Laszlo Ersek Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Tom Lendacky Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Brijesh Singh [lersek@redhat.com: expand commit message body] [lersek@redhat.com: remove superfluous whitespace in assignment] Reviewed-by: Laszlo Ersek Regression-tested-by: Laszlo Ersek --- OvmfPkg/Virtio10Dxe/Virtio10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/Virtio10Dxe/Virtio10.c b/OvmfPkg/Virtio10Dxe/Virtio10.c index a8a6a58c3f..d7ea4432bc 100644 --- a/OvmfPkg/Virtio10Dxe/Virtio10.c +++ b/OvmfPkg/Virtio10Dxe/Virtio10.c @@ -906,7 +906,7 @@ Virtio10BindingStart ( goto ClosePciIo; } - SetAttributes = 0; + SetAttributes = EFI_PCI_IO_ATTRIBUTE_BUS_MASTER; UpdateAttributes (&Device->CommonConfig, &SetAttributes); UpdateAttributes (&Device->NotifyConfig, &SetAttributes); UpdateAttributes (&Device->SpecificConfig, &SetAttributes); -- 2.39.2