Commit Graph
6619 Commits
Author SHA1 Message Date
cl349@firebug.cl.cam.ac.uk 0c97488f1e Only remove domain from store once it's suspended.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-05 14:45:19 +00:00
cl349@firebug.cl.cam.ac.uk ce27fde65d Keep start_info in page provided by domain builder instead of making a copy.
- page is moved next to store/console pages -- these are never put in the
  free page pool by the domain
- xen_start_info is now a pointer to the original page instead of the copy
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-05 14:04:36 +00:00
cl349@firebug.cl.cam.ac.uk 3be9591d1c Free grant reference when block device shuts down.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-05 08:23:05 +00:00
cl349@firebug.cl.cam.ac.uk 861a94596f merge? 2005-09-05 08:22:21 +00:00
cl349@firebug.cl.cam.ac.uk 0a888ca939 Suspend console after xenbus, resume console before xenbus.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-05 08:21:58 +00:00
shand@ubuntu.eng.hq.xensource.com 48a341d6f5 Fix build.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-09-04 15:51:39 -08:00
cl349@firebug.cl.cam.ac.uk cfd287f45c Fix build.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-04 22:45:45 +00:00
akw27@arcadians.cl.cam.ac.uk 3e2b1c87ba Updates to blktap driver and user code.
Mostly this makes the tap code work again with all of the changes that
have happened to the block drivers recently.  We now use a shared page
per VBD (to the driver), and handle control information through the
store.  The taplib interfaces have changed to be based around per-vbd
data structures that you can attach arbitrary handlers for.

There is also initial code for a user-level blockback driver, which
aims to get around the use of loopbacks for file-based vbds.  Still
plenty of work to do here -- this is a working incremental checkin and
I'm away from this for the next four weeks.

Signed-off-by: Andrew Warfield <andrew.warfield@cl.cam.ac.uk>
2005-09-04 21:19:44 +00:00
cl349@firebug.cl.cam.ac.uk 3ebd771dc3 Fix build dependency issue.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-04 15:08:16 +00:00
cl349@firebug.cl.cam.ac.uk cd6b9e556e merge? 2005-09-03 18:48:59 +00:00
cl349@firebug.cl.cam.ac.uk 3bc1edc4ab Update suspend/resume for new console code.
- translate console mfn to pfn
- unbind/bind console evtchn
- recover console mfn on restore
- trigger xenconsoled refresh after mfn is put in store
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-03 18:48:39 +00:00
iap10@firebug.cl.cam.ac.uk bf00d92963 merge fixup 2005-09-03 18:40:04 +00:00
cl349@firebug.cl.cam.ac.uk bb53806209 merge? 2005-09-03 18:24:46 +00:00
iap10@firebug.cl.cam.ac.uk cbc882e28a merge 2005-09-03 18:15:39 +00:00
iap10@freefall.cl.cam.ac.uk a45f72e398 Fix to allow -xen and -xen0 kernels to be used as unprivilged guests.
Signed-off-by: ian@xensource.com
2005-09-03 17:14:20 +00:00
cl349@firebug.cl.cam.ac.uk b319f36dde merge? 2005-09-03 16:58:50 +00:00
cl349@firebug.cl.cam.ac.uk e7d2a9a3d5 Restore printk to output evtchn binding error.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-03 16:57:54 +00:00
cl349@firebug.cl.cam.ac.uk a916bf616c Add support in libxenstore for using the xenbus_dev store connection.
Also add simple read/write/rm clients for command line access to the
store (using the xenbus_dev store connection).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-03 16:54:38 +00:00
cl349@firebug.cl.cam.ac.uk b8ea605500 Add driver to use the kernel's xenbus connection from user-space.
The driver exports xs_talkv to user-space, allowing programs running in
the domain to use the kernel's xenbus connection.  Intended use is driver
domain device configuration where the driver domain is not the domain
running xenstored.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-03 16:52:12 +00:00
iap10@firebug.cl.cam.ac.uk 5b6650ecc1 Fix debug build that was broken by recent shadow pagetable checkin.
Signed-off-by: ian@xensource.com
2005-09-03 16:33:53 +00:00
cl349@firebug.cl.cam.ac.uk 4656b11c4c Free struct file file_private on release.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-03 16:32:53 +00:00
shand@ubuntu.eng.hq.xensource.com 01d0370a52 Enable 'live' migration from a tools pov; prior to this the 'live' flag was
being ignored by xend/xc_linux_save.

Signed-off-by: Steven Hand <steven@xensource.com>
2005-09-02 17:36:29 -08:00
kaf24@firebug.cl.cam.ac.uk d7d77c20cf Attached are the patches for new ioemu communication mechanism. The new
mechanism provides richer I/O operation semantics, such as and,or,xor
operation on MMIO space. This is necessary for operating systems such
as Windows XP and Windows 2003.

This is the first part of a two part patch. This patch applies to ioemu.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-09-02 17:55:24 +00:00
kaf24@firebug.cl.cam.ac.uk f51a260fc8 Now that unaligned page overlapping PIO works for Xen, it is time to
eliminate the work around in the rombios.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-09-02 17:54:53 +00:00
kaf24@firebug.cl.cam.ac.uk 6622e5e7a8 Attached are the patches for new ioemu communication mechanism. The new
mechanism provides richer I/O operation semantics, such as and,or,xor
operation on MMIO space. This is necessary for operating systems such
as Windows XP and Windows 2003.

This is the second part of a two part patch. This patch applies to xen.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-09-02 17:54:34 +00:00
kaf24@firebug.cl.cam.ac.uk bfbc365faa Various minor vmxassist cleanups.
Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-09-02 17:53:52 +00:00
kaf24@firebug.cl.cam.ac.uk 68e994a7ed We need to be more precise and restore the %eip.
Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-09-02 17:53:34 +00:00
kaf24@firebug.cl.cam.ac.uk b2e339351a Handle page overlapping copies.
Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-09-02 17:53:04 +00:00
kaf24@firebug.cl.cam.ac.uk 936fbe104f Qemu-dm dumps core with the pcnet device. This patches fixes it.
When pcnet_receive calls pcnet_poll, which polls the receive and the send
rings. Whenever there is an element in the send ring that is owned by
the Lance chip it will call pcnet_transmit and send it. When the element
is the endp(acket), pcnet_transmit will copy it out, send the packet
(qemu_send_packet) and then clear the owner bit. Somewherer along the
qemu_send_packet execution path, pcnet_recieve is called again, which
calls pcnet_poll and starts this whole process again. This very rapidly
leads to a stack overflow and crashes qemu.

The fix is simple, stop the recursion. Once the packet is copied into
qemu datatstructure (before qemu_send_packet is called!), the owner bit
on the ring element should be cleared.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-09-02 17:52:37 +00:00
kaf24@firebug.cl.cam.ac.uk c14bd44251 Fix preemption-check race in memory_op hypercall.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-02 17:02:08 +00:00
kaf24@firebug.cl.cam.ac.uk a3b54ef4da Fix writing to mmap'ed /dev/mem region mapped PROT_WRITE
and MAP_PRIVATE. This is in fact a generic Linux bug.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-02 16:51:55 +00:00
cl349@firebug.cl.cam.ac.uk b3e59dd645 Install hotplug script(s) unconditionally.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-02 14:20:12 +00:00
cl349@firebug.cl.cam.ac.uk 6cbdb04a29 merge? 2005-09-02 14:17:08 +00:00
cl349@firebug.cl.cam.ac.uk 074210e720 Restore configurability of vif bring up script and passing arguments to the script.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-02 14:15:49 +00:00
kaf24@firebug.cl.cam.ac.uk d26b1c7f7f Mini-os fixes from Simon Kagstrom. 2005-09-02 10:04:42 +00:00
kaf24@firebug.cl.cam.ac.uk 1bde153f05 Missing shadow files. 2005-09-02 10:04:11 +00:00
kaf24@firebug.cl.cam.ac.uk a22019c74b This patch is to boot 32-bit VMX guest on the 64-bit host.
Double-compile is used to make both 64-bit guest and 32-bit guest can
work, the shadow page-table uses current 64-bit shadow code's structure
to simulate 32-bit guest's 2-level page-table.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Xiaohui Xin  <xiaohui.xin@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-09-02 09:43:32 +00:00
kaf24@firebug.cl.cam.ac.uk a5c2e9df35 Clean up tools/check error reporting. Remove logging.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-02 09:02:13 +00:00
kaf24@firebug.cl.cam.ac.uk 4e84295e08 New scripts I missed from previous security patch. 2005-09-02 08:06:59 +00:00
kaf24@firebug.cl.cam.ac.uk 7e9596058b This patch:
* adds a get_ssid ACM command that allows privileged domains to retrieve 
types for either a given ssid reference or a given domain id (of a running 
domain); this command can be used to extend access control into device 
domains, e.g., to control network traffic currently moving through Domain 
0 uncontrolled by the ACM policy

* adds a script getlabel.sh that allows users inside Dom0 to retrieve the 
label for a given ssid reference or a given domain id (multiple labels 
might map onto a single ssid reference)

* cleans up label-related code in tools/security by merging common 
functions into labelfuncs.sh

* cleans up ACM code related to above changes (eventually approximating a 
common coding style)

Signed-off-by Reiner Sailer <sailer@us.ibm.com> 
Signed-off by Stefan Berger <stefanb@us.ibm.com>
2005-09-02 07:59:12 +00:00
kaf24@firebug.cl.cam.ac.uk c544d29d6f Make the check script log to /tmp instead of the working directory. This
allows us to install from a read-only file system (such as a cdrom).

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-09-02 07:55:45 +00:00
kaf24@firebug.cl.cam.ac.uk 854aa64ec6 I've found cramfs to be very useful for simplifying Xen testing with QEMU.
Also, I imagine cramfs is used frequently for initrds so it's probably a good
idea to support it out of the box.

Signed-off-by:  Anthony Liguori <aliguori@us.ibm.com>
2005-09-02 07:55:22 +00:00
kaf24@firebug.cl.cam.ac.uk 607314f725 The attached patch makes xend clear the reboot request from the store
when rebooting a domain.  This prevents the lingering request from
being re-fulfilled, such as when executing a subsequent sysrq request.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-09-02 07:53:46 +00:00
shand@ubuntu.eng.hq.xensource.com b6e27d0a1e Fix save/restore when using grant tables in network, robust-ify netback
against bogus front-end drivers, plus various small cleanups. Note that 
there is now only /one/ config option controlling the use of grant tables
with networking (not separate ones for rx and tx). 

An outstanding issue is that console reconnect after a restore causes badness.

Signed-off-by: Steven Hand <steven@xensource.com>
2005-09-01 20:19:34 -08:00
shand@ubuntu.eng.hq.xensource.com 16d2266431 Fix build dependency for the XEN tpm driver.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-09-01 11:09:16 -08:00
kaf24@firebug.cl.cam.ac.uk aa24d38a46 Better Xen backtraces in debug builds (follow the
stack frame pointer).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-01 15:31:12 +00:00
cl349@firebug.cl.cam.ac.uk fdda579ede Fix network setup through hotplug on SUSE.
Move the hotplug script from /etc/hotplug.d/xen-backend/backend.hotplug
to /etc/hotplug/xen-backend.agent, which seems to be a more common place
for the script.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : tools/examples/backend.hotplug => tools/examples/xen-backend.agent
2005-09-01 10:45:50 +00:00
cl349@firebug.cl.cam.ac.uk c72528e6be Hook up sysrq for xencons.
Having sysrq is regularly handy.  Following in the tradition set by the
various consoles for virtual ppc stuff, the sysrq key is ^O.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-01 10:38:57 +00:00
cl349@firebug.cl.cam.ac.uk 8f9701718f Fix closing of /var/log/xend.log fd
Fix the problem where /var/log/xend.log was getting closed and then
/var/log/xend-debug was getting all the spam about the fd being closed
in the logging stuff.

Basically what was happening is that the main thread wasn't sticking
around and during its exit, the atexit handlers of the python logging
stuff got called closing the log fd.

Patch makes it so that we instead wait on the real server threads to
exit before shutting things down.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-01 10:26:17 +00:00
cl349@firebug.cl.cam.ac.uk 710130e99d remove random file
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-01 10:16:40 +00:00