Commit Graph
12567 Commits
Author SHA1 Message Date
Ewan Mellor 283b2fa4e8 Don't send the old state string for halted domains -- it doesn't make any
sense, and we don't want to see state flags linger.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 14:48:38 +00:00
Ewan Mellor b12b62c2fd Reset the domain name after the save completes. This is necessary, now that
we have persistent domains.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 14:47:23 +00:00
Ewan Mellor b05e41a16b Add xm resume to the commands list.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 14:45:44 +00:00
kfraser@localhost.localdomain b63e5446b8 [XEN] Cleanups to phys/mach address handling.
1. Balloon driver does not need to set M2P entry.
    This is done by the populate_physmap hypercall.

 2. Xen now translates foreign mappings from GMFN->MFN.
    Tools are simplified because of this.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-27 14:20:44 +00:00
Ian Campbell b23fab8e20 [LINUX] Import kasprintf patch from upstream.
kasprintf has been merged upstream with a slightly different protoype
to the one in Xen. Import this patch and fixup the Xen tree to fit.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-27 13:50:02 +00:00
Ian Campbell 821b3ff18b [LINUX] Update to Linux 2.6.16.32
Updated patches/linux-2.6.16.32/net-gso-0-base.patch due to changes in
net/core/dev.c and net/core/skbuff.c and update the following in the sparse
tree:
	include/linux/skbuff.h
	mm/memory.c
	mm/mmap.c

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-27 13:50:02 +00:00
Ian Campbell 9276d7173d [LINUX] Update to Linux 2.6.16.31
Updated linux-2.6-xen-sparse/arch/x86_64/kernel/acpi/Makefile

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-27 13:50:02 +00:00
Ian Campbell 403cab8f9d [LINUX] Update to 2.6.16.30.
No changes required to sparse tree or patches directory.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-27 13:50:01 +00:00
kfraser@localhost.localdomain 71b2e3090d [NET] back: Fix DPRINTK message.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-27 13:22:21 +00:00
Ewan Mellor ba2055b085 Fix typo.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 12:53:40 +00:00
Ewan Mellor 168c198485 Do not bother waiting for the old HttpServer and UnixHttpServer threads when
shutting down -- they don't have exit handling themselves and ought to just
be made daemon threads.

Added some logging to dialog shutdown problems.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 12:50:30 +00:00
kfraser@localhost.localdomain a41ba620b1 [HVM] Move IOAPIC ID back to 0x00. Shift LAPIC IDs to 0x01 upwards.
Actually the conflict between LAPIC ID 0x00 and IOAPIC ID 0x00
really doesn't matter even in a native system but we can avoid
any risk of a warning by shifting the LAPIC ID space by one.

Also the changeset fixes construction of the MADT (LAPIC info
was overwriting the IOAPIC info) so we can now boot with ACPI
MADT again.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-27 12:00:01 +00:00
kfraser@localhost.localdomain fab79a3970 [HVM] Fix 8259 ELCR masks.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-27 11:39:54 +00:00
kfraser@localhost.localdomain 406f6c95f5 [XENOPROFILE] removed unused gmaddr argument.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-27 10:24:41 +00:00
kfraser@localhost.localdomain 1d57fa7227 [MINIOS] Switched to new interface for HYPERVISOR_sched_op().
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2006-11-27 10:23:19 +00:00
kfraser@localhost.localdomain e61c814cd6 [HVM] Fix bugs in RTC alarm code.
- comparing bcd with binary data
 - comparing min with mon

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-11-27 10:14:45 +00:00
kfraser@localhost.localdomain d81e62bebd [QEMU] fdc: Limit sector size to 16K
In fdctrl_start_transfer the sector size field (fifo[5]) is not
checked for overflows.  This allows an arbitrarily large sector size
to be used, which can in turn result in a negative data_len field that
is then used for DMA transfers.

This can lead to the corrpuption of qemu state because some subsequent
checks on the transfer length is conducted using signed integers.

This patch limits the value fifo[5] to 7 which is the standard limit
on floppy sector size.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-11-27 10:09:19 +00:00
kfraser@localhost.localdomain 9e4d84f047 [VMXASSIST] Fix the wrong order definition of ES/DS in regs structure.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-11-27 10:08:12 +00:00
kfraser@localhost.localdomain 4d4f554238 [PATCH] svm: fix RIP-relative addressing in invlpg emulation
RIP-relative addressing as relative to the beginning of the next (or,
in other word, the end of the current) instruction.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-27 10:06:41 +00:00
kfraser@localhost.localdomain ec5a981623 [HVM] Small fixes to mmio decoder/emulator.
Remove a superfluous special case in xchg and fix word-size source
operand movzx.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-27 10:05:23 +00:00
kfraser@localhost.localdomain d255c83172 [MINIOS] Exports a function to have all Xen ports unbound.
This is necessary when using mini-os as the foundation for a boot-loader.

Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
2006-11-27 10:03:35 +00:00
kfraser@localhost.localdomain e9542d25de [HVM] Fix building PV-on-HVM drivers on i386.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-27 10:02:24 +00:00
kaf24@localhost.localdomain 5a4fbd930b Update hgignore list 2006-11-26 17:39:09 +00:00
kaf24@localhost.localdomain 938cee9d41 [HVM] Dynamically build ACPI-table data block.
Only emit MP tables and MADT for multi-processor guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-26 17:37:28 +00:00
kaf24@localhost.localdomain f8391b7239 [XEN] Fix emulator EA calculation for LODS/STOS.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-26 17:35:00 +00:00
kaf24@localhost.localdomain 121fa74662 [XEN] Clean up EA computation in emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-26 13:52:48 +00:00
kaf24@localhost.localdomain 00a70f44a6 [HVM] Update VPIC device model for new interrupt delivery code.
Move BSP VLAPIC initialisation to hvmloader.
Remove callback_irq update hack from Linux unmodified drivers.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-26 13:37:27 +00:00
kfraser@localhost.localdomain 9d4052382a [HVM] VPIC (i8259) device model cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-24 15:42:14 +00:00
kfraser@localhost.localdomain 3cc625f76e [HVM] Unaligned write to a PTE is a good indication the
page is no longer a page table.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-24 14:37:45 +00:00
Ewan Mellor a057ff078b Fix vncdisplay handling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-24 14:05:59 +00:00
Tim Deegan 9e6b8c32af [HVM] Fix hvm_copy_[to|from]_guest_virt
which would fail if it crossed a page boundary where the guest physical
pages were not contiguous.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-24 09:42:40 +00:00
Tim Deegan c0a204d2b4 [VMX] Make sure that the WP bit is always set in CR0 when running SVM guests.
This is the VMX equivalent of cset 12525:4ddda0bbb57c.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-23 18:01:40 +00:00
Tim Deegan 551993ffe8 Merge 2006-11-23 17:54:06 +00:00
Tim Deegan 727313038d [XEN] Pin l3 shadows of older x86_64 linux guests.
Older x86_64 linux kernels use one l4 table per cpu and context switch by
changing an l4 entry pointing to an l3 table.  If we're shadowing them
we need to pin l3 shadows to stop them being torn down on every
context switch.  (But don't do this for normal 64bit guests).
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-23 17:46:52 +00:00
Tim Deegan 08f6effd42 [XEN] Don't call domain_crash_synchronous() with shadow lock held.
Call domain_crash() and propagate an error to the caller instead.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-23 17:44:12 +00:00
Tim Deegan 63a54d2cb3 [XEN] Simplify the shadow hash table.
Chain hash buckets through the shadow page_info structs instead
of in separately allocated structures.  This lets us get rid of
some xenheap allocations and a domain_crash_synchronous() call.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-23 17:42:29 +00:00
Tim Deegan 63aa5155c2 [XEN] Use a separate struct shadow_page_info for shadow pages
and move the definitions of shadow types etc out of public headers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-23 17:40:28 +00:00
kfraser@localhost.localdomain 4142fe1d1f [XEN] Small ioemul cleanup.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-23 17:37:23 +00:00
kfraser@localhost.localdomain 026b4d5855 [XEN] Extend emulator to fully decode ModRM and SIB bytes.
Use this to detect data accesses that straddle a page boundary
and fault on the second page. We cannot handle these properly.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-23 17:32:18 +00:00
Ian Campbell c8d3c51260 [XEN] Avoid using regparm on a typedef.
This does not work reliably across gcc versions. Workaround this by attaching
the regparm attribute to a variable instead.

Also since guest_to_host_gpr_switch() updates the guest EAX on the stack there
is no need to do so in emulate_privileged_op() as well. Therefore io_emul stub
now returns void.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-23 17:21:26 +00:00
Ian Campbell 23632743fd [BLKFRONT] Only attempt to recover a device on resume if it was connected when
we suspended.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-23 15:06:35 +00:00
Steven Smith 07bb349018 [SVM] Make sure that the WP bit is always set in CR0 when running SVM guests.
This is necessary to be sure that the shadow mode code can always detect
writes to guest page tables.

This should fix Windows restore from hibernation on SVM platforms.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-11-23 09:36:48 +00:00
kfraser@localhost.localdomain 3af4730c8d [HVM] Update ACPI tables to reflect new PIRQ routing:
1. Override ISA IRQs 5,6,10,11 as active-low level-triggered.
    These are 'wired' to PCI devices.
 2. Limit PCI-ISA link routers to route to 5,6,10,11. Others
    are active-high edge-triggered and so invalid to use for
    PCI devices. In any case, four ISA IRQs is sufficient to
    avoid unnecessary aliasing among four links.
Also remove PCI device 0 IRQ info. It's an embedded host bridge with
no interrupt sources.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-22 18:36:48 +00:00
kfraser@localhost.localdomain bbfa22f8c9 [HVM] Move PCI and PCI-ISA bridge setup to hvmloader.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-22 17:50:20 +00:00
PeterJohnston 9fd9cc0666 [QEMU] Add TCP_NODELAY to tcp connections exporting serial ports.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-11-22 09:52:48 -07:00
Brendan Cully acc3cc66f7 Add -p/--paused flag to xm restore.
When --paused is specified, the domain is paused after it is loaded.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2006-11-21 18:09:23 -08:00
jfehlig@jfehlig2.provo.novell.com 3206f975b8 The legacy apis return a value of None on success, which was being converted to a value of 'nil' in the xmlrpc response.
The Xen IPI spec states that destroy, hard_shutdown, pause, resume, start, suspend, and unpause return void.  This patch makes it so and permits proper parsing of the response by clients (libxen) that follow the spec.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-17 16:21:14 -07:00
Ewan Mellor 7b0a6bf9f4 Stop the kernel and ramdisk from being nuked if the kernel_external bootloader
setting is being used.

From Jim Fehlig <jfehlig@novell.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-22 14:01:51 +00:00
kfraser@localhost.localdomain d82f56fc1a [XEN] Fix the build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-22 13:27:52 +00:00
kfraser@localhost.localdomain facdf41917 [HVM] Set VIOAPIC ID to a value that does not conflict with LAPIC IDs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-22 11:52:46 +00:00