monitor: rename vm_event_monitor_guest_request
authorTamas K Lengyel <tamas@tklengyel.com>
Fri, 24 Jun 2016 08:31:00 +0000 (10:31 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jun 2016 08:31:00 +0000 (10:31 +0200)
Mechanical renaming and relocation to the monitor subsystem.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/hvm.c
xen/arch/x86/hvm/hvm.c
xen/common/monitor.c
xen/common/vm_event.c
xen/include/xen/monitor.h
xen/include/xen/vm_event.h

index c01123a1604132b5403a11c5ccf5ec6ef393b554..d999bde7deac762d134a2b6e16831cb31268c818 100644 (file)
@@ -22,7 +22,7 @@
 #include <xen/errno.h>
 #include <xen/guest_access.h>
 #include <xen/sched.h>
-#include <xen/vm_event.h>
+#include <xen/monitor.h>
 
 #include <xsm/xsm.h>
 
@@ -75,7 +75,7 @@ long do_hvm_op(unsigned long op, XEN_GUEST_HANDLE_PARAM(void) arg)
 
     case HVMOP_guest_request_vm_event:
         if ( guest_handle_is_null(arg) )
-            vm_event_monitor_guest_request();
+            monitor_guest_request();
         else
             rc = -EINVAL;
         break;
index c0f44e2dc359abfe18a0bc6c62a0fac08676cb77..00bd5fbf8ad6dd88b2f6c18b1e66d5df17311079 100644 (file)
@@ -37,6 +37,7 @@
 #include <xen/mem_access.h>
 #include <xen/rangeset.h>
 #include <xen/vm_event.h>
+#include <xen/monitor.h>
 #include <xen/warning.h>
 #include <asm/shadow.h>
 #include <asm/hap.h>
@@ -5761,7 +5762,7 @@ long do_hvm_op(unsigned long op, XEN_GUEST_HANDLE_PARAM(void) arg)
 
     case HVMOP_guest_request_vm_event:
         if ( guest_handle_is_null(arg) )
-            vm_event_monitor_guest_request();
+            monitor_guest_request();
         else
             rc = -EINVAL;
         break;
index 7c3d1c84f30d19e4eaf7a4d93b1ce79c337b21a1..436214a055733663b288bee7cb9458d190305a99 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <xen/monitor.h>
 #include <xen/sched.h>
+#include <xen/vm_event.h>
 #include <xsm/xsm.h>
 #include <public/domctl.h>
 #include <asm/monitor.h>
@@ -84,6 +85,22 @@ int monitor_domctl(struct domain *d, struct xen_domctl_monitor_op *mop)
     return 0;
 }
 
+void monitor_guest_request(void)
+{
+    struct vcpu *curr = current;
+    struct domain *d = curr->domain;
+
+    if ( d->monitor.guest_request_enabled )
+    {
+        vm_event_request_t req = {
+            .reason = VM_EVENT_REASON_GUEST_REQUEST,
+            .vcpu_id = curr->vcpu_id,
+        };
+
+        vm_event_monitor_traps(curr, d->monitor.guest_request_sync, &req);
+    }
+}
+
 /*
  * Local variables:
  * mode: C
index 1ba12cb5add6d7be6379e7ad2c51dd7d868d6196..ca1eced9dddb0a6c696d8cf1d7096e8d2845b690 100644 (file)
@@ -829,22 +829,6 @@ int vm_event_monitor_traps(struct vcpu *v, uint8_t sync,
     return 1;
 }
 
-void vm_event_monitor_guest_request(void)
-{
-    struct vcpu *curr = current;
-    struct domain *d = curr->domain;
-
-    if ( d->monitor.guest_request_enabled )
-    {
-        vm_event_request_t req = {
-            .reason = VM_EVENT_REASON_GUEST_REQUEST,
-            .vcpu_id = curr->vcpu_id,
-        };
-
-        vm_event_monitor_traps(curr, d->monitor.guest_request_sync, &req);
-    }
-}
-
 /*
  * Local variables:
  * mode: C
index 7015e6d74c41bb2ef83bc06b92a0b113912c8564..204d5cc4248b36ecbca0bd3f97c2e2268785d453 100644 (file)
@@ -26,5 +26,6 @@ struct domain;
 struct xen_domctl_monitor_op;
 
 int monitor_domctl(struct domain *d, struct xen_domctl_monitor_op *op);
+void monitor_guest_request(void);
 
 #endif /* __XEN_MONITOR_H__ */
index beda9fe6639c187947b99943a516ed42f1fb446d..89e6243f4bbf7dac38b56595fbc4a50b793ea415 100644 (file)
@@ -81,8 +81,6 @@ void vm_event_vcpu_unpause(struct vcpu *v);
 int vm_event_monitor_traps(struct vcpu *v, uint8_t sync,
                            vm_event_request_t *req);
 
-void vm_event_monitor_guest_request(void);
-
 #endif /* __VM_EVENT_H__ */