]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
x86/hvm: Annotate hvm_physdev_op() with cf_check
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Mar 2022 12:07:24 +0000 (13:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Mar 2022 12:07:24 +0000 (13:07 +0100)
This was missed previously, and would yield a fatal #CP for any HVM domain
which issues a physdevop hypercall.

Fixes: cdbe2b0a1aec ("x86: Enable CET Indirect Branch Tracking")
Reported-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hypercall.c

index 030243810e482f7a659287a925db2a2732fc4db8..62b5349e7d6ef0d1d2d1f90bd06603f5bcd55dfd 100644 (file)
@@ -78,7 +78,7 @@ static long cf_check hvm_grant_table_op(
 }
 #endif
 
-static long hvm_physdev_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
+static long cf_check hvm_physdev_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
 {
     const struct vcpu *curr = current;
     const struct domain *currd = curr->domain;