debuggers.hg

view tools/include/xen-foreign/structs.py @ 19826:2f9e1348aa98

x86_64: allow more vCPU-s per guest

Since the shared info layout is fixed, guests are required to use
VCPUOP_register_vcpu_info prior to booting any vCPU beyond the
traditional limit of 32.

MAX_VIRT_CPUS, being an implemetation detail of the hypervisor, is no
longer being exposed in the public headers.

The tools changes are clearly incomplete (and done only so things
would
build again), and the current state of the tools (using scalar
variables all over the place to represent vCPU bitmaps) very likely
doesn't permit booting DomU-s with more than the traditional number of
vCPU-s. Testing of the extended functionality was done with Dom0 (96
vCPU-s, as well as 128 vCPU-s out of which the kernel elected - by way
of a simple kernel side patch - to use only some, resulting in a
sparse
bitmap).

ia64 changes only to make things build, and build-tested only (and the
tools part only as far as the build would go without encountering
unrelated problems in the blktap code).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 18 10:14:16 2009 +0100 (2009-06-18)
parents afa521cf82e6
children
line source
1 # configuration: what needs translation
3 unions = [ "vcpu_cr_regs",
4 "vcpu_ar_regs" ];
6 structs = [ "start_info",
7 "trap_info",
8 "pt_fpreg",
9 "cpu_user_regs",
10 "xen_ia64_boot_param",
11 "ia64_tr_entry",
12 "vcpu_tr_regs",
13 "vcpu_guest_context_regs",
14 "vcpu_guest_context",
15 "arch_vcpu_info",
16 "vcpu_time_info",
17 "vcpu_info",
18 "arch_shared_info",
19 "shared_info" ];
21 defines = [ "__i386__",
22 "__x86_64__",
24 "FLAT_RING1_CS",
25 "FLAT_RING1_DS",
26 "FLAT_RING1_SS",
28 "FLAT_RING3_CS64",
29 "FLAT_RING3_DS64",
30 "FLAT_RING3_SS64",
31 "FLAT_KERNEL_CS64",
32 "FLAT_KERNEL_DS64",
33 "FLAT_KERNEL_SS64",
35 "FLAT_KERNEL_CS",
36 "FLAT_KERNEL_DS",
37 "FLAT_KERNEL_SS",
39 # x86_{32,64}
40 "_VGCF_i387_valid",
41 "VGCF_i387_valid",
42 "_VGCF_in_kernel",
43 "VGCF_in_kernel",
44 "_VGCF_failsafe_disables_events",
45 "VGCF_failsafe_disables_events",
46 "_VGCF_syscall_disables_events",
47 "VGCF_syscall_disables_events",
48 "_VGCF_online",
49 "VGCF_online",
51 # ia64
52 "VGCF_EXTRA_REGS",
54 # all archs
55 "xen_pfn_to_cr3",
56 "XEN_LEGACY_MAX_VCPUS",
57 "MAX_GUEST_CMDLINE" ];