x86/PVH: PHYSDEVOP_pci_mmcfg_reserved should not blindly register a region
authorJan Beulich <jbeulich@suse.com>
Thu, 14 May 2020 05:53:55 +0000 (07:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 14 May 2020 05:53:55 +0000 (07:53 +0200)
commitb539eeffc737d859dd1814c2e529e0ed0feba7a7
tree8823c9768a0b6b9f7eced09edfc16ade7800f9ec
parent3a218961b16f1f4feb1147f56338faf1ac8f5703
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: eb3dd90e4089 ("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>
xen/arch/x86/physdev.c