mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
x86/PVH: PHYSDEVOP_pci_mmcfg_reserved should not blindly register a region
The op has a "is reserved" flag, and hence registration shouldn't happen unilaterally. Fixes:eb3dd90e40("x86/physdev: enable PHYSDEVOP_pci_mmcfg_reserved for PVH Dom0") Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com> master commit:b539eeffc7master date: 2020-05-14 07:53:55 +0200
This commit is contained in:
1 parent
eccc242b59
commit
d61fef6c41
1 file changed
+1
-1
@@ -556,7 +556,7 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
|
||||
|
||||
ret = pci_mmcfg_reserved(info.address, info.segment,
|
||||
info.start_bus, info.end_bus, info.flags);
|
||||
if ( !ret && has_vpci(currd) )
|
||||
if ( !ret && has_vpci(currd) && (info.flags & XEN_PCI_MMCFG_RESERVED) )
|
||||
{
|
||||
/*
|
||||
* For HVM (PVH) domains try to add the newly found MMCFG to the
|
||||
|
||||