[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/pt: add HVM check to XEN_DOMCTL_unbind_pt_irq
commit a3562d8c369fed726e7d2ba105f1185878873adb Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Fri Aug 17 16:12:32 2018 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Tue Aug 21 14:59:04 2018 +0100 x86/pt: add HVM check to XEN_DOMCTL_unbind_pt_irq Its counterpart is HVM only. Add the check to help dead code elimination to figure out the call to pt_irq_destroy_bind is not needed when HVM is not enabled. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/domctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c index 1002659de0..ab854899a5 100644 --- a/xen/arch/x86/domctl.c +++ b/xen/arch/x86/domctl.c @@ -715,6 +715,10 @@ long arch_do_domctl( struct xen_domctl_bind_pt_irq *bind = &domctl->u.bind_pt_irq; int irq = domain_pirq_to_irq(d, bind->machine_irq); + ret = -EINVAL; + if ( !is_hvm_domain(d) ) + break; + ret = -EPERM; if ( irq <= 0 || !irq_access_permitted(currd, irq) ) break; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |