ia64/xen-unstable

view xen/include/asm-ia64/vmx.h @ 8370:2d5c57be196d

Remove some unused VTI code segments
Signed-off-by Anthony Xu <anthony.xu@intel.com>
author djm@kirby.fc.hp.com
date Thu Dec 15 16:10:22 2005 -0600 (2005-12-15)
parents b2ea26d2099a
children 9fc306e40a7c
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 #define RR7_SWITCH_SHIFT 12 /* 4k enough */
26 #include <public/io/ioreq.h>
28 extern void identify_vmx_feature(void);
29 extern unsigned int vmx_enabled;
30 extern void vmx_init_env(void);
31 extern void vmx_final_setup_guest(struct vcpu *v);
32 extern void vmx_save_state(struct vcpu *v);
33 extern void vmx_load_state(struct vcpu *v);
34 extern void vmx_setup_platform(struct domain *d, struct vcpu_guest_context *c);
35 extern void vmx_wait_io(void);
36 extern void vmx_io_assist(struct vcpu *v);
38 static inline vcpu_iodata_t *get_vio(struct domain *d, unsigned long cpu)
39 {
40 return &((shared_iopage_t *)d->arch.vmx_platform.shared_page_va)->vcpu_iodata[cpu];
41 }
43 static inline int iopacket_port(struct domain *d)
44 {
45 return ((shared_iopage_t *)d->arch.vmx_platform.shared_page_va)->sp_global.eport;
46 }
48 static inline shared_iopage_t *get_sp(struct domain *d)
49 {
50 return (shared_iopage_t *)d->arch.vmx_platform.shared_page_va;
51 }
53 typedef unsigned long (*vmx_mmio_read_t)(struct vcpu *v,
54 unsigned long addr,
55 unsigned long length);
57 typedef void (*vmx_mmio_write_t)(struct vcpu *v,
58 unsigned long addr,
59 unsigned long length,
60 unsigned long val);
62 typedef int (*vmx_mmio_check_t)(struct vcpu *v, unsigned long addr);
64 struct vmx_mmio_handler {
65 vmx_mmio_check_t check_handler;
66 vmx_mmio_read_t read_handler;
67 vmx_mmio_write_t write_handler;
68 };
70 #endif /* _ASM_IA64_VT_H */