ia64/xen-unstable

view xen/include/asm-ia64/vmx.h @ 13964:38f7330d4807

[IA64] Cleanup in vmx.h

Cleanup: remove unused code.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
author awilliam@xenbuild2.aw
date Sun Feb 18 16:08:11 2007 -0700 (2007-02-18)
parents 9576f09c9eff
children 6c938630de54
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 void vmx_setup_platform(struct domain *d);
37 extern void vmx_do_launch(struct vcpu *v);
38 extern void vmx_io_assist(struct vcpu *v);
39 extern int ia64_hypercall (struct pt_regs *regs);
40 extern void vmx_save_state(struct vcpu *v);
41 extern void vmx_load_state(struct vcpu *v);
42 extern void show_registers(struct pt_regs *regs);
43 #define show_execution_state show_registers
44 extern unsigned long __gpfn_to_mfn_foreign(struct domain *d, unsigned long gpfn);
45 extern void sync_split_caches(void);
46 extern void set_privileged_operation_isr (struct vcpu *vcpu,int inst);
47 extern void privilege_op (struct vcpu *vcpu);
48 extern void set_ifa_itir_iha (struct vcpu *vcpu, u64 vadr,
49 int set_ifa, int set_itir, int set_iha);
50 extern void inject_guest_interruption(struct vcpu *vcpu, u64 vec);
51 extern void set_illegal_op_isr (struct vcpu *vcpu);
52 extern void illegal_op (struct vcpu *vcpu);
53 extern void vmx_relinquish_guest_resources(struct domain *d);
54 extern void vmx_relinquish_vcpu_resources(struct vcpu *v);
55 extern void vmx_die_if_kernel(char *str, struct pt_regs *regs, long err);
56 extern void vmx_send_assist_req(struct vcpu *v);
58 static inline vcpu_iodata_t *get_vio(struct domain *d, unsigned long cpu)
59 {
60 return &((shared_iopage_t *)d->arch.vmx_platform.shared_page_va)->vcpu_iodata[cpu];
61 }
62 #endif /* _ASM_IA64_VT_H */