ia64/xen-unstable

view xen/include/asm-ia64/vmx.h @ 16780:80626da7f6e3

[IA64] domheap: Remove duplicated declarations vmx_save_state()/vmx_load_state()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu Jan 17 12:05:43 2008 -0700 (2008-01-17)
parents 2d0193702170
children a739d3edc185
line source
1 /* -*- Mode:C; c-basic-offset:4; tab-width:4; indent-tabs-mode:nil -*- */
2 /*
3 * vmx.h: prototype for generial vmx related interface
4 * Copyright (c) 2004, Intel Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
17 * Place - Suite 330, Boston, MA 02111-1307 USA.
18 *
19 * Kun Tian (Kevin Tian) (kevin.tian@intel.com)
20 */
22 #ifndef _ASM_IA64_VT_H
23 #define _ASM_IA64_VT_H
25 #include <public/hvm/ioreq.h>
26 #define vmx_user_mode(regs) (((struct ia64_psr *)&(regs)->cr_ipsr)->vm == 1)
28 #define VCPU_LID(v) (((u64)(v)->vcpu_id)<<24)
30 extern void identify_vmx_feature(void);
31 extern unsigned int vmx_enabled;
32 extern void vmx_init_env(void);
33 extern int vmx_final_setup_guest(struct vcpu *v);
34 extern void vmx_save_state(struct vcpu *v);
35 extern void vmx_load_state(struct vcpu *v);
36 extern int vmx_setup_platform(struct domain *d);
37 extern void vmx_do_resume(struct vcpu *v);
38 extern void vmx_io_assist(struct vcpu *v);
39 extern int ia64_hypercall (struct pt_regs *regs);
40 extern unsigned long __gpfn_to_mfn_foreign(struct domain *d, unsigned long gpfn);
41 extern void sync_split_caches(void);
42 extern void set_privileged_operation_isr (struct vcpu *vcpu,int inst);
43 extern void privilege_op (struct vcpu *vcpu);
44 extern void set_ifa_itir_iha (struct vcpu *vcpu, u64 vadr,
45 int set_ifa, int set_itir, int set_iha);
46 extern void inject_guest_interruption(struct vcpu *vcpu, u64 vec);
47 extern void set_illegal_op_isr (struct vcpu *vcpu);
48 extern void illegal_op (struct vcpu *vcpu);
49 extern void set_rsv_reg_field_isr (struct vcpu *vcpu);
50 extern void rsv_reg_field (struct vcpu *vcpu);
51 extern void vmx_relinquish_guest_resources(struct domain *d);
52 extern void vmx_relinquish_vcpu_resources(struct vcpu *v);
53 extern void vmx_send_assist_req(struct vcpu *v);
54 extern void deliver_pal_init(struct vcpu *vcpu);
55 extern void vmx_pend_pal_init(struct domain *d);
57 static inline vcpu_iodata_t *get_vio(struct vcpu *v)
58 {
59 struct domain *d = v->domain;
60 shared_iopage_t *p = (shared_iopage_t *)d->arch.vmx_platform.ioreq.va;
61 ASSERT((v == current) || spin_is_locked(&d->arch.vmx_platform.ioreq.lock));
62 ASSERT(d->arch.vmx_platform.ioreq.va != NULL);
63 return &p->vcpu_iodata[v->vcpu_id];
64 }
65 #endif /* _ASM_IA64_VT_H */