Commit Graph
267 Commits
Author SHA1 Message Date
cl349@firebug.cl.cam.ac.uk 1b8d0b8824 Initialize the xenstore MFN for VMX domains
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-10 08:44:58 +00:00
cl349@firebug.cl.cam.ac.uk d16ff05a08 merge? 2005-08-02 17:13:11 +00:00
cl349@firebug.cl.cam.ac.uk 59f1e250c2 Fix checkpointing - add save/restore support to the xenbus driver.
- Add xenbus driver suspend/resume functions
- Change xenbus irq to not be shared
- Translate store mfn in suspend record to pfn and back
- Make tools re-introduce the domain to the store
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-02 17:12:36 +00:00
kaf24@firebug.cl.cam.ac.uk 5f5202f471 Missing ia64_stubs file for libxc. 2005-08-02 11:08:47 +00:00
kaf24@firebug.cl.cam.ac.uk 12b1a321bd Here is our latest patch to enable the Xen tools to
build and work with IA64 Xen.
Signed-off-by: Matt Chapman <matthewc@hp.com>
Acked-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-07-29 10:34:45 +00:00
cl349@firebug.cl.cam.ac.uk 7aa5afeb6c Always pass around the store machine frame number instead of the linear address.
Also cleanup IOCTL_PRIVCMD_INITDOMAIN_STORE.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-27 17:17:09 +00:00
kaf24@firebug.cl.cam.ac.uk 2988ab5bf3 Really enable gdbserver for real mode code.
Missed out one instance where we need to check if we're running on
1:1 page tables with guest paging disabled.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:03:25 +00:00
kaf24@firebug.cl.cam.ac.uk 8f7262f9a6 Recently some people complain that they cannot set the maxmem for
domU. The problem is that some code wrongly treat dom.max_memkb as in
byte unit, instead of KB unit. This patch fixs the problem.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-07-15 08:30:22 +00:00
kaf24@firebug.cl.cam.ac.uk 4b043a942c Initial tools support for 32-bit x86 pae.
Signed-off-by: Gerd Knorr <kraxel@suse.de>
2005-07-13 15:04:49 +00:00
cl349@firebug.cl.cam.ac.uk 4e2b530c51 Add xc_init_store and run xenbus probe on INITDOMAIN_STORE privcmd ioctl.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-12 10:01:03 +00:00
kaf24@firebug.cl.cam.ac.uk 0fca1afde7 Tools build fixes. 2005-07-11 16:04:22 +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 aab6fa579e The attached patch adds a new dom0_op, DOM0_GETDOMAININFOLIST. This
operation allows retrieval of the domain info structures for all domains
in one hypercall.

Using a small test program, on a system with 97 domains with
non-contiguous domain IDs, I found that with this hypercall I could
retrieve the full array of info structures 12840 times per second, an
improvement from 2380 times per second with the DOM0_GETDOMAININFO op.

The patch also adds a libxc wrapper for this new hypercall.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
2005-07-08 09:06:04 +00:00
smh22@firebug.cl.cam.ac.uk 1f123c33a5 Move xenstore page before page tables so that guest doesn't free it after boot
Signed-off-by: Steven Hand <steven@xensource.com>
2005-07-06 15:36:57 +00:00
kaf24@firebug.cl.cam.ac.uk 63ba48b807 Fix grant-table interface by removing the unnecessary union.
This fixes a domU crash introduced over the weekend.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-04 15:34:57 +00:00
arun.sharma@intel.com[kaf24] 5ac71a4238 bitkeeper revision 1.1777 (42c3a88aPiHvcATujFTezqA1w1FMCg)
[PATCH] 64 bit xend cleanups.

64 bit xend cleanups.

Signed-off-by: Xin Li <xin.bi.li@intel.com>
Signed-off-by: Xiofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-30 08:08:42 +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
kaf24@firebug.cl.cam.ac.uk 6fd6101576 bitkeeper revision 1.1755 (42bd1fcfzi0ZazGyTao_Ff-m4vjOqQ)
.del-plan9a.out.h~cdc6aa24ef3ba635:
  Delete: tools/libxc/plan9a.out.h
2005-06-25 09:11:43 +00:00
kaf24@firebug.cl.cam.ac.uk 8d629caa27 bitkeeper revision 1.1754 (42bc7207le_rYvV9kj8p-Dztt3T_eA)
Fix signedness issues, found by Jerone Young.
2005-06-24 20:50:15 +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
kaf24@firebug.cl.cam.ac.uk 06420e5d04 bitkeeper revision 1.1752 (42bbe5ba5hLPfcw1f77_F22fq6v6Yw)
The set of patches below add support for loading plan9's a.out
format using the linux builder.  This is considerably simpler
than having a seperate builder, shares more code and should
be easier to maintain.  Hopefully the original plan9 builder
can go away in the future.

I've been able to test this manually with vm-tools but am
still having some problems (unrelated I think) with xm.

Signed-off-by: Tim Newsham <newsham@lava.net>
2005-06-24 10:51:38 +00:00
kaf24@firebug.cl.cam.ac.uk ed30037e48 bitkeeper revision 1.1751 (42bbe480z9Fp_L5Tc500W8c8CL3g9A)
Rationalise x86 CRn guest state into a ctrlreg array in the per-vcpu
context structure. Most noticeably this means the pt_base field has
gone away -- replaced by ctrlreg[3] (CR3). VCPU_guest_stts is also
gone -- it was never arch-independent anyway.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-24 10:46:24 +00:00
kaf24@firebug.cl.cam.ac.uk c2533bd68d bitkeeper revision 1.1748.1.2 (42bbd22bGsDJd8zBp_EBCg97pPrPqA)
With the patch attached, we can bring up x86_64 domU to the point where
it tries to mount the root fs (see the log below). We are looking at
problems around blkif_connect at this point.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
2005-06-24 09:28:11 +00:00
arun.sharma@intel.com[kaf24] 5ce68b82c6 bitkeeper revision 1.1741 (42ba8952xTiiA50azru9j4tKvXIVDA)
[PATCH] vmx-gdbserver-paging.patch

gdbserver should not try to convert guest physical to machine physical if
paging is not enabled.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-23 10:05:06 +00:00
kaf24@firebug.cl.cam.ac.uk 18dc46379c bitkeeper revision 1.1735 (42ba857eIL9j0maam3-Dv-gI3hOJUw)
Don't zero the vcpu flags in domain builder.
Signed-off-by: Scott Parish <srparish@us.ibm.com>
2005-06-23 09:48:46 +00:00
kaf24@firebug.cl.cam.ac.uk 61724bdcde bitkeeper revision 1.1730 (42ba7dbdkTADQfBqHaC_Ynqo3i1ZVw)
The xc_domain_getinfo does not clear the info structure before filling 
it in, and in some circumstances it doesn't completely fill in the 
structure for each domain.  In particular, it sets the crashed flag if 
the domain has crashed, but does not clear it if the domain has not 
crashed, so the crashed flag may be random stack garbage from the 
calling program.  With the attached patch (against the latest nightly), 
xc_domain_getinfo zeroes the array of info structures before filling 
them in.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
2005-06-23 09:15:41 +00:00
kaf24@firebug.cl.cam.ac.uk 8a6c33ded1 bitkeeper revision 1.1726.2.3 (42ba7587nwhnhQJ_hDkHTk8kTKtAFw)
Make sure we save errno across error-path printfs and munlocks. Based
on a patch from Anthony Liguori.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-23 08:40:39 +00:00
kaf24@firebug.cl.cam.ac.uk 8d0dbee96a bitkeeper revision 1.1726.2.1 (42ba6dcaSODxvHIftq9c1t2jDb4htA)
Include ACM header file in libxc header file.
2005-06-23 08:07:38 +00:00
iap10@freefall.cl.cam.ac.uk 22e32f8c3c bitkeeper revision 1.1720 (42b7bb86ag6KD5OEx2v6YdSnS1BhGQ)
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-21 07:02:30 +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
iap10@freefall.cl.cam.ac.uk 0338f79f59 bitkeeper revision 1.1719 (42b36f87tzUHBhdJfZKC_wBV271T0g)
manual merge
2005-06-18 00:49:11 +00:00
dsteklof@us.ibm.com[iap10] 90865c024e bitkeeper revision 1.1159.258.169 (42b35222QJFB1A-V4mSUnrUrLfA8xA)
[PATCH] RE: [Xen-devel] DOM0_GETDOMAININFO intended behavior

Ok... now that I (unintentionally) went overboard on this, why not just
document how it works and leave it as is?

signed-off-by: dsteklof@us.ibm.com
signed-off-by: ian@xensource.com
2005-06-17 22:43:46 +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
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
kaf24@firebug.cl.cam.ac.uk 988e686160 bitkeeper revision 1.1691.1.1 (42a6ada344SrT9VotpxjpMFmC9Wsng)
Increase max cmdline to 1024 characters.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-08 08:34:43 +00:00
cl349@firebug.cl.cam.ac.uk 1d2beac171 bitkeeper revision 1.1662.1.11 (42a4a26bkrYJJbT21Mpjyew3rnh7Cw)
xen.h, image.py, XendDomainInfo.py, xc.c, xc_linux_build.c, xc.h:
  Create store page for domains and plumb through to python.
XendDomainInfo.py:
  Cleanup comments.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-06 19:22:19 +00:00
cl349@firebug.cl.cam.ac.uk 4f7a49d8d0 bitkeeper revision 1.1681 (42a4172fYhXBx6d4aXa2ofB5qVB2Ww)
xc_gnttab.c, xc_evtchn.c:
  Cleanup error message printing and error exit code path.
xc_vmx_build.c, xc_private.c, xc_plan9_build.c, xc_linux_build.c:
  Cleanup error message printing.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-06 09:28:15 +00:00
cl349@firebug.cl.cam.ac.uk b94f8b3861 bitkeeper revision 1.1680 (42a4100bIstutWsVAoi7aPO8tLbFkA)
xc_load_elf.c, xc_load_bin.c:
  Fix missing rename (xc_*_probe -> probe_*) from previous commit.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-06 08:57:47 +00:00
cl349@firebug.cl.cam.ac.uk ce52246261 bitkeeper revision 1.1679 (42a40cfaZ0Dy-HjTM0W3L10VllkAnw)
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-clean
2005-06-06 08:44:42 +00:00
cl349@firebug.cl.cam.ac.uk aac7970f26 bitkeeper revision 1.1665.4.1 (42a40cf0EmwulK0I8hNEb2dVbDEkvQ)
xc_private.h, xc_linux_build.c, Makefile:
  Add support for loading ``bin'' format images, as used by ReactOS.
  Move image probing/parsing/loading code out of domain builder to allow
  multiple image formats without having to duplicate the domain building
  code.
xc_load_elf.c, xc_load_bin.c:
  new file
xc_vmx_build.c:
  Cleanup.
Signed-Off-By: Ge van Geldorp <gvg@reactos.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-06 08:44:32 +00:00
kaf24@firebug.cl.cam.ac.uk 01fd68a4ee bitkeeper revision 1.1676 (42a306a07UKpLq27_iCaJyxJBbKedg)
More console cleanups. The console ring now overwrites its tail when
it fills, rather than stop recording output. The guest serial output
is only allowed to half-fill the serial output buffer, and now
respects hypercall preemption requests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-05 14:05:20 +00:00
kaf24@firebug.cl.cam.ac.uk c1c0a2f39a bitkeeper revision 1.1674 (42a2cfb9WFgnh2K4Xr5ev3pSEASVbw)
Extend EVTCHNOP_alloc_unbound to allocate a specified port, if
non-zero value is passed in.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-05 10:11:05 +00:00
kaf24@firebug.cl.cam.ac.uk 7254a301ec bitkeeper revision 1.1665.1.5 (42a1a779yqLZDCutMj_vFNQlo3q3zw)
Rationalise debugger stuff in the tree.

Within Xen itself, remove PDB references and fold into domu_debug.
When domu_debug hits a breakpoint, it pauses all vcpus of the domain
and raises VIRQ_DEBUGGER (not VIRQ_PDB). The debugger in domain0 can
either poll pause status or bind to VIRQ_DEBUGGER. Before debugging
a breakpointed domain the debugger should issue PAUSEDOMAIN itself, or
it is not guaranteed to see paused state of the domain!

Outside Xen there's a new dir tools/debugger, containing gdb, pdb and
a new library libxendebug (used by pdb). I also think the ptrace
functions in libxc also ought to be moved out: either to libxendebug
or to a new library libxenptrace.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-04 13:07:05 +00:00
ach61@arcadians.cl.cam.ac.uk 87751a10c9 bitkeeper revision 1.1665.1.4 (42a0d193Tw6bR81EGNl7tuvqTTqdCw)
Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into arcadians.cl.cam.ac.uk:/auto/anfs/nos1/ach61/debugger
2005-06-03 21:54:27 +00:00
iap10@freefall.cl.cam.ac.uk a1f6364776 bitkeeper revision 1.1665.3.2 (42a0d0beY3Jku2hxgPBX6_mz23Ha3g)
[patch] libxc x86-64
I've redone the patch to add domU launching support to libxc for x86-64.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: ian@xensource.com
2005-06-03 21:50:54 +00:00
ach61@arcadians.cl.cam.ac.uk 3e93d04b1c bitkeeper revision 1.1665.2.1 (42a0c8fc5ayKCKfMu8Oo5dUccP4STA)
PDB 0.3
2005-06-03 21:17:48 +00:00
kaf24@firebug.cl.cam.ac.uk 03249160f6 bitkeeper revision 1.1628 (429dc9b7MTwsBkscbFS1sK8SbwJhdg)
Fix domain shutdown so that the new status, and notification to domain0,
occur *after* the domain is fully descheduled and its execution state
synchronised.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-01 14:44:07 +00:00
cl349@firebug.cl.cam.ac.uk 3d28d79984 bitkeeper revision 1.1603 (429c25daAxv8CzKG49dW0khs2wyBew)
xc_ptrace_core.c, xc_ptrace.c:
  SLES9 has a problem with it's <asm/elf.h> and other headers associated
  with it. Since we are only using one thing from this (that we really
  don't need) we can just stop including it.
http://bugzilla.xensource.com/cgi-bin/bugzilla/show_bug.cgi?id=34
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-31 08:52:42 +00:00
arun.sharma@intel.com[kaf24] 17e89f8169 bitkeeper revision 1.1577 (429831a31IZvEeEnalH3oKUTY7jV7A)
[PATCH] vmx-worldswitch-1-to-1.patch

Fix VMX world switch to use 1:1 page tables when the guest has paging
disabled. Also do a printk instead of VMX_DBG_LOG() anytime we crash
a domain.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-05-28 08:53:55 +00:00
cl349@firebug.cl.cam.ac.uk f886165f6f bitkeeper revision 1.1550.1.3 (4294b356XJn1FHEVZ-2JlKpBDmqmpA)
xc_linux_restore.c:
  Make read from network work.
  Make error messages more specific.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-25 17:18:14 +00:00