Commit Graph
17494 Commits
Author SHA1 Message Date
Keir Fraser 978e9bef8c hotplug scripts: Fix sharing check for blktap
Run check_blktap_sharing() only when a disk is added to guest with blktap.
A check_blktap_sharing() doesn't have to be run when a disk is removed.

Signed-off-by: Hirofumi Tsujimura <tsujimura.hirof@jp.fujitsu.com>
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
2008-04-22 10:29:32 +01:00
Keir Fraser 4195aba99f x86_emulate: BT instruction does not write to its 'destination' operand.
This fixes w2k3 guests occasionally writing back to read-only registers.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
2008-04-22 10:27:04 +01:00
Keir Fraser 3ed02f5079 vt-d: Fix a bug in addr_to_dma_page_maddr(), and add timeout in infinite loop
In addr_to_dma_page_maddr(), pte should not be used after
unmap_vtd_domain_page(parent). In addition, timeout is added in some
infinite loops.

Signed-off-by: Weidong Han <weidong.han@intel.com>
2008-04-22 10:20:05 +01:00
Keir Fraser bd5b777ef9 xm: Add a new command: xm reset
If a hang-up of a guest OS occurs, we will restart the guest OS by
using
the following commands.
 1. xm destroy
 2. xm create or xm start

To reduce the number of xm commands to use, this patch adds a new
command.  The command is "xm reset".  The command executes destruction
of a domain, and then creation of the domain.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2008-04-22 10:18:13 +01:00
Keir Fraser cc6d494337 src-tarball: Remove source control metadata.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-21 20:21:39 +01:00
Keir Fraser 103cff93e2 Cache figlet output across builds, and provide src-tarball target
which creates figlet output and then deletes figlet itself (which is
not licensed under GPL).

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-21 20:08:29 +01:00
Keir Fraser 66a8823922 iommu: initialisation cleanup and bugfix.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-21 17:41:29 +01:00
Keir Fraser ff7d544457 AMD IOV: Fix xen boot on non-iommu systems.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
2008-04-21 14:59:25 +01:00
Keir Fraser 540488e09a x86, hvm: Merge 32-bit and 64-bit asm stubs into common files.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-21 14:55:15 +01:00
Keir Fraser 4b8e1535e4 svm: Do not hide 3DNow! CPU capabilities from SVM guests.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-21 12:23:55 +01:00
Keir Fraser 9fcaa32c64 x86, hvm: Assembly stub cleanups.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-21 12:19:15 +01:00
Keir Fraser b8038beeeb iommu: Consolidate iommu enablement logic. Now there is only one
command-line parameter for disabling IOV/VTD: "iommu"/"no-iommu".

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-21 10:33:40 +01:00
Keir Fraser 4616364871 amd iommu: clean up debug information.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
2008-04-21 10:01:46 +01:00
Keir Fraser 93f92fcf9c docs: update xen-apic docs
Added undocumented fields and methods for default_netmask and
default_gateway to the Network class. Remove an unimplemented method
from the XSPolicy class and remove the 'optional' from 'oldlabel'
parameters.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2008-04-18 11:10:17 +01:00
Keir Fraser 4b9fd1bad1 ioemu: Fix cross-build of tapdisk-ioemu
changeset e1962ac0fb1c breaks cross-builds because it assumes the
system strip tool applies to the generated binaries.  This assumption
isn't made anywhere else in the xen tools build.

Signed-off-by: Aron Griffis <aron@hp.com>
2008-04-18 11:08:10 +01:00
Keir Fraser c25c3c9ae5 x86: Fix the non-PAE build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-17 15:48:40 +01:00
Keir Fraser 29a3d669c7 x86, hvm: Allow emulation of 'multi-cycle' MMIO reads and writes,
which may require multiple round trips to the device model.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-17 12:37:35 +01:00
Keir Fraser 74a02d2244 x86_emulate: Emulate MMX movq instructions.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-17 10:46:54 +01:00
Keir Fraser f66e0a53ee x86_emulate: Emulate certain FPU instructions by building the opcode
on the stack. This allows us to add emulation for a number of extra
FPU opcodes without inflating the executable code size.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-16 16:42:47 +01:00
Keir Fraser a6836b4fdd x86_emulate: Implement a more dynamic interface for handling FPU
exceptions, which will allow emulation stubs to be built dynamically
in a future patch.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-16 16:10:41 +01:00
Keir Fraser 8415719513 AMD IOMMU: Add event logging support.
MSI interrupt will be triggered on IO page fault and the fault address
will be written into an in-memory event log buffer automatically by
hardware. This patch handles the MSI interrupt simply by reading event
log entry and printing out the parsed result.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
2008-04-16 13:43:23 +01:00
Keir Fraser 4ed4200b85 [VTD] Fix VT-d PAE issues.
Cast unsigned long PFNs to paddr_t before shifting left.

Signed-off-by: Weidong Han <weidong.han@intel.com>
2008-04-16 13:40:46 +01:00
Keir Fraser a6a8223242 x86, hvm: Lots of MTRR/PAT emulation cleanup.
- Move MTRR MSR initialisation into hvmloader.
 - Simplify initialisation logic by overlaying UC on default WB rather
   than vice versa.
 - Clean up hypervisor HVM MTRR/PAE code's interface with rest of
   hypervisor.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-16 13:36:44 +01:00
Keir Fraser 5539f61f5b stubdom: make use of PVFB resize event
which with the offset support also permits to expose the VGA vram and
non-shared vram throught PVFB at the same time, switching between both
as appropriate.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-04-16 10:21:08 +01:00
Keir Fraser 426747a871 ioemu: drop reschedule of handle_buffered_io on I/O reqs
Rescheduling the call to handle_buffered_io costs the system call to
qemu_get_clock(), which is very expensive considering the the latency
we would like to achieve for I/O reqs, so we should avoid it.

That means that handle_buffered_io may be called as often as every
0.1s, but that's not so costly.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-04-16 10:07:49 +01:00
Keir Fraser 724e4fd51e minios: simplify schedule()
- Merge the search, wakeup, and timeout loops.
- Avoid unnecessarily switching to the idle thread.
- Perform stack release _after_ we get out of it.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-04-16 10:06:34 +01:00
Keir Fraser 796b445b00 minios: call do_hypervisor_callback directly from force_evtchn_callback
instead of unnecessarily going through the hypervisor.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-04-16 10:06:19 +01:00
Keir Fraser 28baa78877 stubdom: sparse application's BSS by linking it separately first, put
markers at its beginning and end, and then link with mini-os.
That permits to stick a bit more to upstream qemu.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-04-16 10:05:57 +01:00
Keir Fraser f464d312c7 x86: Fix emulation of PCI access register at I/O port 0xcf8.
The register is only visible for DWORD accesses. Furthermore, some
chipsets place other registers in the range 0xf8-0xcfb for sub-DWORD
accesses.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-16 10:04:22 +01:00
Keir Fraser bb475a64ea [LIBFSIMAGE] Support 256 byte inodes on ext3
Patch taken from Debian grub package version 0.97-32.
See http://bugs.debian.org/463236 & http://bugs.debian.org/463123

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
2008-04-16 09:45:44 +01:00
Keir Fraser 7836376746 x86, hvm: Fix memory leak.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-16 09:32:45 +01:00
Keir Fraser b42f8b07d1 hvmloader: Explicitly revert to text section after declaring bss fields.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 18:11:44 +01:00
Keir Fraser 1eaea3f0b6 hvmloader: Framework for multiprocessor initialisation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 16:39:00 +01:00
Keir Fraser 3719d0804f x86, hvm: APIC INIT handling can make use of existing hvm_vcpu_down()
helper function.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 16:38:25 +01:00
Keir Fraser 98892a5e57 tools: Build fixes for *BSD.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 16:07:30 +01:00
Keir Fraser fb6dd9a130 ioemu: COW driver flush method should return an int.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 16:04:30 +01:00
Keir Fraser bcba667e12 x86, hvm: Clean up handling of APIC INIT and SIPI messages.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 15:47:53 +01:00
Keir Fraser b631149c20 x86, hvm: If an MMIO handler returns X86EMUL_RETRY we must still
complete the dummy I/O request-response cycle.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 15:45:42 +01:00
Keir Fraser dc4c72a5fc x86: per-domain p2m structure must be initialised to all-zeroes when
it is allocated.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 15:44:40 +01:00
Keir Fraser c6b4652705 Tasklet bug fixes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 15:03:40 +01:00
Keir Fraser a20735e84b domctl: Do not return XEN_DOMINF_blocked if no VCPUs are online.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 15:03:08 +01:00
Keir Fraser 6742db6e68 x86, hvm: I/O emulation handlers return X86EMUL_* return codes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 13:28:02 +01:00
Keir Fraser ef3c86eb81 xend/acm: Fixes to labelling of resources.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2008-04-15 10:24:55 +01:00
Keir Fraser 83838ce7eb [IA64] Remove duplicate tasklet code
Make use of the newly added common code.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2008-04-15 10:21:35 +01:00
Keir Fraser d354d1ec94 [IA64] Fix pci.h include overlap
The new upstream xen/pci.h has a name conflict with our modified
linux/pci.h and shows up earlier in the include search path.  Since
our usage of linux/pci.h is limited, rename to linux/linux-pci.h to
avoid duplicate names and cleanup the few users.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2008-04-15 10:21:17 +01:00
Keir Fraser a29af79e4e Change tasklet implementation so that tasklet_kill() does not have to
busy-wait for softirq work to start. This reduces the possibility of
deadlocks, but the implementation is now less efficient. For the
current few users of tasklets this does not matter.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-15 10:19:58 +01:00
Keir Fraser 8a7a02ee55 Rename 'big lock' to 'domain lock'.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-14 16:07:54 +01:00
Keir Fraser f541851c79 hvmloader: Small cleanups.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-14 14:10:11 +01:00
Keir Fraser 381438fc2b svm: Fix an assertion.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-11 17:29:26 +01:00
Keir Fraser 5ace6c1924 hvm: Add HVM_PARAM_DM_DOMAIN to let ioreq events go to a stub domain
instead of dom0.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-11 17:19:07 +01:00