Commit Graph
10490 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 3d8026009b Add XENVER_pagesize hypercall.
Make xen pagesize available through xm info and sysfs.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-06-27 10:44:33 +01:00
kfraser@dhcp93.uk.xensource.com 4b56090e1d [XEN][EMUL] x86 emulator should support 32-bit offsets in real mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-27 10:36:51 +01:00
kaf24@firebug.cl.cam.ac.uk 710f23ac8c [HVM][VMX] On a VMEXIT, 'dirty' the DR. Restore DR from vcpu struct,
disable DR exiting (i.e., enable guest DR access), set VCPUF_dr_dirtied.

Remove "emulated" DR access, which only read and wrote to the debug register
values of the context, but not to the actual hardware values themselves.

Signed-off-by: George Dunlap <dunlapg@umich.edu>
2006-06-27 09:54:05 +01:00
kaf24@firebug.cl.cam.ac.uk bb8fad6de5 [HVM][VMX] Added flag_dr_dirty to hvm vcpu struct. If this flag is set,
save the debug registers, clear the flag, and remove guest access to
debug registers.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
Signed-off-by: Nitin Kamble <nitin.a.kamble@intel.com>
2006-06-27 09:51:18 +01:00
kaf24@firebug.cl.cam.ac.uk 18baf39b39 [HVM][VMX] Added dr restore if breakpoints are enabled in guest dr7.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
Signed-off-by: Nitin Kamble <nitin.a.kamble@intel.com>
2006-06-27 09:48:23 +01:00
kaf24@firebug.cl.cam.ac.uk bf0894ac7b [HVM][VMX] Safer treatment of VM_EXEC_CONTROL when dealing w/ PENDING_INTERRUPT vmexit.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
2006-06-27 09:41:09 +01:00
kaf24@firebug.cl.cam.ac.uk d2ea22a405 [HVM][VMX] Propagate debug exception to guest if no external debugger is enabled.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
2006-06-27 09:33:35 +01:00
emellor@leeni.uk.xensource.com 3cd179cf27 Some fine-tuning in the virtual TPM scripts for hotpluging. The changes
enable a virtual TPM to save its state between reboots of the virtual
TPM implementation.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
2006-06-24 23:44:18 +01:00
emellor@leeni.uk.xensource.com 936acab9fc Increases the retry limit to allow xend more time before issuing a balloon
error. This fixes bug #683.

Signed-off-by: Susan Krysan <krysans@unisys.com>
2006-06-24 23:39:05 +01:00
kaf24@firebug.cl.cam.ac.uk b9ad8f1e13 [TOOLS] Fix set_bit/clear bit for x86/64 in xc_linux_save
From: John Byrne <john.l.byrne@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-22 21:37:33 +01:00
kaf24@firebug.cl.cam.ac.uk 62b3de3d4a [XM-TEST] Remove second console attach in 03_memset_random_pos
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2006-06-22 21:30:51 +01:00
kaf24@firebug.cl.cam.ac.uk df3f613e31 [VMX] Fix use of VMCLEAR a little: no need if not active on any CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-22 15:25:18 +01:00
kaf24@firebug.cl.cam.ac.uk 66091ed16b [TOOLS] Make sure to explicitly close the connection if we're using HTTP/1.0. This
shouldn't be needed but it appears to be necessary as the Python client
just does a wfile.read() instead of only reading the reported Content-Length.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-06-22 15:10:48 +01:00
kaf24@firebug.cl.cam.ac.uk 74a08f001b [TOOLS] Treat '--' command-line split option correctly.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-06-22 15:09:48 +01:00
kaf24@firebug.cl.cam.ac.uk c772fee485 [TOOLS] Fix pagetable-pinning loop in xc_linux_restore.
Previously it would not pin last PFN in physmap even if it was
a pagetable page.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-22 14:12:01 +01:00
kaf24@firebug.cl.cam.ac.uk 42fae7ae02 [XEN] localtime support for paravirtualized guests
It is quite minimal
in its approach, satisfying the purposes of the paravirtualized
NetWare operating system as well as any others that expect the time
base to be provided in localtime.

Signed-off-by: Bruce Rogers <brogers@novell.com>
2006-06-21 17:09:14 +01:00
kaf24@firebug.cl.cam.ac.uk 060b6f6d38 [LINUX][TPM] Use min_t/min instead of the #define'd MIN.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-06-21 16:55:25 +01:00
kaf24@firebug.cl.cam.ac.uk 9fb9651ac5 [LINUX] Transparent virtualization fixes.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-06-21 16:54:09 +01:00
kaf24@firebug.cl.cam.ac.uk 0cbf97ac5c [IA64] stub to support dump_execution_state() on ia64
Also implement on_selected_cpus() for ia64.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-06-21 10:56:20 +01:00
kaf24@firebug.cl.cam.ac.uk 295173e3ca [XEN] Xen always relinquishes VGA console to domain0 when domain0
starts to boot (previous behaviour looked for console=tty0 on
dom0's command line). To prevent this 'console=vga[keep]' must
be specified.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-20 18:51:46 +01:00
kaf24@firebug.cl.cam.ac.uk e72c35d964 [XEN] Fix to previous changeset: continue to do softirq while delaying.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-20 18:28:41 +01:00
kaf24@firebug.cl.cam.ac.uk 0cd98ba464 [XEN] Add a warning banner when 'sync_console' is used. Make it
very obvious and mildly annoying.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-20 18:19:07 +01:00
kaf24@firebug.cl.cam.ac.uk da6d8860b0 [XEN] Fix PAE PDPT shadowing coherence.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-20 17:04:13 +01:00
kfraser@dhcp93.uk.xensource.com 19c8828f4b Add new XENMEM_machphys_mapping to get info about location and
sizeof of the mach2phys table default mapping. Use this in Linux to
dynamically adapt the mfn_to_pfn() routine to undelrying hypervisor.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-20 14:45:46 +01:00
kfraser@dhcp93.uk.xensource.com 0f296e1985 [LINUX] Another fix to i386 mfn_to_pfn().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-20 13:45:23 +01:00
kfraser@dhcp93.uk.xensource.com 2a2bc9fabb [LINUX] Fix i386 build -- define max_mapnr in mfn_to_pfn().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-20 13:42:08 +01:00
emellor@leeni.uk.xensource.com 522884b8be Move the SSHTransport class to its own file, so that we may disable SSH
transport when running on Python <2.4.  SSHTransport uses the new subprocess
class, and so it doesn't work on older versions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-06-20 13:32:21 +01:00
ack@localhost.localdomain 47966cbaaa Merge 2006-06-20 12:12:44 +01:00
ack@localhost.localdomain 906ea7220e Run credit scheduler tests by default
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-06-20 12:11:28 +01:00
kfraser@dhcp93.uk.xensource.com 5363eb610a Export machine_to_phys start and end addresses to guests.
Use this info in Linux to bounds-check accesses to the
m2p table.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-20 12:01:09 +01:00
shand@kneesaa.uk.xensource.com 5cbaa75a91 Make the credit scheduler the default - a number of bugs have been fixed
(thanks to all for testing!) and now seems ready for more widespread usage. 

Signed-off-by: Steven Hand <steven@xensource.com>
2006-06-20 11:04:58 +01:00
shand@kneesaa.uk.xensource.com e055d02fde Remove some spurious BUG_ON()'s from the credit scheduler.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-06-20 11:02:49 +01:00
anthony@rhesis.austin.ibm.com 22737f2517 Use an environmental variable (XM_SERVER) to determine XML-RPC URI.
This allows users to invoke xm against a remote server.  This is much more
useful though for exercising XML-RPC transports with xm-test though since
xm-test will continue to (mostly) function if the URI is localhost.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-06-20 10:25:22 +01:00
root@rhesis.austin.ibm.com 321c94c756 This patch adds client side support for XML-RPC over ssh. It differs from
the previous submission in that it now uses lazy evaluation to connect
to the remote server and provides more user friendly error messages if ssh
is not available.

Signed-off-by: Anthony Liguori
2006-06-20 10:25:21 +01:00
anthony@rhesis.austin.ibm.com bb62154f4b Add an xm serve command.
This command proxies the Xend XML-RPC over stdio.  This is similiar to
mercurial's hg serve --stdio command.

The most obvious use of this command is remote XML-RPC invocation over SSH.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-06-20 10:25:20 +01:00
anthony@rhesis.austin.ibm.com b908c58770 Add support to Xend XML-RPC server for HTTP/1.1 Keep-Alive.
This patch fixes a few bugs in the Python SimpleXMLRPC server and enables
HTTP/1.1 by default.  This allows a client to use Keep-Alive.  Keep-Alive
improves performance by eliminating the overhead of connection setup and,
more importantly, avoids credential caching when executing multiple
commands over a secure connection.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-06-20 10:25:18 +01:00
kaf24@firebug.cl.cam.ac.uk 18ff1c9e42 [XM-TEST] Improve detection of a guest having booted to prompt.
Lots of xm-test tests are failing with console timeouts on some machines
at the moment.  I reproduced the problem and found it was due to some
probing activity in the boot process of the -xen kernel.  The behaviour
of the current xm-test code is to assume that the boot process has
finished after performing three one-second waits for input---when the
probing activity introduces more than three one-second delays the test
suite breaks.

This patch changes the test suite to wait for the command prompt
before attempting to submit a command.  The timeout is increased from 3
seconds to 3 minutes but the wait exits early when the prompt is found
so the test suite doesn't take any longer to run.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
2006-06-19 17:43:04 +01:00
kfraser@dhcp93.uk.xensource.com 7af0cf8927 [XEN][PAE] Always enable non-debug version of l3tab_needs_shadow()
as there is some suspicion that it leads to crashes on PAE hosts.
Also: improve bracketing in the macros, for safety.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-19 17:26:54 +01:00
kaf24@firebug.cl.cam.ac.uk a4f314d743 [HVM][VMX][PAE] Enable PAE VMX guest on PAE host.
The PAE VMX guest supports NX bit and can do kernel build successfully.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-06-19 16:47:21 +01:00
kaf24@firebug.cl.cam.ac.uk 2be827a773 Add DOM0_DOMAIN_SETUP hypercall.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
[I fiddled with the flags prefix after all. :-)
 Signed-off-by: Keir Fraser <keir@xensource.com>]
2006-06-19 16:39:27 +01:00
kfraser@dhcp93.uk.xensource.com 69973f3753 [XEN][PAE] Stores to PTEs in PAE mode use CMPXCHG to ensure atomicity.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-19 14:44:34 +01:00
kfraser@dhcp93.uk.xensource.com d3adaa9127 [XEN][PAE] Handle non-page-aligned CR3 when walking
page tables.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-19 14:03:04 +01:00
kfraser@dhcp93.uk.xensource.com aba1f12c14 [XEN] New function dump_execution_state() displays
current register and stack state of local CPU.
Use this to extend the 'd' debug key to be more useful.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-19 13:06:10 +01:00
kfraser@dhcp93.uk.xensource.com 02e433d846 [XEN] Rename show_registers() to show_execution_state().
This makes more sense since it dumps stack as well as
registers. show_registers() still exists; it simply doesn't
dump the stack any more.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-19 11:44:25 +01:00
kfraser@dhcp93.uk.xensource.com 8a6db74322 [XEN] Improve double-fault tracing -- print backtrace
on stack overflow.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-19 11:21:40 +01:00
kfraser@dhcp93.uk.xensource.com 5445814f56 [XEN] Fix non-debug builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-19 11:10:10 +01:00
kfraser@dhcp93.uk.xensource.com 3be130f839 [XEN] Fix ptwr_do_page_fault() after new more permissive
entry conditions to that function. Now that we no longer
check PGERR_page_present (i.e., that fault is a protection
fault), because it's not safe to do so, we can enter
ptwr_do_page_fault() with a not-present L2 page directory.
We then crash on our first access to the linear_l2_table.
This patch fixes all unprotected accesses to the
linear_l2_table to correctly handle faults.

Also move setup of globally-visible ptwr info record to end
of ptwr_do_page_fault(). We don't want the info picked up
by reentrant invocations of the page-fault handler.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-19 10:18:39 +01:00
kaf24@firebug.cl.cam.ac.uk f01a089de1 [XEN] Remove code from writable-pagetable emulation path which
does not appear to be necessary. Replace with assertions for now,
pending total removal or me being proved wrong.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-18 19:49:31 +01:00
kaf24@firebug.cl.cam.ac.uk 7b3cc673ac [XEN] Multi-processor guests need to be more conservative when
doing batched writable-pagetable work.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-18 19:44:13 +01:00
kaf24@firebug.cl.cam.ac.uk fa89a5905e [XEN] Fix page-fault handler to not trust bit 0 of error code.
It can be cleared due to writable-pagetable logic. Various
other cleanups too. Spurious fault detection logic is
simplified.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-18 19:24:00 +01:00