Commit Graph
6973 Commits
Author SHA1 Message Date
emellor@ewan 7bfeb73ad7 On one of pyxc_domain_getinfo's error paths, free the block allocated
previously.  This would have caused a memory leak when attempting to get info
on a domain that does not exist.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-21 11:24:26 +01:00
emellor@ewan 0a8fb66792 Remove unused variables and imports.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-20 17:31:22 +01:00
emellor@ewan 5a9ab7acc1 domain_setmaxmem takes an int, not a long, for the maxmem_kb parameter. The
underlying xc_domain_setmaxmem already took an unsigned int, and
PyArg_ParseTupleAndKeywords call was only parsing an int, so there is no way
that longer values would get through here in any case.  Fixing the documentation
and the local variable is the best solution, until someone decides that we need
to support maxmem values greater than 2TiB.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-20 17:29:57 +01:00
emellor@ewan 2a9831d0a8 Remove extraneous semicolon.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-20 17:25:27 +01:00
emellor@ewan f519344e5c Move definition of xc, to avoid confusing pylint.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-20 17:25:00 +01:00
emellor@ewan 96df3030e7 Remove unused import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-20 17:24:27 +01:00
emellor@ewan c14c80d31d Mark unused variables as such. Remove unused import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-20 17:22:20 +01:00
emellor@ewan bf0102c5f3 Move definition of xc variable, to save confusing pylint.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-20 17:21:39 +01:00
emellor@ewan 8aee1a239f Mark unused variable as such.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-20 17:20:20 +01:00
emellor@ewan a3d83fdeea Added debugging message to exception on write.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-20 17:19:19 +01:00
kaf24@firebug.cl.cam.ac.uk 8b00e58770 Fix __save_flags() to not complain when smp_processor_id() is used
in a preemptible region (it is always safe).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-20 14:44:49 +00:00
cl349@firebug.cl.cam.ac.uk a59be7e7c2 merge? 2005-09-20 14:18:23 +00:00
cl349@firebug.cl.cam.ac.uk b1aa9920bf Add support to build arch/ia64 xen kernels, also add pre/post link hooks in mkbuildtree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-20 14:18:01 +00:00
kaf24@firebug.cl.cam.ac.uk 3c77932be4 Fix xenconsole when console page is >= 4GB.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-20 14:09:07 +00:00
kaf24@firebug.cl.cam.ac.uk 3734cbe43d Put_page on vmx_set_cr0 for multiple protected/real mode switch.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
2005-09-20 13:07:10 +00:00
cl349@firebug.cl.cam.ac.uk 9c02b9aa17 merge? 2005-09-20 09:43:46 +00:00
cl349@firebug.cl.cam.ac.uk 4037ef392f Fix vnc configuration issue for creating vmx guest.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-20 09:43:29 +00:00
kaf24@firebug.cl.cam.ac.uk 3466017825 Split up docs. Signed-off-by: Robb Romans <3r@us.ibm.com> 2005-09-20 09:17:33 +00:00
kaf24@firebug.cl.cam.ac.uk 20e8ba075b Add 64 bit support to the VTPM Tools plus do some minor cleanups.
The VTPM manager and VTPMs fully support both 32 and 64 bit OSes. The
tpm_emulator (provided for debugging on TPM-less machines) does not
support 64-bit kernels by default though. See the README for details on
how to use it on 64-bit kernels.

(Vinnie Scarlata, Intel Corporation)

Signed-off-by: Joe Cihula <joe.cihula@intel.com>
2005-09-20 09:08:26 +00:00
kaf24@firebug.cl.cam.ac.uk bc6ef390fa Fix an operand size bug in the VMX MMIO decoder.
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
2005-09-20 09:05:03 +00:00
kaf24@firebug.cl.cam.ac.uk 8ad67b4949 Dynamically generate the local apic entries in ACPI MADT table.
The number of local apic entries is decided by the #vcpus passed
from the config file (eg./etc/xen/xmexample.vmx).

This feature is required by the SMP VMX domain.

Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
2005-09-20 09:02:43 +00:00
kaf24@firebug.cl.cam.ac.uk e02527cc82 Add lomount to 'make uninstall' target. Remove miniterm,
as it's never installed on the Xen host.
2005-09-19 17:10:20 +00:00
kaf24@firebug.cl.cam.ac.uk 68201c0260 Clean up 'make uninstall' target. 2005-09-19 16:14:18 +00:00
cl349@firebug.cl.cam.ac.uk 4c09075891 merge? 2005-09-19 16:02:54 +00:00
cl349@firebug.cl.cam.ac.uk 7beef3e9e4 Fix kernel users of xs_write as well.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-19 16:02:32 +00:00
kaf24@firebug.cl.cam.ac.uk 580c309e4f Better gdb server documentation. 2005-09-19 15:43:38 +00:00
kaf24@firebug.cl.cam.ac.uk e13a4e8cc3 Do not build PAE by default. Reverts accidental previous
checkin.
2005-09-19 15:43:26 +00:00
kaf24@firebug.cl.cam.ac.uk b54b5b2b14 Fix xc_ptrace (live debug, not coredump debug) for 32-bit pae.
Clean up interfaces and add simple documentation for using
the domU debug interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-19 15:21:09 +00:00
cl349@firebug.cl.cam.ac.uk e83a8e7c2b Fire watches once immediately upon registration.
It matches the model of programming used to avoid races with watches,
and also makes re-establishing watches on daemon restart easier.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-19 14:47:56 +00:00
cl349@firebug.cl.cam.ac.uk e7dcd2ce65 Fix one more usage of xs_write.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-19 14:36:15 +00:00
cl349@firebug.cl.cam.ac.uk 7fd9bccce2 Remove iflag argument to xs_write
xs_write with O_CREAT|O_EXCL causes problems over daemon restarts, since
it's not idempotent.
It turns out noone really needs the flags word at all, so get rid of it.
It's now as if everyone specified "O_CREAT".
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-19 14:34:30 +00:00
cl349@firebug.cl.cam.ac.uk 265d719ce5 Make xs_mkdir an xs_rm idempotent.
When modifying libxenstore to transparently restart when the daemon dies,
it became apparent that life is simpler when all commands can simply be
restarted.  So this patch makes a slight semantic change to xs_rm and xs_mkdir: 
xs_rm now succeeds if the file doesn't exist (as long as the parent exists),
and xs_mkdir succeeds if the directory already exists.
Noone should notice.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-19 14:25:29 +00:00
kaf24@firebug.cl.cam.ac.uk e8b6ab5acb Fix gdb build script. 2005-09-19 14:06:49 +00:00
cl349@firebug.cl.cam.ac.uk 9eed83921e merge? 2005-09-19 13:24:31 +00:00
cl349@firebug.cl.cam.ac.uk 8860fee293 merge? 2005-09-19 13:24:13 +00:00
cl349@firebug.cl.cam.ac.uk 5d9baf7940 Don't do device create on domain recreate.
Also don't add XendDomainInfo object to XendDomain dictionary from
XendDomainInfo object but do it in XendDomain.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-19 13:23:22 +00:00
emellor@ewan d854d0b3a2 Revert accidental commit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-19 14:19:22 +01:00
emellor@ewan 60603ce320 Use DevController.allocateDeviceID rather than using a local variable.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-19 13:44:05 +01:00
emellor@ewan 0c0fe2fcc7 Use DevController.allocateDeviceID rather than using a local variable.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-19 13:41:41 +01:00
kaf24@firebug.cl.cam.ac.uk e701d05c8a Re-indent libxc to avoid hard tabs. Also, fix the PAE
domain builder to correctly write PTEs that map pages
above 4GB.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-19 11:06:05 +00:00
cl349@firebug.cl.cam.ac.uk 403d1cc0a8 Remove last remaining "import controller" occurences.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-19 11:01:18 +00:00
cl349@firebug.cl.cam.ac.uk 0fb074d3e9 merge? 2005-09-19 10:51:05 +00:00
kaf24@firebug.cl.cam.ac.uk d847ecf971 Fix VMX domains not cleaning up properly, since some page refncts are
not zero. One reason for this is that in function shadow_set_l1e(),
before calling function shadow_update_min_max(), one should call
__shadow_get_sl2e() again, since the sl2 entry may be changed.

Signed-off-by: Xin Xiaohui <Xiaohui.xin@intel.com>
Signed-off-by: Li Chengyuan <Chengyuan.li@intel.com>
2005-09-19 09:14:41 +00:00
kaf24@firebug.cl.cam.ac.uk d7f655cb2a The domain structure maintains several shadow mode stats,
such as shadow page counts for l1 & l2, hl2 tables, snapshots,
etc.  These counts are not decremented properly when we
free shadow pages.  The following patch fixes this problem.

Signed-off-by: Khoa Huynh <khoa@us.ibm.com>
2005-09-19 09:00:26 +00:00
emellor@ewan 03454aa712 Add and use XendDomainInfo.getBackendFlags to decouple image.py from the
internals of XendDomainInfo, in preparation for changing the latter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-18 22:42:02 +01:00
emellor@ewan 2c3b4d51c5 Changed dangerous default parameter values where used to use None instead.
Renamed variables type and ord since these clash with built-in names.  Renamed
unused variables to mark them as such.  Changed scheduler.py to use *args and
**kwargs rather than the strange non-idiomatic imitation of the same.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-18 22:41:12 +01:00
emellor@ewan 9fa82ce91a Remove the complexity of the config_handlers mechanism in favour of a simple
configure_maxmem method. The config_handlers mechanism was trying to be a
general configuration-registration framework, but that functionality was
unused and confusing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-18 18:21:12 +01:00
emellor@ewan ea07fa29e2 Added allocateDeviceID, which uses the store to keep track of per-domain,
per-device-class device IDs on behalf of the DevController subclasses.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-18 18:18:52 +01:00
emellor@ewan 4fbe918e12 Move definition of xc and xend to avoid confusing pylint.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-18 16:00:24 +01:00
emellor@ewan 33e481b28d Renamed XendDomainInfo.getTargetMemory to getMemoryTarget, for consistency with
XendDomainInfo.setMemoryTarget.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-18 15:50:12 +01:00