summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Virtio10Dxe/Virtio10.c
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2017-08-14 07:36:24 -0400
committerLaszlo Ersek <lersek@redhat.com>2017-08-15 21:26:30 +0200
commit365b9433458e96df71e1583035d462b5f18d051d (patch)
tree6777085c23efd210545886417e8014b2c50929c2 /OvmfPkg/Virtio10Dxe/Virtio10.c
parent78ef454b8c6108d330e066653039ad824cc041f1 (diff)
downloadedk2-365b9433458e96df71e1583035d462b5f18d051d.tar.gz
edk2-365b9433458e96df71e1583035d462b5f18d051d.tar.bz2
edk2-365b9433458e96df71e1583035d462b5f18d051d.zip
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 <lersek@redhat.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> [lersek@redhat.com: expand commit message body] [lersek@redhat.com: remove superfluous whitespace in assignment] Reviewed-by: Laszlo Ersek <lersek@redhat.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/Virtio10Dxe/Virtio10.c')
-rw-r--r--OvmfPkg/Virtio10Dxe/Virtio10.c2
1 files changed, 1 insertions, 1 deletions
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);