xen.git
18 years ago[XEN] Emulate MUL/DIV. Tweak test suite build.
kaf24@localhost.localdomain [Sun, 14 Jan 2007 12:03:31 +0000 (12:03 +0000)]
[XEN] Emulate MUL/DIV. Tweak test suite build.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[TESTS] Fix native jump to 1MB absolute address in emulator test.
kaf24@localhost.localdomain [Sat, 13 Jan 2007 21:36:31 +0000 (21:36 +0000)]
[TESTS] Fix native jump to 1MB absolute address in emulator test.
Fix typo in emulator comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Clean up long division code, fix for C99-mandated
kaf24@localhost.localdomain [Sat, 13 Jan 2007 20:55:39 +0000 (20:55 +0000)]
[XEN] Clean up long division code, fix for C99-mandated
truncation-towards-zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] 'd' key dumps both host and guest state.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 17:39:26 +0000 (17:39 +0000)]
[XEN] 'd' key dumps both host and guest state.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoExtend emulator testing.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 17:16:45 +0000 (17:16 +0000)]
Extend emulator testing.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[PATCH] kexec/kdump: allow zero start for crashkernel
Ian Campbell [Fri, 12 Jan 2007 16:03:33 +0000 (16:03 +0000)]
[PATCH] kexec/kdump: allow zero start for crashkernel

Some architectures, notably ia64, can automatically place
the crash kernel into an appropriate place if the start
address for crashkernel is specified as zero or omitted.

E.g. crashkernel=256M or crashkernel=256M@0

While xen does not actually have support for ia64 kexec,
I am working on it. And in any case this change should be harmless.
Just a small bit of infastructure that will make things easier in the
future.

This should also be possible on x86, now relocatable kernels
are reloacatble on x86. So once xen moves up to using linux ~2.6.19
it would make sense to look into implementing this.

The patch does 3 things.

* Firstly, parse_crashkernel() is modified to allows the size and start elements of kexec_crash_area
  to be set to any value, including zero. Previously if either size or
  start were specified as zero, they would both end up as zero.

* Secondly, when kexec_get() is called, if either the size or start
  elements of kexec_crash_area are zero, then zero is passed
  back to the hypercall caller for both values.

  This gives the same behaviour as having parse_crashkernel() set
  size and start to zero if either of them are zero, but it allows
  architecture sepcific code called between the invocation of
  parse_crashkernel() and kexec_get() to modify start (and size if
  there was a reason). In particular, this allows the
  architecture specific code to find a good start point if 0 is
  specified.

* Lastly, it ads an additional check to the x86 setup code.
  As this code currently does not know how to deal with a
  0 start address, it doesn't reserve memory if start is 0.

  This is neccessary as previously if start was specified as zero,
  parse_crashkernel() would set size to zero, but that is
  no longer the case, so a stronger check is needed.

I would really appreciate it if this patch was merged,
as I don't believe it harms anything, and it does allow
a nice path for moving forwards.

Signed-off-by: Simon Horman <horms@verge.net.au>
18 years agolinux: Add trivial forwarding of dma_{,un}map_page when not using highmem
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:35:52 +0000 (15:35 +0000)]
linux: Add trivial forwarding of dma_{,un}map_page when not using highmem

Use non-trivial dma_{un,}map_page only when CONFIG_HIGHMEM, allowing
to not compile swiotlb_{un,}map_page in that case, which in neither
case need exporting.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agolinux: Reduce restrictions on address width for DMA operations
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:34:30 +0000 (15:34 +0000)]
linux: Reduce restrictions on address width for DMA operations

Use address width needed by device rather than dma_bits in
dma_alloc_coherent().
Probe supported address width in swiotlb initialization.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[MINIOS] Update __XEN_INTERFACE_VERSION__
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:27:09 +0000 (15:27 +0000)]
[MINIOS] Update __XEN_INTERFACE_VERSION__
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LINUX] ipv6: Disable addrconf on Xen bridge device
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:23:07 +0000 (15:23 +0000)]
[LINUX] ipv6: Disable addrconf on Xen bridge device

The ipv6-no-autoconf patch didn't disable IPv6 addrconf completely.
This means that the Xen bridge device still interfered with normal
IPv6 operation by engaging the IPv6 network with a bogus MAC address.

For details please refer to
        https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=200360

The following patch completely disables IPv6 on the Xen bridge device
by temporarily setting the MTU to a value less than the minimum
allowed for IPv6.

Upstream will provide a cleaner way to disable IPv6 addrconf in
future, possibly in the form of a proc sysctl.  Of course if the Xen
loopback device is removed it would render this change unnecessary.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years agomerge
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:19:23 +0000 (15:19 +0000)]
merge

18 years ago[MINIOS] Implement a network frontend driver.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:18:24 +0000 (15:18 +0000)]
[MINIOS] Implement a network frontend driver.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years ago[MINIOS] Fix grant-entry freelist maintenance.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:16:05 +0000 (15:16 +0000)]
[MINIOS] Fix grant-entry freelist maintenance.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years ago[MINIOS] Support xenbus watches.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:15:25 +0000 (15:15 +0000)]
[MINIOS] Support xenbus watches.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years agoMake get-fields.sh really get run by bash rather than default /bin/sh.
Alastair Tse [Fri, 12 Jan 2007 14:53:13 +0000 (14:53 +0000)]
Make get-fields.sh really get run by bash rather than default /bin/sh.

Also fix some bashisms in the script.

Signed-off-by: Alastair Tse <atse@xensource.com>
18 years agoFix xencomm_copy_{from, to}_guest.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:51:27 +0000 (14:51 +0000)]
Fix xencomm_copy_{from, to}_guest.
It should not call paddr_to_maddr() with invalid address.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years ago[IA64]: noreturn cannot be used if function may return
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:50:01 +0000 (14:50 +0000)]
[IA64]: noreturn cannot be used if function may return

The functions die_if_kernel and vmx_die_if_kernel can certainly
return.  This disqualifies them from using the noreturn keyword
which is reserved for functions that never return.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years agox86/PAE linux: don't restrict upper half of page table entries to 3 bits
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:48:06 +0000 (14:48 +0000)]
x86/PAE linux: don't restrict upper half of page table entries to 3 bits
when dumping the page table contents during an oops.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoFix trivial bug in xentop main loop.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:46:21 +0000 (14:46 +0000)]
Fix trivial bug in xentop main loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdd vfb config examples.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:43:50 +0000 (14:43 +0000)]
Add vfb config examples.
From: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoParse Solaris VTOCs in pygrub.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:42:07 +0000 (14:42 +0000)]
Parse Solaris VTOCs in pygrub.

Signed-off-by: John Levon <john.levon@sun.com>
18 years ago[PV-on-HVM] Allow platform interrupt to be used for entropy.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:40:13 +0000 (14:40 +0000)]
[PV-on-HVM] Allow platform interrupt to be used for entropy.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agox86: properly handle LOCK prefix in privileged PV opcode emulation
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:38:30 +0000 (14:38 +0000)]
x86: properly handle LOCK prefix in privileged PV opcode emulation

- include LOCK prefix presence in calculation of which CR/DR is being
  targeted by moves to/from these registers
- fail any other opcodes when beingused with lock prefix

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoFix xc_ptrace() for PAE.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:33:36 +0000 (14:33 +0000)]
Fix xc_ptrace() for PAE.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoFix udev check.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:32:41 +0000 (14:32 +0000)]
Fix udev check.

Quiesce 'which' invocation, and allow expanding variables in error
message.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[XEN] Fix guest-access macros.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:22:28 +0000 (14:22 +0000)]
[XEN] Fix guest-access macros.
From: Christoph Egger <Christoph.Egger@amd.com>

18 years ago[XEN] Default to 80x50 VGA text console.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:48:46 +0000 (10:48 +0000)]
[XEN] Default to 80x50 VGA text console.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LINUX] swiotlb: eliminate KM_SWIOTLB and thus the need for a Xen-specific kmap_types.h.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:31:16 +0000 (10:31 +0000)]
[LINUX] swiotlb: eliminate KM_SWIOTLB and thus the need for a Xen-specific kmap_types.h.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agolinux/i386: allow CONFIG_HIGHPTE on i386
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:28:54 +0000 (10:28 +0000)]
linux/i386: allow CONFIG_HIGHPTE on i386

While, as discussed, the performance impact of this option is
certainly higher than on native Linux, the option should not be
entirely disallowed if people want to sacrifice performance for less
lowmem pressure.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[LINUX] x86/64: Sync pagetable management with i386 Xen code.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:22:36 +0000 (10:22 +0000)]
[LINUX] x86/64: Sync pagetable management with i386 Xen code.

PUDs,PMDs,PTEs are all marked as ForeignPage so that they can be
grabbed from tlb_remove_page() at the appropriate time and freed in a
special way.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[XEN] Consistent assumption that PTEs contain MFNs in both ptwr
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:13:25 +0000 (10:13 +0000)]
[XEN] Consistent assumption that PTEs contain MFNs in both ptwr
page-fault handler and ptwr emulation handler.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Replace mfn_to_page(lXe_get_pfn()) by lXe_get_page().
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:10:28 +0000 (10:10 +0000)]
[XEN] Replace mfn_to_page(lXe_get_pfn()) by lXe_get_page().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[HVM] Fix timer interrupt delivery on x64 Vista.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:08:38 +0000 (10:08 +0000)]
[HVM] Fix timer interrupt delivery on x64 Vista.

x64 SMP Vista HVM guest uses HPET as the main system timer, and it
uses physical destination mode with broadcast to deliver the interrupts
generated by HPET. In current code, timer interrupts are injected only
to VCPU0 in vioapic.c, but this doesn't satisfy x64 SMP Vista -- when
it boots, it complains "a clock interrupt was not received on a
secondary processor within the allocated time interval" with Bug Check
0x101.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
18 years ago[XEN] Add LOOP{,Z,NZ} and CBW/CWD/... emulation.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 19:01:28 +0000 (19:01 +0000)]
[XEN] Add LOOP{,Z,NZ} and CBW/CWD/... emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoThis patch does the following:
Ewan Mellor [Thu, 11 Jan 2007 19:00:35 +0000 (19:00 +0000)]
This patch does the following:

- renames the XenManagedDomain.py file to XenAPIDomain.py, since this
name better reflects its functionality/purpose
- adds domain tracking to the XenAPIDomain class so that xend-managed
domains can be deleted in an 'atexit' handler upon test case termination
- adds one basic xapi-related test which is part of the grouptests
'xapi'
- refactors the vtpm-related test using xen-api and adds it to the
grouptest 'xapi'
- adds documentation to the README for how to configure xm and xend to
use XML-RPC or Xen-API for communication

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoI added a parameter '-md' to 'runtest.sh' for running the xm test suite
Ewan Mellor [Thu, 11 Jan 2007 18:56:59 +0000 (18:56 +0000)]
I added a parameter '-md' to 'runtest.sh' for running the xm test suite
in a mode where all created domains a created as xend-managed domains.

This patch also fixes a problem related to calling 'xm domid' on a
currently suspended domain if that domain is a managed domain. In that
case a 'None' is returned by Xend, which I default to '-1'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoSource a file called 'vtpm-impl.alt' if it exists.
Ewan Mellor [Thu, 11 Jan 2007 18:55:18 +0000 (18:55 +0000)]
Source a file called 'vtpm-impl.alt' if it exists.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoThis fixes the xen-api documentation latex-compilation.
Ewan Mellor [Thu, 11 Jan 2007 18:54:09 +0000 (18:54 +0000)]
This fixes the xen-api documentation latex-compilation.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years ago[XEN] Fix/implement JMP/CALL/RET emulation.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 17:47:13 +0000 (17:47 +0000)]
[XEN] Fix/implement JMP/CALL/RET emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEND] Device update should handle SXP without 'device' as first
Alastair Tse [Thu, 11 Jan 2007 17:03:11 +0000 (17:03 +0000)]
[XEND] Device update should handle SXP without 'device' as first
param.

Signed-off-by: Alastair Tse <atse@xensource.com>
18 years ago[XEND] Fix broken block-configure.
Alastair Tse [Thu, 11 Jan 2007 16:36:46 +0000 (16:36 +0000)]
[XEND] Fix broken block-configure.

Signed-off-by: Alastair Tse <atse@xensource.com>
18 years ago[XEN] Use local var instead of current->domain in two places.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 15:50:28 +0000 (15:50 +0000)]
[XEN] Use local var instead of current->domain in two places.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[HVM][VMX] Some simplifications, particularly to vmx_load/save_cpu_regs.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 15:43:38 +0000 (15:43 +0000)]
[HVM][VMX] Some simplifications, particularly to vmx_load/save_cpu_regs.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] More emulator fixes and emulate BSWAP.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 11:41:44 +0000 (11:41 +0000)]
[XEN] More emulator fixes and emulate BSWAP.
Better handling of LOCK prefix.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Update comments in elfnote.h interface header.
Ian Campbell [Thu, 11 Jan 2007 10:36:41 +0000 (10:36 +0000)]
[XEN] Update comments in elfnote.h interface header.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoUse strstr() to look for "bimodal" string in ELF notes, to allow guests to use
john.levon@sun.com [Mon, 8 Jan 2007 20:54:41 +0000 (12:54 -0800)]
Use strstr() to look for "bimodal" string in ELF notes, to allow guests to use
"yes,bimodal", so they are correctly identified as PAE on older hypervisors.

Signed-off-by: John Levon <john.levon@sun.com>
18 years ago[XEN] More emulator fixes:
kfraser@localhost.localdomain [Thu, 11 Jan 2007 10:10:16 +0000 (10:10 +0000)]
[XEN] More emulator fixes:
 1. Emulate LAHF/SAHF instructions
 2. #GP if instruction is longer than 15 bytes
 3. Accept any number of prefix bytes (up to
    15-byte total instruction length)
 4. Repeated addr/data-size overrides are sticky
    rather than toggling.

2,3,4 are based on a patch from Jan Beulich.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[HVM] Allow a dom to have nonsense m2p entries when building the p2m
Tim Deegan [Thu, 11 Jan 2007 10:08:14 +0000 (10:08 +0000)]
[HVM] Allow a dom to have nonsense m2p entries when building the p2m
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[BLKTAP/BLKBACK] name blktap/blkback kernel threads as "domid.virtual_devname"
Jake Wires [Wed, 10 Jan 2007 02:56:44 +0000 (18:56 -0800)]
[BLKTAP/BLKBACK] name blktap/blkback kernel threads as "domid.virtual_devname"

Signed-off-by: Jake Wires <jwires@xensource.com>
18 years ago[XEN] Partial fix for compat build non-portability.
Emmanuel Ackaouy [Wed, 10 Jan 2007 17:56:54 +0000 (17:56 +0000)]
[XEN] Partial fix for compat build non-portability.

Signed-off-by: John Levon <john.levon@sun.com>
18 years ago[XEN] 32on64: need to take multicall context into consideration
Emmanuel Ackaouy [Wed, 10 Jan 2007 17:26:58 +0000 (17:26 +0000)]
[XEN] 32on64: need to take multicall context into consideration
when determining the continuation arguments for mmuext ops.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[HVM][VMX] Fix problem taking an NMI on entry/exit
kfraser@localhost.localdomain [Wed, 10 Jan 2007 16:17:35 +0000 (16:17 +0000)]
[HVM][VMX] Fix problem taking an NMI on entry/exit
to/from VMX mode. Also cleans up code a bit.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[HVM] Allow PV-on-HVM callback irq to be identified by PCI device.
kfraser@localhost.localdomain [Wed, 10 Jan 2007 15:05:00 +0000 (15:05 +0000)]
[HVM] Allow PV-on-HVM callback irq to be identified by PCI device.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[HVM] Remove unneeded vcpu_kick() from HPET device model.
kfraser@localhost.localdomain [Wed, 10 Jan 2007 14:14:30 +0000 (14:14 +0000)]
[HVM] Remove unneeded vcpu_kick() from HPET device model.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Remove bogus BUG_ON() which breaks the build with gcc 4.2.0.
kfraser@localhost.localdomain [Wed, 10 Jan 2007 11:09:21 +0000 (11:09 +0000)]
[XEN] Remove bogus BUG_ON() which breaks the build with gcc 4.2.0.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[PATCH] kexec/kdump: remove unnecessary incusion of asm/fixmap.h
Ian Campbell [Wed, 10 Jan 2007 09:39:24 +0000 (09:39 +0000)]
[PATCH] kexec/kdump: remove unnecessary incusion of asm/fixmap.h

I think this a legacy of an older revision of this code,
but asm/fixmap.h does not seem to be needed in
asm-x86/x86_32/kexec.h or asm-x86/x86_64/kexec.h

That is, neither of these incarntations of kexec.h seem
to do anything related to fixmap directly or indirectly.

Signed-off-by: Simon Horman <horms@verge.net.au>
18 years ago[LINUX] Clarify comment in xen_machine_kexec_setup_resources().
Ian Campbell [Wed, 10 Jan 2007 09:39:24 +0000 (09:39 +0000)]
[LINUX] Clarify comment in xen_machine_kexec_setup_resources().

Noticed by Horms.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[HVM] Ignore evtchn_upcall_mask and initialise to zero.
kfraser@localhost.localdomain [Tue, 9 Jan 2007 17:43:13 +0000 (17:43 +0000)]
[HVM] Ignore evtchn_upcall_mask and initialise to zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoUpdate sched-credit test to match new format from xm sched-credit.
Ewan Mellor [Tue, 9 Jan 2007 17:38:48 +0000 (17:38 +0000)]
Update sched-credit test to match new format from xm sched-credit.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoThis simple patch allows domains created in the xm-test suite to be
Ewan Mellor [Tue, 9 Jan 2007 17:25:28 +0000 (17:25 +0000)]
This simple patch allows domains created in the xm-test suite to be
created as managed domains using either a parameter to the
XenTestDomain() constructor or by setting the environment variable
XM_MANAGED_DOMAINS and running the tests with it.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoAdd needed modules to the ramdisk if the modules exist on the current system.
Ewan Mellor [Tue, 9 Jan 2007 17:23:22 +0000 (17:23 +0000)]
Add needed modules to the ramdisk if the modules exist on the current system.
(i.e. the current system contains a modularized kernel)

Signed-off-by: Lynn Bendixsen <lbendixs@novell.com>
18 years agomerge
Ian Campbell [Tue, 9 Jan 2007 17:17:05 +0000 (17:17 +0000)]
merge

18 years ago[XEN] Kexec: Make some variables static.
Ian Campbell [Tue, 9 Jan 2007 17:15:29 +0000 (17:15 +0000)]
[XEN] Kexec: Make some variables static.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[XEN] Kexec: Clean up ELF note construction to avoid multiply nested
Ian Campbell [Tue, 9 Jan 2007 17:15:28 +0000 (17:15 +0000)]
[XEN] Kexec: Clean up ELF note construction to avoid multiply nested
struct/unions and the packed keyword.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[LINUX] Kexec: Don't try to load an NULL image. This can occur when unloading.
Ian Campbell [Tue, 9 Jan 2007 17:14:28 +0000 (17:14 +0000)]
[LINUX] Kexec: Don't try to load an NULL image. This can occur when unloading.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[TEST] Fix x86_emulate tests on x86/64 host.
kfraser@localhost.localdomain [Tue, 9 Jan 2007 17:11:46 +0000 (17:11 +0000)]
[TEST] Fix x86_emulate tests on x86/64 host.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Emulate DAA/DAS the hard way. We cannot execute the instruction
kfraser@localhost.localdomain [Tue, 9 Jan 2007 16:59:52 +0000 (16:59 +0000)]
[XEN] Emulate DAA/DAS the hard way. We cannot execute the instruction
directly within the emulator as it is unavailable if the emulator runs
in x86/64 mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[HVM] Remove unnecessary write barriers
Tim Deegan [Tue, 9 Jan 2007 16:49:16 +0000 (16:49 +0000)]
[HVM] Remove unnecessary write barriers
Using a volatile pointer saves us from the compier reordering these
writes, and the processor won't let them appear out of order.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoWhen booting via xm, only run the bootloader if it's in non-interactive mode:
Tim Deegan [Tue, 9 Jan 2007 13:24:45 +0000 (13:24 +0000)]
When booting via xm, only run the bootloader if it's in non-interactive mode:
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoFix xm create direct call to XendBootloader
Tim Deegan [Tue, 9 Jan 2007 13:24:44 +0000 (13:24 +0000)]
Fix xm create direct call to XendBootloader

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoFix bootloader = "pygrub" via 'xm create'.
Tim Deegan [Tue, 9 Jan 2007 13:24:43 +0000 (13:24 +0000)]
Fix bootloader = "pygrub" via 'xm create'.

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoFix auto-bootloading via 'xm create'.
Tim Deegan [Tue, 9 Jan 2007 13:24:42 +0000 (13:24 +0000)]
Fix auto-bootloading via 'xm create'.

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoSniff for Solaris if not specified. This allows Solaris domU's to automatically
Tim Deegan [Tue, 9 Jan 2007 13:24:41 +0000 (13:24 +0000)]
Sniff for Solaris if not specified. This allows Solaris domU's to automatically
boot correctly without fiddling with domain configs.

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoPass in kernel/ramdisk settings to pygrub; if specified, don't try to use
Tim Deegan [Tue, 9 Jan 2007 13:24:40 +0000 (13:24 +0000)]
Pass in kernel/ramdisk settings to pygrub; if specified, don't try to use
grub.conf; this allows hands-off bootloading in the absence of a grub.conf.
It's also useful for specifying temporary changes etc.

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoFix for pygrub path on Solaris.
Tim Deegan [Tue, 9 Jan 2007 13:24:40 +0000 (13:24 +0000)]
Fix for pygrub path on Solaris.

Signed-off-by: John Levon <john.levon@sun.com>
18 years ago[XEN] Fill in some more opcode space in the emulator.
kfraser@localhost.localdomain [Tue, 9 Jan 2007 12:04:41 +0000 (12:04 +0000)]
[XEN] Fill in some more opcode space in the emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoDo not call refreshShutdown in XendDomain for VM-list operations, as this
Ewan Mellor [Tue, 9 Jan 2007 11:52:15 +0000 (11:52 +0000)]
Do not call refreshShutdown in XendDomain for VM-list operations, as this
is unnecessary and expensive.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years ago[HVM] Fix shadow memory tracking
Tim Deegan [Tue, 9 Jan 2007 10:50:46 +0000 (10:50 +0000)]
[HVM] Fix shadow memory tracking
Fixes a missing free from cset 13275, and a missing prealloc.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[XEN] Tweak x86 emulator interface.
kfraser@localhost.localdomain [Mon, 8 Jan 2007 18:39:29 +0000 (18:39 +0000)]
[XEN] Tweak x86 emulator interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[linux build] Append $XENGUEST to kernel version.
Christian Limpach [Mon, 8 Jan 2007 17:38:47 +0000 (17:38 +0000)]
[linux build] Append $XENGUEST to kernel version.
This was lost in changeset 13286:c89384734c19.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[XEN] Fix MAP target.
Ian Campbell [Mon, 8 Jan 2007 16:27:35 +0000 (16:27 +0000)]
[XEN] Fix MAP target.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[XEN] Emulate relative near/short jumps, including Jcc.
kfraser@localhost.localdomain [Mon, 8 Jan 2007 15:52:53 +0000 (15:52 +0000)]
[XEN] Emulate relative near/short jumps, including Jcc.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agomerge
kfraser@localhost.localdomain [Mon, 8 Jan 2007 14:26:57 +0000 (14:26 +0000)]
merge

18 years agoFix signedness issue in private implementation of memmem().
kfraser@localhost.localdomain [Mon, 8 Jan 2007 14:25:28 +0000 (14:25 +0000)]
Fix signedness issue in private implementation of memmem().
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years agoMerge
Tim Deegan [Mon, 8 Jan 2007 14:25:14 +0000 (14:25 +0000)]
Merge

18 years agoUpdate .hgignore
kfraser@localhost.localdomain [Mon, 8 Jan 2007 14:24:42 +0000 (14:24 +0000)]
Update .hgignore

18 years ago[HVM] Add expansion-ROM boot support again.
Tim Deegan [Mon, 8 Jan 2007 14:24:30 +0000 (14:24 +0000)]
[HVM] Add expansion-ROM boot support again.
Boot info now stored at 0x9ff00; registers saved in HDD load code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[linux build] Build Linux kernels with output files in a separate directory.
Christian Limpach [Mon, 8 Jan 2007 11:33:45 +0000 (11:33 +0000)]
[linux build] Build Linux kernels with output files in a separate directory.
Use a single source tree (linux-2.6-xen) and use Linux' O= option to
make the build put output files in a
build-linux-$(LINUX_VER)-$(EXTRAVERSION)_$(XEN_TARGET_ARCH) directory,
making it possible to build both x86_32 and x86_64 kernels in the same
tree.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[XEN] Emulate MOV imm->reg.
kaf24@localhost.localdomain [Sat, 6 Jan 2007 15:56:52 +0000 (15:56 +0000)]
[XEN] Emulate MOV imm->reg.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[PV-on-HVM] Add definition of irq_to_evtchn_port().
kfraser@localhost.localdomain [Sat, 6 Jan 2007 12:56:58 +0000 (12:56 +0000)]
[PV-on-HVM] Add definition of irq_to_evtchn_port().
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[TOOLS] Improve information displayed by the xm sched-credit command.
Emmanuel Ackaouy [Sat, 6 Jan 2007 11:17:52 +0000 (11:17 +0000)]
[TOOLS] Improve information displayed by the xm sched-credit command.

The improvement is as follows.
 1. The display form is changed like the xm sched-sedf command.
 2. When -d option is omitted, information on all domains is
    displayed.

Examples:
 # xm sched-credit -d vm1
 Name                              ID Weight Cap
 vm1                                1    512  100
 # xm sched-credit
 Name                              ID Weight Cap
 Domain-0                           0    256    0
 vm1                                1    512  100
 vm2                                2    512   50

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years ago[XEN] Skip over the unit in parse_size_and_unit() when returning the remainder
Ian Campbell [Fri, 5 Jan 2007 18:17:36 +0000 (18:17 +0000)]
[XEN] Skip over the unit in parse_size_and_unit() when returning the remainder
of the string.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[XEN] Fix new XCHG emulation.
kfraser@localhost.localdomain [Fri, 5 Jan 2007 18:01:20 +0000 (18:01 +0000)]
[XEN] Fix new XCHG emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agomerge
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:51:51 +0000 (17:51 +0000)]
merge

18 years agoInitial support for HVM compat guests
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:51:07 +0000 (17:51 +0000)]
Initial support for HVM compat guests

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
18 years agomerge
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:46:14 +0000 (17:46 +0000)]
merge

18 years ago[BALLOON] Ifdef some x86-specific balloon init code.
kfraser@localhost.localdomain [Fri, 5 Jan 2007 17:39:34 +0000 (17:39 +0000)]
[BALLOON] Ifdef some x86-specific balloon init code.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoSupport for save and restore of compatibility guests
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:43 +0000 (17:34 +0000)]
Support for save and restore of compatibility guests

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
18 years agoPreliminary, likely incomplete and/or wrong, adjustments to shadow code.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:41 +0000 (17:34 +0000)]
Preliminary, likely incomplete and/or wrong, adjustments to shadow code.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoEnable compatibility mode operation for kexec.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:41 +0000 (17:34 +0000)]
Enable compatibility mode operation for kexec.

Signed-off-by: Jan Beulich <jbeulich@novell.com>