Commit Graph
537 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk bd16e616b6 Attached patch removes the empty domain if
xc.memory_increase_reservation fails.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-07-26 16:16:39 +00:00
kaf24@firebug.cl.cam.ac.uk 71ae53ce26 This patch prevents you from getting a screen full of stack trace when
trying to run commands like xm list as a normal user, and instead provides a
helpful error message.

Signed-off-by: Sean Dague <sean@dague.net>
2005-07-26 15:16:39 +00:00
twilkie@paploo.uk.xensource.com 2145204551 Add XenSV back into the repository.
Now uses Python Server Pages, not twisted.
2005-07-26 13:56:30 +00:00
kaf24@firebug.cl.cam.ac.uk 643aa19009 Allow multiple disk images per guest.
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:02:34 +00:00
kaf24@firebug.cl.cam.ac.uk ae7da5d7f3 Don't leave behind zombie device model processes
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:01:57 +00:00
kaf24@firebug.cl.cam.ac.uk 72098d9304 Device model SXP cleanup
- don't pollute the sxp with unused options
- use the same syntax as paravirtualized domains for disks

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-11 20:09:10 +00:00
kaf24@firebug.cl.cam.ac.uk 8ff31ab726 The 1:1 page table should be a 3 level PAE page table on x86-64
This is needed to support > 4GB machine physical addresses.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-11 14:39:10 +00:00
kaf24@firebug.cl.cam.ac.uk fb4f1fe815 python wrapper arg fix from aq. 2005-07-08 08:02:45 +00:00
iap10@freefall.cl.cam.ac.uk 8e1bda2932 I updated the vcpu_to_cpu string creation to include a field separator,
which gets rid of the -1 -> # hack and works for cpus > 9.

I ran into some issues with stale vcpu_to_cpu lists when running the
hotplug subprogram.  I would take a vcpu offline, and then issue the
command to bring it back and the vcpu_to_cpu list would not have changed
to indicate the the vcpu actually went down.  If I injected a xm list -v
(which always showed the correct mapping) then subsequent hotplug
commands would see the state change and fire off the hotplug request.  I
don't know that not sending the event when not changing state saves that
much work so I took the state check out and now just send the hotplug
event directly.

> Also the whole hotplug stuff is still missing interrupt re-routing
> when a vcpu is taken down.  To do this, we need an evtchn operation to
> change the vcpu affinity of a port by changing notify_vcpu_id.

I don't fully understand all of the mappings that are happening, so this
part of the patch might be way off.  In any case, I've added a new
evtchn op to set the notify_vcpu_id field of a channel.  I updated the
HOTPLUG_CPU code to use the new routines when bringing cpus up and down.
When taking down a cpu, I route the IPI irq channels to CPU 0, and when
the cpu comes up, it re-routes the channels back to the awakened CPU.

From: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: ian@xensource.com
2005-07-06 22:23:18 +00:00
kaf24@firebug.cl.cam.ac.uk 3f54e6d5ec Attached is a patch that fully 'grant-table-ifies' the block front and
backends.  It is necessary to do a make clean in the tools directory and 
then rebuild the tree.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-07-06 08:50:11 +00:00
kaf24@firebug.cl.cam.ac.uk 763c04b318 Rename fields in physinfo_t structure and add sockets/nodes
fields.
2005-07-04 16:02:46 +00:00
arun.sharma@intel.com[kaf24] 03d545ffcd bitkeeper revision 1.1773 (42c3a841nLib9kdSmthr05jouqiNeg)
[PATCH] Device model cleanup.

Device model cleanup.

- Single config file for xen and device models
  (Shell script doesn't source xmdefconfig anymore)
- No more device-model shell script by default. You can
  have one if needed (qemu-dm.debug)
- All logic in the script device-model is moved to python
- $DISPLAY is passed from xm to xend
- Don't fork vncviewer on dryruns
- Add support for killing device models on domain destroy
- info vmxiopage command added to the monitor
- Refactor shared io page into global and per vcpu state
- Remove the hard coding of IOPACKET_PORT
- move the virtual_platform_def up to domain struct from vcpu
- xm create -n:

(vm
    (name ExampleVMXDomain)
    (memory 128)
    (ssidref -1)
    (image
        (vmx
            (kernel /usr/lib/xen/boot/vmxloader)
            (root '/dev/hda1 ro')
            (vcpus 1)
        )
    )
    (memmap )
    (device_model /tmp/foo)
    (hda /var/images/min-el3-i386.img)
    (hdb )
    (hdc )
    (hdd )
    (cdrom )
    (boot c)
    (fda )
    (fdb )
    (localtime 0)
    (serial )
    (macaddr )
    (stdvga 0)
    (isa 0)
    (nographic 0)
    (vnc 0)
    (sdl 0)
    (display localhost:10.0)
)

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-30 08:07:29 +00:00
cl349@firebug.cl.cam.ac.uk a575a4a3a8 bitkeeper revision 1.1766 (42c17071SPDLo7qPlXAiQzrKjMu6Mw)
Add xenbus driver.
XendDomainInfo.py:
  Connect/Disconnect domains to/from store.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> (authored)
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-28 15:44:49 +00:00
kaf24@firebug.cl.cam.ac.uk 19b63a9f44 bitkeeper revision 1.1757 (42be9ad5TTWQjsCBju5noyzBrTMyjA)
Attached is the patch that changes the default ssid from 0xffffffff to 0 
as discussed in previous emails. 

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-06-26 12:08:53 +00:00
kaf24@firebug.cl.cam.ac.uk dc0838d499 bitkeeper revision 1.1753 (42bbe67ePvjh9K0djYf6xRw2rGNreQ)
Properly remove old plan9 builder from xc header fiel and from xend.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-24 10:54:54 +00:00
cl349@firebug.cl.cam.ac.uk 8e6ffdae8e bitkeeper revision 1.1747 (42bbc01fY31MfvOqdz4Mq_h_2D4Usg)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk
2005-06-24 08:11:11 +00:00
cl349@firebug.cl.cam.ac.uk bc3c530470 bitkeeper revision 1.1742.1.1 (42bbc016sc__D7n9oSLMG75cKXdixQ)
XendDomainInfo.py: Fix imports.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-24 08:11:02 +00:00
kaf24@firebug.cl.cam.ac.uk b1fe63ce24 bitkeeper revision 1.1746 (42badf41asjaKoYentyODb8CdFEydg)
Cset exclude: arun.sharma@intel.com[kaf24]|ChangeSet|20050623091344|24134
2005-06-23 16:11:45 +00:00
arun.sharma@intel.com[kaf24] dee0a637a4 bitkeeper revision 1.1729 (42ba7d48EFeRBiv6YMxK_aR9binchA)
[PATCH] novnc-dryrun.patch

Don't start VNC on a dry run.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-23 09:13:44 +00:00
smh22@firebug.cl.cam.ac.uk 063a38978a bitkeeper revision 1.1726.2.5 (42ba7c68cP1Z3SmHyVl4grEnN-Yf8g)
minor xense tool updates

Signed-off-by: Steven Hand <steven@xensource.com>
2005-06-23 09:10:00 +00:00
cl349@firebug.cl.cam.ac.uk be51472d62 bitkeeper revision 1.1726 (42b7f1bfzMUFLRiUR9wWkzc2mh-Ing)
Add new control messages for vcpu hotplug events.  Via the
xm vcpu-hotplug sub-program, vcpus in domains can be enabled/disabled
when CONFIG_HOTPLUG_CPU is enabled in the target domain's kernel.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-21 10:53:51 +00:00
smh22@firebug.cl.cam.ac.uk 26922e5f08 bitkeeper revision 1.1723 (42b7c4f7lKvZiHctN9YxRzuWreG0iQ)
quiet xm ssid-ref output for now - use policy tool or -l for details
2005-06-21 07:42:47 +00:00
smh22@firebug.cl.cam.ac.uk 80070b4a6c bitkeeper revision 1.1718.1.7 (42b742f8NxTuN2pqCHFAWI78dbEYKw)
Initial MAC (sHype) support from IBM. 
Defaults to NULL policy for now. 

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Steven Hand <steven@xensource.com>
2005-06-20 22:28:08 +00:00
cl349@firebug.cl.cam.ac.uk 26892e4715 bitkeeper revision 1.1718.1.3 (42b5315dLCz3iIB7jiQxJQjbRXXdoQ)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk
2005-06-19 08:48:29 +00:00
cl349@firebug.cl.cam.ac.uk bca61ae472 bitkeeper revision 1.1713.3.15 (42b53156pSSLSNwQRl51kxkAtBPgTQ)
xsnode.py:
  fileno is a method now.
netif.py, blkif.py, XendDomainInfo.py:
  Cleanup interface to DB.
xs.c:
  Don't special case xs_fileno.
  Update comments.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-19 08:48:22 +00:00
iap10@freefall.cl.cam.ac.uk 86d6165ed3 bitkeeper revision 1.1716 (42b336f8VKVQeJVq9gIppvvdYPrMmw)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
2005-06-17 20:47:52 +00:00
cl349@firebug.cl.cam.ac.uk 6d76d5803f bitkeeper revision 1.1713.3.14 (42b31404a5lBMKNKYzOsHXWQ0k_d-Q)
xsnode.py:
  Updated watches/event code from Mike Wray.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 18:18:44 +00:00
cl349@firebug.cl.cam.ac.uk b00fe9d709 bitkeeper revision 1.1713.3.13 (42b30f66_kcj5tkDzz9DSBmqEbyHrQ)
xs.c:
  Update comment.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 17:59:02 +00:00
cl349@firebug.cl.cam.ac.uk 996ee15db0 bitkeeper revision 1.1713.3.12 (42b30f09wgYSRV9tHZUjq2JpreIozQ)
xs.c:
  Fix some oversights in watch/token code.
  Cleanup whitespace.
  Move method documentation next to method definition.
  Reorder functions in file.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 17:57:29 +00:00
cl349@firebug.cl.cam.ac.uk 21f4c1e5b9 bitkeeper revision 1.1713.3.11 (42b30a02txpfqH2-OnZmhyrJWqPgHQ)
xs.c:
  Add copyright notice.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 17:36:02 +00:00
cl349@firebug.cl.cam.ac.uk 8994c2f2ef bitkeeper revision 1.1713.3.10 (42b306faXfFxqDZahYvvQJPQeaDm1A)
netif.py:
  Add mtu config option for network interfaces.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 17:23:06 +00:00
cl349@firebug.cl.cam.ac.uk 53f499bc57 bitkeeper revision 1.1713.3.9 (42b306d0pFeN318FP89TE8LRrhROMQ)
xsobj.py:
  Cleanup interface to DB.
  Updated watches/event code.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 17:22:24 +00:00
cl349@firebug.cl.cam.ac.uk 936d91fbba bitkeeper revision 1.1713.3.8 (42b2f91bG45uUFWHhUaUha3e1OAxJQ)
xsnode.py:
  Updated watches/event code from Mike Wray.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 16:23:55 +00:00
cl349@firebug.cl.cam.ac.uk c7fcce5589 bitkeeper revision 1.1713.3.7 (42b2eca9N1e5S0oGdW8OeKAkL9oDOQ)
netif.py, blkif.py:
  Add exportToDB functions to save evtchn port.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 15:30:49 +00:00
cl349@firebug.cl.cam.ac.uk 99a2107ffa bitkeeper revision 1.1713.3.6 (42b2dc47kgG53fAZb70R3lHX96n7dw)
xsobj.py:
  Handle attribute lookups for non-existing attributes.
  Use setAttr consistently.
  Fix access to data in convertFromDB.
console.py:
  Cleanup whitespace.
channel.py:
  Cleanup saveToDB.
blkif.py:
  Save dev_handle in DB.
image.py:
  Cleanup exportToDB.
XendDomainInfo.py:
  Cleanup {save,export}toDB use.
  Cleanup whitespace.
  Change id type to be int.
  Output store_mfn in sxpr.
  Use id variable name consistently for domain id's.
  Add eventChannel comment.
  On restore, the uuid must be known.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 14:20:55 +00:00
cl349@firebug.cl.cam.ac.uk 4ddc54b2db bitkeeper revision 1.1713.3.5 (42b2a4e2r6SNlC_nq2hAkXEQjEFAmA)
Many files:
  - watch now takes a token, returned when reading watch
  - More tests
  - Fix domain shared page communication (flush output)
  - Add "home" path for domains
  - More permissions checks in various functions
  - Simplify watch acknowledgement code and fix occasional bug
xs_watch_stress.c, 12readonly.sh, 11domain-watch.sh, 10domain-homedir.sh:
  new file
xs_stress.c, xs_lib.h, xs_lib.c:
  Cleanup whitespace.
ignore:
  Add tools/xenstore/xs_watch_stress
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 10:24:34 +00:00
cl349@firebug.cl.cam.ac.uk b68bddb480 bitkeeper revision 1.1713.3.2 (42b296adTFf-i3SL6NuYF5MX4ai91Q)
Makefile:
  Build libxenstore-pic.a.
setup.py:
  Link with libxenstore-pic.a.
Makefile:
  Build libxc-pic.a.
  Build xenstore once is enough.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 09:23:57 +00:00
arun.sharma@intel.com[kaf24] 0e6cf5a2af bitkeeper revision 1.1713.1.8 (42aed659DzIwFCeaK8Cxa8ZpzbHR-Q)
[PATCH] 64-session-id.patch

session_id is an opaque pointer, so should be wider on 64 bit platforms.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-14 13:06:33 +00:00
kaf24@firebug.cl.cam.ac.uk 16e23b02c2 bitkeeper revision 1.1713.1.5 (42ae0d44bPpuSBR0o475OuEOeDlNPg)
Fix xs Python module for Python <2.3.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-13 22:48:36 +00:00
arun.sharma@intel.com[iap10] 74bb5fc927 bitkeeper revision 1.1714 (42aa3a9a496MHCAuDASFOLRgBsKcZQ)
[PATCH] [PATCH] vmx-device-models-py.patch

Start device models for VMX domains. I'm not sure why the event channel port number is off by 1.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-11 01:12:58 +00:00
vh249@arcadians.cl.cam.ac.uk 8ce61a2eaf bitkeeper revision 1.1705.1.12 (42a97f88WORgYhHS8W4t6DR8V9a0EQ)
signedness fix for gcc-4.0

Signed-off-by: Flavio Bruno Leitner <fbl@conectiva.com.br>
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-06-10 11:54:48 +00:00
mwilli2@equilibrium.research 3a431a224c bitkeeper revision 1.1705.1.1 (42a8f3c2-cPCJhjiT7sAAqBGBwdd6w)
Tiny tweak to fix ballooning via Xend.
2005-06-10 01:58:26 +00:00
cl349@firebug.cl.cam.ac.uk 06940d306a bitkeeper revision 1.1700 (42a854e79oBFuqa_DSY4Lr9IhenUQw)
Merge xenstore changes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-09 14:40:39 +00:00
cl349@firebug.cl.cam.ac.uk 8b624164ab bitkeeper revision 1.1662.1.22 (42a852969xilS9HOsAWARXW2hEx3FQ)
XendDomain.py:
  Fix commants and remove debugging output.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-09 14:30:46 +00:00
cl349@firebug.cl.cam.ac.uk 42d8ee3480 bitkeeper revision 1.1662.1.21 (42a80585xAt7ZrRcqmCRm3HvTrL7Mg)
Many files:
  Switch to xenstore for storing persistent information.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-09 09:01:57 +00:00
cl349@firebug.cl.cam.ac.uk 57c8cb2125 bitkeeper revision 1.1662.1.20 (42a8054awYd-HJnwjnXqXtWmKbE1Yw)
SrvDaemon.py:
  Disable kill of xenstored on xend exit.
xu.c:
  Set error reason in failure case.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-09 09:00:58 +00:00
cl349@firebug.cl.cam.ac.uk 7fef173569 bitkeeper revision 1.1662.1.18 (42a5a348BpHwgoiWQI1wI9LMej7F3w)
setup.py:
  Add xen.xend.xenstore.
xsresource.py, xsobj.py, xsnode.py, __init__.py:
  new file
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-07 13:38:16 +00:00
cl349@firebug.cl.cam.ac.uk 3a834bf165 bitkeeper revision 1.1662.1.17 (42a59f62TbTw4kErDSfuOYh8iAzCuA)
setup.py:
  Add xenstore python bindings.
xs.c:
  new file
params.py:
  XSDAEMON_DEBUG -> XENSTORED_DEBUG
Makefile:
  xenstore is also a library -- build it before python.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-07 13:21:38 +00:00
cl349@firebug.cl.cam.ac.uk 8359d0386f bitkeeper revision 1.1662.1.16 (42a59915qzJ0eBmm6tVyIARo8G0cXA)
params.py, SrvDaemon.py:
  Add xenstored.
ignore:
  Add tools/xenstore/xenstored.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-07 12:54:45 +00:00
cl349@firebug.cl.cam.ac.uk 636a81e970 bitkeeper revision 1.1662.1.14 (42a4b1f1ZyB5X1YlXHuUGf5X8C-gvQ)
XendDomainInfo.py:
  Cleanup store channel.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-06 20:28:33 +00:00