From b72e8c4339328cf176df81c0c1c94e08a429a702 Mon Sep 17 00:00:00 2001 From: cegger Date: Tue, 21 Oct 2008 22:35:25 +0000 Subject: [PATCH] catch up with amd64: add hvm_op hypercall --- sys/arch/xen/include/i386/hypercalls.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sys/arch/xen/include/i386/hypercalls.h b/sys/arch/xen/include/i386/hypercalls.h index 768dd979e241..5c672f012966 100644 --- a/sys/arch/xen/include/i386/hypercalls.h +++ b/sys/arch/xen/include/i386/hypercalls.h @@ -1,4 +1,4 @@ -/* $NetBSD: hypercalls.h,v 1.4 2008/08/25 09:21:45 cegger Exp $ */ +/* $NetBSD: hypercalls.h,v 1.5 2008/10/21 22:35:25 cegger Exp $ */ /* * Copyright (c) 2006 Manuel Bouyer. @@ -200,6 +200,18 @@ HYPERVISOR_machine_check(struct xen_mc *mc) return ret; } +static __inline int +HYPERVISOR_hvm_op(int cmd, void *arg) +{ + int ret; + unsigned long ign1, ign2; + + _hypercall(__HYPERVISOR_hvm_op, _harg("1" (cmd), "2" (arg)), + _harg("=a" (ret), "=b" (ign1), "=c" (ign2))); + + return ret; +} + static __inline int HYPERVISOR_mmu_update(mmu_update_t *req, int count, int *success_count, domid_t domid)