ia64/xen-unstable

annotate 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
rev   line source
adsharma@4993 1 /* -*- Mode:C; c-basic-offset:4; tab-width:4; indent-tabs-mode:nil -*- */
adsharma@4993 2 /*
adsharma@4993 3 * vmx.h: prototype for generial vmx related interface
adsharma@4993 4 * Copyright (c) 2004, Intel Corporation.
adsharma@4993 5 *
adsharma@4993 6 * This program is free software; you can redistribute it and/or modify it
adsharma@4993 7 * under the terms and conditions of the GNU General Public License,
adsharma@4993 8 * version 2, as published by the Free Software Foundation.
adsharma@4993 9 *
adsharma@4993 10 * This program is distributed in the hope it will be useful, but WITHOUT
adsharma@4993 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
adsharma@4993 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
adsharma@4993 13 * more details.
adsharma@4993 14 *
adsharma@4993 15 * You should have received a copy of the GNU General Public License along with
adsharma@4993 16 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
adsharma@4993 17 * Place - Suite 330, Boston, MA 02111-1307 USA.
adsharma@4993 18 *
adsharma@4993 19 * Kun Tian (Kevin Tian) (kevin.tian@intel.com)
adsharma@4993 20 */
adsharma@4993 21
adsharma@4993 22 #ifndef _ASM_IA64_VT_H
adsharma@4993 23 #define _ASM_IA64_VT_H
adsharma@4993 24
kaf24@8492 25 #include <public/hvm/ioreq.h>
awilliam@10429 26 #define vmx_user_mode(regs) (((struct ia64_psr *)&(regs)->cr_ipsr)->vm == 1)
adsharma@5046 27
awilliam@10258 28 #define VCPU_LID(v) (((u64)(v)->vcpu_id)<<24)
awilliam@10258 29
adsharma@4993 30 extern void identify_vmx_feature(void);
adsharma@4993 31 extern unsigned int vmx_enabled;
adsharma@4993 32 extern void vmx_init_env(void);
awilliam@13467 33 extern int vmx_final_setup_guest(struct vcpu *v);
kaf24@5289 34 extern void vmx_save_state(struct vcpu *v);
kaf24@5289 35 extern void vmx_load_state(struct vcpu *v);
awilliam@10570 36 extern void vmx_setup_platform(struct domain *d);
awilliam@11725 37 extern void vmx_do_launch(struct vcpu *v);
djm@5797 38 extern void vmx_io_assist(struct vcpu *v);
awilliam@8917 39 extern int ia64_hypercall (struct pt_regs *regs);
awilliam@8917 40 extern void vmx_save_state(struct vcpu *v);
awilliam@8917 41 extern void vmx_load_state(struct vcpu *v);
awilliam@8917 42 extern void show_registers(struct pt_regs *regs);
kfraser@10478 43 #define show_execution_state show_registers
awilliam@8917 44 extern unsigned long __gpfn_to_mfn_foreign(struct domain *d, unsigned long gpfn);
awilliam@8917 45 extern void sync_split_caches(void);
awilliam@8917 46 extern void set_privileged_operation_isr (struct vcpu *vcpu,int inst);
awilliam@8917 47 extern void privilege_op (struct vcpu *vcpu);
awilliam@8917 48 extern void set_ifa_itir_iha (struct vcpu *vcpu, u64 vadr,
awilliam@8917 49 int set_ifa, int set_itir, int set_iha);
awilliam@8917 50 extern void inject_guest_interruption(struct vcpu *vcpu, u64 vec);
awilliam@8917 51 extern void set_illegal_op_isr (struct vcpu *vcpu);
awilliam@9376 52 extern void illegal_op (struct vcpu *vcpu);
awilliam@11263 53 extern void vmx_relinquish_guest_resources(struct domain *d);
awilliam@9376 54 extern void vmx_relinquish_vcpu_resources(struct vcpu *v);
awilliam@10437 55 extern void vmx_die_if_kernel(char *str, struct pt_regs *regs, long err);
awilliam@11270 56 extern void vmx_send_assist_req(struct vcpu *v);
awilliam@9376 57
fred@5950 58 static inline vcpu_iodata_t *get_vio(struct domain *d, unsigned long cpu)
fred@5950 59 {
fred@5950 60 return &((shared_iopage_t *)d->arch.vmx_platform.shared_page_va)->vcpu_iodata[cpu];
fred@5950 61 }
adsharma@4993 62 #endif /* _ASM_IA64_VT_H */