ia64/xen-unstable

view xen/include/asm-x86/hvm/emulate.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 200787660b5f
children
line source
1 /******************************************************************************
2 * hvm/emulate.h
3 *
4 * HVM instruction emulation. Used for MMIO and VMX real mode.
5 *
6 * Copyright (c) 2008 Citrix Systems, Inc.
7 *
8 * Authors:
9 * Keir Fraser <keir.fraser@citrix.com>
10 */
12 #ifndef __ASM_X86_HVM_EMULATE_H__
13 #define __ASM_X86_HVM_EMULATE_H__
15 #include <xen/config.h>
16 #include <asm/x86_emulate.h>
18 struct hvm_emulate_ctxt {
19 struct x86_emulate_ctxt ctxt;
21 /* Cache of 16 bytes of instruction. */
22 uint8_t insn_buf[16];
23 unsigned long insn_buf_eip;
24 unsigned int insn_buf_bytes;
26 struct segment_register seg_reg[10];
27 unsigned long seg_reg_accessed;
28 unsigned long seg_reg_dirty;
30 bool_t exn_pending;
31 uint8_t exn_vector;
32 uint8_t exn_insn_len;
33 int32_t exn_error_code;
35 uint32_t intr_shadow;
36 };
38 int hvm_emulate_one(
39 struct hvm_emulate_ctxt *hvmemul_ctxt);
40 void hvm_emulate_prepare(
41 struct hvm_emulate_ctxt *hvmemul_ctxt,
42 struct cpu_user_regs *regs);
43 void hvm_emulate_writeback(
44 struct hvm_emulate_ctxt *hvmemul_ctxt);
45 struct segment_register *hvmemul_get_seg_reg(
46 enum x86_segment seg,
47 struct hvm_emulate_ctxt *hvmemul_ctxt);
49 #endif /* __ASM_X86_HVM_EMULATE_H__ */