]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commitdiff
minios: Correct HYPERVISOR_physdev_op()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 Jan 2014 18:28:11 +0000 (18:28 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 28 Jan 2014 11:24:53 +0000 (11:24 +0000)
A physdev_op is a two argument hypercall, taking a command parameter and an
optional pointer to a structure.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
include/x86/x86_32/hypercall-x86_32.h
include/x86/x86_64/hypercall-x86_64.h

index ef52ecdd8f6d84f8ab38f27aee50c5b3ddbd62b1..dcfbe413f08aec699ac5000c813acde84ed5247e 100644 (file)
@@ -255,9 +255,9 @@ HYPERVISOR_console_io(
 
 static inline int
 HYPERVISOR_physdev_op(
-       void *physdev_op)
+       int cmd, void *physdev_op)
 {
-       return _hypercall1(int, physdev_op, physdev_op);
+       return _hypercall2(int, physdev_op, cmd, physdev_op);
 }
 
 static inline int
index 513d74e09f44389de7483c569d6f598b0b48c6d1..7083763ad7787c70d04a17dfb907a2580cc8b148 100644 (file)
@@ -256,9 +256,9 @@ HYPERVISOR_console_io(
 
 static inline int
 HYPERVISOR_physdev_op(
-       void *physdev_op)
+       int cmd, void *physdev_op)
 {
-       return _hypercall1(int, physdev_op, physdev_op);
+       return _hypercall2(int, physdev_op, cmd, physdev_op);
 }
 
 static inline int