mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Make the event-channel pending and mask arrays consist of
longs. Thi sensures appropriate alignment for architectures that require it, and also allows us to naturally support up to 4096 event channels per 64-bit guest. Moved 'n_vcpu' field from shared_info to start_info. Really it ought to disappear altogether as the info can be derived from xenstore. Fix a weird bug in XendDomainInfo where 'vcpus' information for a domain defaults to floating point value 1.0 rather than integer 1. This looks like a Python bug to me, but in any case it is 'fixed' by explicitly converting the default value to an integer. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
dcd2f1cf1f
commit
3afe806f6f
17 files changed
+62
-65
No files matched your search
@@ -439,7 +439,7 @@ class XendDomainInfo:
|
||||
defaultInfo('on_crash', lambda: "restart")
|
||||
defaultInfo('cpu', lambda: None)
|
||||
defaultInfo('cpu_weight', lambda: 1.0)
|
||||
defaultInfo('vcpus', lambda: 1)
|
||||
defaultInfo('vcpus', lambda: int(1))
|
||||
defaultInfo('vcpu_avail', lambda: (1 << self.info['vcpus']) - 1)
|
||||
defaultInfo('bootloader', lambda: None)
|
||||
defaultInfo('backend', lambda: [])
|
||||
|
||||