[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] x86/PVH: permit more physdevop-s to be used by Dom0



commit 163db6a72b660f0f3c9fe1d34e8f6b07ae6bd77d
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Dec 15 10:20:35 2021 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Dec 15 10:20:35 2021 +0100

    x86/PVH: permit more physdevop-s to be used by Dom0
    
    Certain notifications of Dom0 to Xen are independent of the mode Dom0 is
    running in. Permit further PCI related ones (only their modern forms).
    Also include the USB2 debug port operation at this occasion. While
    largely relevant for the latter, drop the has_vpci() part of the
    conditional as redundant with is_hardware_domain(): There's no PVH Dom0
    without vPCI.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
 xen/arch/x86/hvm/hypercall.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/xen/arch/x86/hvm/hypercall.c b/xen/arch/x86/hvm/hypercall.c
index c4e5c34c37..384724ec41 100644
--- a/xen/arch/x86/hvm/hypercall.c
+++ b/xen/arch/x86/hvm/hypercall.c
@@ -94,7 +94,10 @@ static long hvm_physdev_op(int cmd, 
XEN_GUEST_HANDLE_PARAM(void) arg)
         break;
 
     case PHYSDEVOP_pci_mmcfg_reserved:
-        if ( !has_vpci(currd) || !is_hardware_domain(currd) )
+    case PHYSDEVOP_pci_device_add:
+    case PHYSDEVOP_pci_device_remove:
+    case PHYSDEVOP_dbgp_op:
+        if ( !is_hardware_domain(currd) )
             return -ENOSYS;
         break;
 
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.