Commit Graph
13359 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain effd10be68 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>
2007-01-12 14:51:27 +00:00
kfraser@localhost.localdomain e04e1175e8 [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>
2007-01-12 14:50:01 +00:00
kfraser@localhost.localdomain 043158a97f 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>
2007-01-12 14:48:06 +00:00
kfraser@localhost.localdomain f48232576f Fix trivial bug in xentop main loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 14:46:21 +00:00
kfraser@localhost.localdomain 8c8d60ad1a Add vfb config examples.
From: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 14:43:50 +00:00
kfraser@localhost.localdomain ce9e6668ac Parse Solaris VTOCs in pygrub.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-12 14:42:07 +00:00
kfraser@localhost.localdomain a84893ee09 [PV-on-HVM] Allow platform interrupt to be used for entropy.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 14:40:13 +00:00
kfraser@localhost.localdomain b7a3ba02bd 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>
2007-01-12 14:38:30 +00:00
kfraser@localhost.localdomain 481f5a7ac0 Fix xc_ptrace() for PAE.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-12 14:33:36 +00:00
kfraser@localhost.localdomain 54ca5bdead Fix udev check.
Quiesce 'which' invocation, and allow expanding variables in error
message.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-12 14:32:41 +00:00
kfraser@localhost.localdomain 51baeaf819 [XEN] Fix guest-access macros.
From: Christoph Egger <Christoph.Egger@amd.com>
2007-01-12 14:22:28 +00:00
kfraser@localhost.localdomain a5e0c983d0 [XEN] Default to 80x50 VGA text console.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 10:48:46 +00:00
kfraser@localhost.localdomain e8922851b5 [LINUX] swiotlb: eliminate KM_SWIOTLB and thus the need for a Xen-specific kmap_types.h.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-12 10:31:16 +00:00
kfraser@localhost.localdomain 9f7105d6ac 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>
2007-01-12 10:28:54 +00:00
kfraser@localhost.localdomain 8f529b5deb [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>
2007-01-12 10:22:36 +00:00
kfraser@localhost.localdomain 11ee9a5faa [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>
2007-01-12 10:13:25 +00:00
kfraser@localhost.localdomain 7a6a2373cf [XEN] Replace mfn_to_page(lXe_get_pfn()) by lXe_get_page().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-12 10:10:28 +00:00
kfraser@localhost.localdomain 4c8688811f [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>
2007-01-12 10:08:38 +00:00
kfraser@localhost.localdomain bfdf10eac5 [XEN] Add LOOP{,Z,NZ} and CBW/CWD/... emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-11 19:01:28 +00:00
Ewan Mellor baacea8058 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>
2007-01-11 19:00:35 +00:00
Ewan Mellor aeb7c09a66 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>
2007-01-11 18:56:59 +00:00
Ewan Mellor 2b1f4094a6 Source a file called 'vtpm-impl.alt' if it exists.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-11 18:55:18 +00:00
Ewan Mellor a8ca4c264c This fixes the xen-api documentation latex-compilation.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-11 18:54:09 +00:00
kfraser@localhost.localdomain 50dd6f58e0 [XEN] Fix/implement JMP/CALL/RET emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-11 17:47:13 +00:00
Alastair Tse b156729779 [XEND] Device update should handle SXP without 'device' as first
param.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-11 17:03:11 +00:00
Alastair Tse 85bc6f4326 [XEND] Fix broken block-configure.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-11 16:36:46 +00:00
kfraser@localhost.localdomain 02ae5b357f [XEN] Use local var instead of current->domain in two places.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-11 15:50:28 +00:00
kfraser@localhost.localdomain fbe7092696 [HVM][VMX] Some simplifications, particularly to vmx_load/save_cpu_regs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-11 15:43:38 +00:00
kfraser@localhost.localdomain 5b6bf5798a [XEN] More emulator fixes and emulate BSWAP.
Better handling of LOCK prefix.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-11 11:41:44 +00:00
Ian Campbell 5dd4f8ccd1 [XEN] Update comments in elfnote.h interface header.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-11 10:36:41 +00:00
john.levon@sun.com 5c8a39cf80 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>
2007-01-08 12:54:41 -08:00
kfraser@localhost.localdomain 68a749f178 [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>
2007-01-11 10:10:16 +00:00
Tim Deegan dc5bf8aa50 [HVM] Allow a dom to have nonsense m2p entries when building the p2m
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-11 10:08:14 +00:00
Jake Wires 409d47638a [BLKTAP/BLKBACK] name blktap/blkback kernel threads as "domid.virtual_devname"
Signed-off-by: Jake Wires <jwires@xensource.com>
2007-01-09 18:56:44 -08:00
Emmanuel Ackaouy 2736a406e4 [XEN] Partial fix for compat build non-portability.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-10 17:56:54 +00:00
Emmanuel Ackaouy 7220350010 [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>
2007-01-10 17:26:58 +00:00
kfraser@localhost.localdomain d49020eed7 [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>
2007-01-10 16:17:35 +00:00
kfraser@localhost.localdomain 647c467fd9 [HVM] Allow PV-on-HVM callback irq to be identified by PCI device.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-10 15:05:00 +00:00
kfraser@localhost.localdomain c5a9d11fa8 [HVM] Remove unneeded vcpu_kick() from HPET device model.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-10 14:14:30 +00:00
kfraser@localhost.localdomain 5fc32d22f2 [XEN] Remove bogus BUG_ON() which breaks the build with gcc 4.2.0.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-10 11:09:21 +00:00
Ian Campbell ca00403ece [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>
2007-01-10 09:39:24 +00:00
Ian Campbell 0257938d11 [LINUX] Clarify comment in xen_machine_kexec_setup_resources().
Noticed by Horms.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-10 09:39:24 +00:00
kfraser@localhost.localdomain 9bec2359e6 [HVM] Ignore evtchn_upcall_mask and initialise to zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-09 17:43:13 +00:00
Ewan Mellor e3e7d81e41 Update sched-credit test to match new format from xm sched-credit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-09 17:38:48 +00:00
Ewan Mellor 00e5248813 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>
2007-01-09 17:25:28 +00:00
Ewan Mellor e4658203b4 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>
2007-01-09 17:23:22 +00:00
Ian Campbell 319107a11b merge 2007-01-09 17:17:05 +00:00
Ian Campbell 0ae7229c66 [XEN] Kexec: Make some variables static.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-09 17:15:29 +00:00
Ian Campbell 123e738ef2 [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>
2007-01-09 17:15:28 +00:00
Ian Campbell b0a47bd080 [LINUX] Kexec: Don't try to load an NULL image. This can occur when unloading.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-09 17:14:28 +00:00