diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-25 18:39:10 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-25 18:39:10 +0100 |
commit | 1df421476a141955f4f04b7ad0fbaf73e57c8358 (patch) | |
tree | 6500dea6303559d54abd1b0ff49db083c463d0d8 /xen/common/perfc.c | |
parent | e76cb15dcecf1b78ecb1365ea0f955a97c5d2dd1 (diff) | |
download | xen-1df421476a141955f4f04b7ad0fbaf73e57c8358.tar.gz xen-1df421476a141955f4f04b7ad0fbaf73e57c8358.tar.bz2 xen-1df421476a141955f4f04b7ad0fbaf73e57c8358.zip |
Replace dom0_ops hypercall with three new hypercalls:
1. platform_op -- used by dom0 kernel to perform actions on the
hardware platform (e.g., MTRR access, microcode update, platform
quirks, ...)
2. domctl -- used by management tools to control a specified domain
3. sysctl -- used by management tools for system-wide actions
Benefits include more sensible factoring of actions to
hypercalls. Also allows tool compatibility to be tracked separately
from the dom0 kernel. The assumption is that it will be easier to
replace libxenctrl, libxenguest and Xen as a matched set if the
dom0 kernel does not need to be replaced too (e.g., because that
would require vendor revalidation).
From here on we hope to maintain dom0 kernel compatibility. This
promise is not extended to tool compatibility beyond the existing
guarantee that compatibility will not be broken within a three-level
stable release [3.0.2, 3.0.3, etc.].
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/perfc.c')
-rw-r--r-- | xen/common/perfc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xen/common/perfc.c b/xen/common/perfc.c index 4eb696a594..92307b2341 100644 --- a/xen/common/perfc.c +++ b/xen/common/perfc.c @@ -7,7 +7,6 @@ #include <xen/spinlock.h> #include <xen/mm.h> #include <xen/guest_access.h> -#include <public/dom0_ops.h> #include <asm/perfc.h> #undef PERFCOUNTER @@ -218,20 +217,19 @@ static int perfc_copy_info(XEN_GUEST_HANDLE(dom0_perfc_desc_t) desc, int perfc_control(dom0_perfccontrol_t *pc) { static DEFINE_SPINLOCK(lock); - u32 op = pc->op; int rc; spin_lock(&lock); - switch ( op ) + switch ( pc->cmd ) { - case DOM0_PERFCCONTROL_OP_RESET: + case XEN_SYSCTL_PERFCOP_reset: perfc_copy_info(pc->desc, pc->val); perfc_reset(0); rc = 0; break; - case DOM0_PERFCCONTROL_OP_QUERY: + case XEN_SYSCTL_PERFCOP_query: perfc_copy_info(pc->desc, pc->val); rc = 0; break; |