ia64/xen-unstable

view xen/include/asm-x86/hvm/viridian.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 8d993552673a
children
line source
1 /*****************************************************************************
2 *
3 * include/xen/viridian.h
4 *
5 * Copyright (c) 2008 Citrix Corp.
6 *
7 */
9 #ifndef __ASM_X86_HVM_VIRIDIAN_H__
10 #define __ASM_X86_HVM_VIRIDIAN_H__
12 union viridian_guest_os_id
13 {
14 uint64_t raw;
15 struct
16 {
17 uint64_t build_number:16;
18 uint64_t service_pack:8;
19 uint64_t minor:8;
20 uint64_t major:8;
21 uint64_t os:8;
22 uint64_t vendor:16;
23 } fields;
24 };
26 union viridian_hypercall_gpa
27 { uint64_t raw;
28 struct
29 {
30 uint64_t enabled:1;
31 uint64_t reserved_preserved:11;
32 uint64_t pfn:48;
33 } fields;
34 };
36 struct viridian_domain
37 {
38 union viridian_guest_os_id guest_os_id;
39 union viridian_hypercall_gpa hypercall_gpa;
40 };
42 int
43 cpuid_viridian_leaves(
44 unsigned int leaf,
45 unsigned int *eax,
46 unsigned int *ebx,
47 unsigned int *ecx,
48 unsigned int *edx);
50 int
51 wrmsr_viridian_regs(
52 uint32_t idx,
53 uint32_t eax,
54 uint32_t edx);
56 int
57 rdmsr_viridian_regs(
58 uint32_t idx,
59 uint32_t *eax,
60 uint32_t *edx);
62 int
63 viridian_hypercall(struct cpu_user_regs *regs);
65 #endif /* __ASM_X86_HVM_VIRIDIAN_H__ */