Commit Graph
1996 Commits
Author SHA1 Message Date
cl349@firebug.cl.cam.ac.uk ca899c5e1e Rename xm commands and cleanup of the "bogus" argument code.
For the "bogus" argument code, avoid changing the argument list so
that errors can be reported consistently.
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-14 17:06:25 +00:00
kaf24@firebug.cl.cam.ac.uk ae4ef259f1 Fix xc_domain_memory_decrease_reservation().
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-14 15:56:06 +00:00
cl349@firebug.cl.cam.ac.uk 9740bf13a7 Add methods to read/write Vm/Domain store entries.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-14 15:47:48 +00:00
cl349@firebug.cl.cam.ac.uk acfc3f80c0 Move name back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-14 15:25:28 +00:00
cl349@firebug.cl.cam.ac.uk 005cfd74fc Move id back into main domain dir and rename to domid.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-14 15:10:22 +00:00
cl349@firebug.cl.cam.ac.uk 55e3bdbe99 merge? 2005-09-14 14:43:34 +00:00
cl349@firebug.cl.cam.ac.uk 87cf0c7b0a Move uuid back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-14 13:37:03 +00:00
kaf24@firebug.cl.cam.ac.uk 458fb4bc12 Add some sanity check when creating 3-level 1:1 page table
in VMX domain builder.
 - Add check for empty l2e page entry.
 - Add check for failed vl1tab map.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
2005-09-14 13:34:14 +00:00
kaf24@firebug.cl.cam.ac.uk 64d0d8fd51 Clear pending interrupt on shared page when pic initialized
and irq base changed.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2005-09-14 13:28:45 +00:00
kaf24@firebug.cl.cam.ac.uk 79434e94bd Get rid of anonymous unions in public header files.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-14 13:13:10 +00:00
cl349@firebug.cl.cam.ac.uk 714ecf5c5b Call dominfo.device_delete instead of non-existant dominfo.device_destroy.
Signed-off-by: Sean Dague <sean@dague.net>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-14 12:49:13 +00:00
kaf24@firebug.cl.cam.ac.uk 3886819443 Remove unsued domain_controller.h file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-14 10:58:00 +00:00
kaf24@firebug.cl.cam.ac.uk d356ca1e93 mem-map.sxp and vmxloader are unaffected by a 64-bit build,
and belong in /usr/lib always (never /usr/lib64). qemu-dm
continues to live under /usr/lib64 on 64-bit systems.
Modify the vmx config script to auto-detect correct path
to qemu-dm, rather than staically configuring at compile
time.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-14 09:14:32 +00:00
cl349@firebug.cl.cam.ac.uk 2c0ba8d075 Fix xenstored watch crash.
When a connection blocked waiting on a transaction, don't queue watch events.
Sure, they'd be ignored and re-transmitted, but it hits an assert that we don't
send data out blocked connections, and it's wasteful.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-14 08:41:49 +00:00
cl349@firebug.cl.cam.ac.uk ab4b7e8e65 Don't return failure when trying to delete a non-existent node.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 21:52:24 +00:00
cl349@firebug.cl.cam.ac.uk 1adef4288b Don't fail readDB on empty dirs.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 21:00:13 +00:00
cl349@firebug.cl.cam.ac.uk 52ae2445d4 Switch shutdown and sysrq to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 20:54:41 +00:00
cl349@firebug.cl.cam.ac.uk a2cacdde16 Switch memory target handling to use xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 17:49:38 +00:00
cl349@firebug.cl.cam.ac.uk 68370e7afb g/c introduceDomain and releaseDomain bindings in xsnode and xsobj.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 17:32:59 +00:00
cl349@firebug.cl.cam.ac.uk 8fabb88101 Switch vcpu hotplugging to use xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 17:31:13 +00:00
cl349@firebug.cl.cam.ac.uk d0b30dab40 Fix domain list build/cleanup code with xend subdirectory.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 16:57:45 +00:00
cl349@firebug.cl.cam.ac.uk 366ca1710b IntroduceDomain of dom0 can fail when it's already connected.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 16:56:02 +00:00
cl349@firebug.cl.cam.ac.uk ab283d0519 Fix error handling code paths.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 16:55:21 +00:00
cl349@firebug.cl.cam.ac.uk 235a106a4d merge? 2005-09-13 15:48:19 +00:00
cl349@firebug.cl.cam.ac.uk 232f9bd51e merge? 2005-09-13 15:46:49 +00:00
emellor@ewan eac7c24115 Fix imports.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-13 16:44:48 +01:00
cl349@firebug.cl.cam.ac.uk 7a1d906c42 merge? 2005-09-13 15:33:37 +00:00
cl349@firebug.cl.cam.ac.uk 38d5e48a2a Store dom0 store ring-ref in store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 15:32:38 +00:00
cl349@firebug.cl.cam.ac.uk 00ace40244 Switch to IntroduceDomain, move xend info into xend subdirectory in store.
Also switch store/console event channel and page reference store
entries over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 15:21:53 +00:00
cl349@firebug.cl.cam.ac.uk 0f3e2f8397 Move xshandle to xsutil.py, add IntroduceDomain, fix list to handle empty/non-existant directories and fix Remove.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 15:19:39 +00:00
cl349@firebug.cl.cam.ac.uk 27cdd701cf merge? 2005-09-13 15:05:49 +00:00
emellor@ewan 4482ab5c87 Fix the check that the argument count is even, for xenstore_write. 2005-09-13 15:46:20 +01:00
cl349@firebug.cl.cam.ac.uk 8e04472036 Change read and list to return None if key/dir doesn't exist.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 14:45:34 +00:00
ewan@linford.intra c0bff953ee Added isDevControllerClass so that XendDomainInfo does not need to store the same information internally. This may soon go, depending on how useful controller.py turns out to be. 2005-09-13 14:49:37 +01:00
ewan@linford.intra 5487f5762e Removed {add,get}_{config,device}_handler in favour of using a simple dictionary directly. Fix a misnamed variable blconfig that was supposed to refer to blcfg. This showed up under pylint as a undefined variable, but would have manifested itself in the bootloader configuration being ignored. 2005-09-13 14:48:22 +01:00
ewan@linford.intra e4eb0b4cde Added .PHONY target so that make works from the tools/python directory (it was seeing the build directory and therefore doing nothing). 2005-09-13 14:43:18 +01:00
kaf24@firebug.cl.cam.ac.uk ce540e0464 This trivial patch makes sure that mem-map.sxp and the qemu bits
get installed in /usr/lib64 on distributions that want things
there.

Signed-off-by: Rik van Riel <riel@redhat.com>
2005-09-13 10:49:04 +00:00
cl349@firebug.cl.cam.ac.uk 1a93386154 Fixed consoled race condition.
Signed-off by: Andy Peace <andrew.peace@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 10:13:52 +00:00
cl349@firebug.cl.cam.ac.uk 7c24518512 Fix up testsuite from recent changes.
(1) Make TESTDIR relative (my directory exceeded 108 chars, breaking sockets)
(2) Make TESTDIR if it doesn't exist
(3) Add dummy xc_domain_getinfo and xc_evtchn_bind_virq for fake libxc
(4) Fix tests broken by b594bb976a743d509f1ffabb5bc698874ab90d8f
(5) domain_cleanup() can be static, as it's not used elsewhere.
(6) With -Werror, "use" unused variable in domain_init() if TESTING
(7) Remove debugging printf on watch without perms.
(8) Loosen timeout in xs_test (valgrind + slow machine == bogus timeouts)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 09:09:13 +00:00
cl349@firebug.cl.cam.ac.uk bd843d47d8 Always allow overriding where clients connect through XENSTORED_PATH.
Detect if we're connecting to a socket or to the domain device and
open accordingly.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 21:42:26 +00:00
cl349@firebug.cl.cam.ac.uk 493519fd23 Change xenbus_dev interface from ioctl to read/write.
Check boundaries so we can recover if userspace dies.
Also simplifies libxenstore.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 21:12:16 +00:00
cl349@firebug.cl.cam.ac.uk 849d58c0c2 Add xenstore-list and xenstore-exists clients
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 20:46:37 +00:00
cl349@firebug.cl.cam.ac.uk 84592bf97c Check the return value of chdir(2) and write(2).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 20:24:58 +00:00
cl349@firebug.cl.cam.ac.uk d75b89f0b5 merge? 2005-09-12 20:00:41 +00:00
cl349@firebug.cl.cam.ac.uk 79b6a582e9 Switch vtpm device setup/teardown over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:59:40 +00:00
cl349@firebug.cl.cam.ac.uk d880fc6ac1 Switch block device setup/teardown over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:55:57 +00:00
cl349@firebug.cl.cam.ac.uk ce38a72dc5 Remove debug output.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:49:59 +00:00
cl349@firebug.cl.cam.ac.uk eccd1bf398 Move block device bind/unbind into hotplug scripts.
Fixes file: devices since unbind now runs after the backend driver
closes the loopback device.
Also moves name -> node translation into the backend domain.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:49:03 +00:00
kaf24@firebug.cl.cam.ac.uk b29fc06bed This patch remove the L2 pin for 1:1 page table on control panel.
L2 pin for 1:1 page table on control panel cause entries for top 64M
address changed by alloc_l2_table().

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2005-09-12 17:48:07 +00:00
kaf24@firebug.cl.cam.ac.uk 999ef6d9c5 The last vnet patch was missing some files that had been added
to my tree but did not appear in 'hg diff'. This patch adds them.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-09-12 14:11:59 +00:00