ia64/xen-unstable

view xen/include/asm-x86/traps.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 f9501b0bcc1b
children
line source
1 /*
2 * Copyright (c) 2007, 2008 Advanced Micro Devices, Inc.
3 * Author: Christoph Egger <Christoph.Egger@amd.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
20 #ifndef ASM_TRAP_H
21 #define ASM_TRAP_H
23 struct softirq_trap {
24 struct domain *domain; /* domain to inject trap */
25 struct vcpu *vcpu; /* vcpu to inject trap */
26 int processor; /* physical cpu to inject trap */
27 };
29 struct cpu_user_regs;
31 extern void machine_check_vector(struct cpu_user_regs *regs, long error_code);
33 /**
34 * guest_has_trap_callback
35 *
36 * returns true (non-zero) if guest registered a trap handler
37 */
38 extern int guest_has_trap_callback(struct domain *d, uint16_t vcpuid,
39 unsigned int trap_nr);
41 /**
42 * send_guest_trap
43 *
44 * delivers trap to guest analogous to send_guest_global_virq
45 * return 0 on successful delivery
46 */
47 extern int send_guest_trap(struct domain *d, uint16_t vcpuid,
48 unsigned int trap_nr);
50 /* Intel vMCE MSRs virtualization */
51 extern void intel_mce_init_msr(struct domain *d);
52 extern int intel_mce_wrmsr(u32 msr, u64 value);
53 extern int intel_mce_rdmsr(u32 msr, u32 *lo, u32 *hi);
55 #endif /* ASM_TRAP_H */