Commit Graph
3694 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 55bfac8dfd [XEN] Fix the x86 emulator to safely fail when it turns out the
faulting memory access was to/from an implicit memory operand
(typically either an instruction fetch or stack access).
Rationalise use of macros for page fault error code flags.
This patch supercedes the fix in changeset 11242.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-23 18:38:08 +01:00
kfraser@localhost.localdomain db51cd09d3 Remove all traces of the obsolete BVT scheduler.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-23 17:14:38 +01:00
kfraser@localhost.localdomain ae95fdf65a [TOOLS] Remove the 'cpuperf' misc tool. Xenoprof is the
correct tool to use for hardware perfctr monitoring now.
Also remove unused xc_msr MSR accessor functions from libxenctrl.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-23 15:02:55 +01:00
Ian Campbell dfeb46aa49 [TOOLS] Add a simple tool to display the Xen specific ELF notes.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-08-23 14:43:48 +01:00
Ian Campbell 15d8f355a2 [TOOLS] Allow tools to load kernels which use an ELF notes segment.
Compatability with kernels using the __xen_guest section is retained.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-08-23 14:37:39 +01:00
kfraser@localhost.localdomain 07f2bdb30d [SHADOW] Clean up the DOM0_SHADOW_OP interface.
Also bump the dom0 interface version for tools (but
not for dom0 kernel!).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-22 18:50:01 +01:00
kfraser@localhost.localdomain 314ded7410 [x86_64] Guests no longer set _PAGE_USER on kernel mappings.
This may allow guest kernels to be run outside ring 3 in future, and
also provides scope for optimisations today (e.g., using global bit on
user mappings).

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-22 15:26:40 +01:00
Christian Limpach 6631e301e8 [hvm] Export gpfn of store page to guest - not mfn.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-22 15:13:07 +01:00
Anil Madhavapeddy 973bbebcc3 Make add_to_bridge() always leave the device up even when it bails out due to the device already being present on the bridge.
This makes the script more idempotent if run twice (e.g. from hotplug and udev), since the second time the device will be taken down and not brought up again, leaving the host without networking.

Signed-off-by: Anil Madhavapeddy <anil@xensource.com>
2006-08-22 14:59:16 +01:00
George Dunlap 9caa57d3c6 Added option to xentrace to set the trace buffer size.
Signed-off-by: George Dunlap <gdunlap@xensource.com>
2006-08-21 12:05:11 -04:00
Christian Limpach d9e6579356 [xend] Add 'xend_config_format' field to the Xend information block.
When running 'xm info' it appears thus:

 # xm info
 host                   : 10.13.4.252
 release                : 2.6.17-1.2157_FC5xen0
 version                : #1 SMP Tue Jul 11 23:30:05 EDT 2006
 machine                : x86_64
 ...snipped rest of data...
 cc_compile_domain      : build.redhat.com
 cc_compile_date        : Tue Jul 11 22:50:42 EDT 2006
 xend_config_format     : 2

It will also appear in the SEXPR returned when doing a GET on the
/xend/node path in XenD's HTTP service:

 (node
   (system Linux)
   (host 10.13.4.252)
   (release 2.6.17-1.2157_FC5xen0)
   (version '#1 SMP Tue Jul 11 23:30:05 EDT 2006')
   (machine x86_64)
   ...snipped rest of data...
   (cc_compile_domain build.redhat.com)
   (cc_compile_date 'Tue Jul 11 22:50:42 EDT 2006')
   (xend_config_format 2)
 )

The patch sets the format to value '2' to indicate that we're on the version
with the new style HVM configuration for CDROM devices. The old style having
implicitly been version '1'.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-08-21 00:11:17 +01:00
Christian Limpach ea4987ba04 [qemu patches] Update patches for changeset 11209:9bb6c1c1890a.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-21 00:01:11 +01:00
Christian Limpach 113654b9fe [qemu] hdparm tunable IDE write cache for HVM
qemu 0.8.2 has a flush callback to the storage backends, so now it is
possible to implement hdparm tunable IDE write cache enable/disable for
guest domains, allowing people to pick speed or data consistency on a
case by case basis.

As an added benefit, really large LBA48 IOs will now no longer be broken
up into smaller IOs on the host side.

From: Rik van Riel <riel@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-20 23:59:34 +01:00
Christian Limpach a9d5932706 [qemu patches] Update patches for changeset 11206:fc3e7e65b953.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-20 23:52:39 +01:00
Christian Limpach 2ed7175b63 [qemu patches] Update patches for changeset 11206:fc3e7e65b953.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-20 23:34:17 +01:00
Christian Limpach 03a84fa9bd [qemu] Allow booting from more than one device.
The rombios supports trying to boot from more than one device and then
falling back.  Set 'boot=dc' in your config file to try booting first
from the CD and then the hard drive.

Based on a patch from: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-20 23:33:28 +01:00
kaf24@localhost.localdomain cd93eaf1c7 [HVM] Fix SMBIOS entry point copy destination.
Spotted by Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-19 12:06:36 +01:00
kfraser@localhost.localdomain c724d70275 [HVM] Fix the APM BIOS to ensure that interrupts are enabled when it
executes an idling HLT. This allow us to re-enable the 'shutdown on
HLT-with-interrupts-disabled' heuristic.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-18 16:20:45 +01:00
Christian Limpach 11ef9f5995 [qemu patches] Update patches for changeset 11186:078bfd250677.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-17 20:31:47 +01:00
Christian Limpach aad7f0d072 [qemu] Support HVM guests with more than 3.75G memory.
Changes are:
1) M2P table and e820 table are changed to skip address space from
HVM_RAM_LIMIT_BELOW_4G to 4G.
2) shared io page location, when less than HVM_RAM_LIMIT_BELOW_4G
memory, it's the last page of RAM as today, or it's the last page of
HVM_RAM_LIMIT_BELOW_4G RAM.
3) in qemu-dm address space from HVM_RAM_LIMIT_BELOW_4G to 4G are
stuffed with mfns starting from 4G, so the 1:1 mapping can still works.
This is ugly, but another limit check patch as changeset 10757 will
prevent qemu-dm to access this range.  This ugly stuffing will be
removed when the patch to remove 1:1 mapping from qemu-dm gets accepted
in the future.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-17 20:31:13 +01:00
chris@kneesaa.uk.xensource.com 2da5c5c78b [qemu patches] Update patches for changeset 11161:5c1021595e3c.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-17 12:01:44 +01:00
chris@kneesaa.uk.xensource.com 30841bdf6d [qemu] Add the xen platform device to the qemu PCI bus.
Useful functionality will come later.

Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-17 12:01:23 +01:00
chris@kneesaa.uk.xensource.com fb7807c1ec [qemu patches] Update patches for changeset 11158:a774cbd38187.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-17 11:34:39 +01:00
chris@kneesaa.uk.xensource.com d2ab912dfe [qemu] Default monitor/serial ports to /dev/null if -nographic.
qemu-dm runs daemonized and the default for -nographic is to redirect
the monitor and serial ports to stdio which causes qemu-dm to busy
read from stdin.  Change the default for -nographic to redirect the
monitor and serial ports to /dev/null.

Based on a patch from: Steven Smith <sos22-xen@srcf.ucam.org>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-17 11:34:13 +01:00
tdeegan@york.uk.xensource.com 49f7c7364e Replace shadow pagetable code with shadow2. 2006-08-16 17:02:35 +01:00
emellor@leeni.uk.xensource.com 2d14977023 Fix log rotation which was inadvertently broken by changeset 11129:939f75570a15.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-16 16:06:32 +01:00
kfraser@localhost.localdomain 0512d8f50a Rename two xentrace tools to make it obvious that setmask and setsize are xen related.
Based on a patch from Rob Gardner <rob.gardner@hp.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-16 13:53:10 +01:00
emellor@leeni.uk.xensource.com 99c694310f Implement xm block-configure for CD-ROMs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-16 12:59:30 +01:00
kfraser@localhost.localdomain 75205296f9 This is a small patch that makes a cross compiler successfully compile
the sources under the tools directory.  This patch became necessary
after qemu-dm is updated to a newer version.

Signed-off-by: Hiroya INAKOSHI <inakoshi.hiroya@jp.fujitsu.com>
2006-08-16 11:53:37 +01:00
kfraser@localhost.localdomain d0ed0b289c [XEND] xc_save/xc_restore open the libxc interface independently
of their parent. This is required now that the interface fd is
marked for close-on-exec.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-15 19:04:43 +01:00
kfraser@localhost.localdomain ef3277d97c Set close-on-exec flag on /var/log/xend.log logging file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-08-15 16:27:26 +01:00
kfraser@localhost.localdomain 265853a73b Set the close-on-exec flag on the RPC socket in tool stack.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-08-15 16:26:39 +01:00
kfraser@localhost.localdomain e70f7a84ee Set the close-on-exec flag on the xenstore fd in libxenstore.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-08-15 16:25:39 +01:00
kfraser@localhost.localdomain b073ccc00f [LIBXC] Set close-on-exec on the privcmd fd in libxc.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-08-15 16:25:04 +01:00
kfraser@localhost.localdomain 3f334a5fd7 merge 2006-08-15 15:51:47 +01:00
kfraser@localhost.localdomain 121ec85fcf Clean up console fields in start_info structure. Add compat code for
older kernels so they can use the old start_info API.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-15 15:50:36 +01:00
chris@kneesaa.uk.xensource.com 5d3e8d4471 [qemu patches] Update patches for changeset 11117:60eacb336e35.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-15 13:54:09 +01:00
chris@kneesaa.uk.xensource.com ec5d192958 [qemu/ia64] Sync ID cache only guest do DMA read.
Fix ID cache sync time. Only when guest does DMA
read, ID sync cache is needed for VTi.

From: Zhang, Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-15 13:53:18 +01:00
kfraser@localhost.localdomain 13451be1da [XEND] Apply the domain cpumask fully to every vcpu in the domain.
Apply the domain cpumask to each vcpu rather than mapping vcpus to
cpus in the list.  This is more inline with the comments for the
cpus parameter and also allows the credit scheduler to balance
vcpus within the domain cpumask.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-08-15 10:56:59 +01:00
kfraser@localhost.localdomain 46655653d3 Remove another external-to-libxc user of xc_dom0_op().
Signed-off-by: John Levon <john.levon@sun.com>
2006-08-15 10:47:26 +01:00
kfraser@localhost.localdomain 01c74dcb72 [VMX] Fix vmxassist for booting Vista.
This patch fixes 2 vmxassist bugs to boot Vista:
1) When switching from VM86_REAL_TO_PROTECTED to VM86_PROTECTED,
protected_mode() sets return eip to switch_to_protected_mode and
segments to vmxassist's. But in later set_mode(), it still consides
these segments are guest's (Bios at this time) and use its gdt table
to calculate address(), which results in segment limitation fault. 2) In
current vmxassist, when entering VM86_PROTECTED_TO_REAL, we need to
decode every instruction manually until we catch instructions like
jmpl to reset cs to really return to real mode. Vista boot manager uses
more instructions.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-08-15 10:45:05 +01:00
kfraser@localhost.localdomain 386f9501d5 [VMX] Fix VMX ap boot.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-08-15 10:43:43 +01:00
kfraser@localhost.localdomain cdd3927215 [HVM] Fix roms.h to depend on acpi data.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-08-14 17:57:37 +01:00
kfraser@localhost.localdomain 7af667dcc6 [VMXASSIST] Fix linker script to define start/end section labels
in the usual idiomatic way. This avoids some BSS symbols being
defined oustide of range _sbss/_ebss.

Issue raised by Xiaowei Yang from Intel.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-14 17:56:59 +01:00
kfraser@localhost.localdomain 8919329ca7 Pick up SMBIOS entry point in the ROMBIOS.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
2006-08-14 17:38:23 +01:00
kfraser@localhost.localdomain c683914ef9 Add code to generate SMBIOS tables to hvmloader.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
2006-08-14 17:37:07 +01:00
kfraser@localhost.localdomain 132a2337d6 Make room in e820map for SMBIOS tables.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
2006-08-14 17:29:11 +01:00
kfraser@localhost.localdomain 318ac791f9 Add utilities needed for SMBIOS generation to hvmloader.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
2006-08-14 17:28:25 +01:00
kfraser@localhost.localdomain fd714c8ac1 [HVMLOADER] Include xen.h for __HYPERVISOR* constants.
Signed-off-by: Andrew D. BAll <aball@us.ibm.com>
2006-08-14 16:41:20 +01:00
kfraser@localhost.localdomain b76fbc3cc5 [LIBXC] Remove unused xc_evtchn_status().
Signed-off-by: John Levon <john.levon@sun.com>
2006-08-14 16:39:35 +01:00