Commit Graph
13380 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 3d7f8c7056 [HVM] Add/fix access rights and limit checks to INS/OUTS emulation
Since these instructions are documented to take their intercepts
before these checks are being done in hardware, they must be carried
out in software.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-28 11:46:39 +00:00
kfraser@localhost.localdomain c4a63971ef [HVM] Non-flat protected mode HVM support.
This is now the full set of changes needed to eliminate the assumption
that segments in protected mode always have zero base addresses. At
once, this further simplifies the instruction length determination
code used for MMIO of HVM domains.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-28 11:45:54 +00:00
Ewan Mellor dcce57e533 Fix missing import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 11:43:43 +00:00
kfraser@localhost.localdomain c6a2553669 [HVM] Fix MSR access code.
- rdmsr/wrmsr always use ECX (not RCX) as register index.
- SVM still had the function names explicitly in the HVM_DBG_LOG() output
- the guest should (at the very minimum) see GP fault for MSRs
  accesses to which even fault in Xen itself

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-28 11:43:39 +00:00
Ewan Mellor 8e37e2b661 Don't bail if the VM renaming at the end of saving doesn't succeed -- we
expect a failure if this is a localhost migration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 11:35:10 +00:00
Ewan Mellor 2e873d3d17 Added configuration for authentication through Xen-API -- it can now be set
to use PAM, or to be turned off entirely, on a listener by listener basis.

Listen on a different unix domain socket for the Xen-API server, so that it
can co-exist with the others.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 11:31:46 +00:00
Ewan Mellor 46873848fb Fix log message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 10:24:52 +00:00
Ewan Mellor 027a790317 Implement an "allowed hosts" mechanism for the XML-RPC server layer, using
code from the relocation protocol handling and some plumbing.  Add a new
configuration entry for the Xen-API server, including use of this mechanism.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 10:23:34 +00:00
Tim Deegan 1a83e87410 [XEN] Remove valid_mfn().
Since cset 12568 removed VALID_MFN(), valid_mfn() is just confusing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-28 09:51:05 +00:00
Tim Deegan cf5a448b88 [XEN] Don't unpin old shadow top levels until the new ones are pinned.
This will stop a possible case where we unshadow an entire process
on a TLB-flush CR3 write.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-28 09:39:32 +00:00
Jimi Xenidis 0f92d4c973 [XEN][POWERPC] OFD dump prefix screen and hook into keyhandler
This patch adds the ability to view the devtree from the Xen console.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

--HG--
extra : transplant_source : %CCE%28-%AF%3D%24/%DC%F6%E8X%C0%B1%8B%7F%10%86%A3%18
2006-11-27 17:17:07 -05:00
Jimi Xenidis aa27538239 [TOOLS][POWERPC] update prose builder to define the mem_mb arg.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

--HG--
extra : transplant_source : %02%AA%AF%00%A9%22%9Bed%E8%60a%8F2%9B%D2%F90%3A%1E
2006-11-27 16:14:07 -05:00
Ewan Mellor 1c06df3dbb Cope with non-integer domids (i.e. None) in the error message surrounding
save/restore.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 20:04:20 +00:00
kfraser@localhost.localdomain da38d1f64b [HVM] Re-introduce the 'apic' configuration option, default to 1.
Also simplify the HVM builder interface by doing more work in
the python wrapper, and fix mapping of shared_info page after the
change to map foreign pages by GMFN rather than MFN.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-27 17:49:41 +00:00
kfraser@localhost.localdomain 63e2f0bd68 [XEN] Remove VALID_MFN(); replace uses with mfn_valid().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-27 17:48:24 +00:00
awilliam@xenbuild.aw bac058316d [IA64] Idle domain doesn't need to save and restore fph
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-11-27 10:10:57 -07:00
awilliam@xenbuild.aw daed959ce1 [IA64] fix p2m table destruction
Introduce delayed p2m table destruction

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-27 09:26:15 -07:00
Ewan Mellor 7a914ac673 When suspending and resuming, look up the managed path using the domain's UUID.
Add a resumed domain to the self.domains list after XendCheckpoint.restore,
to ensure that it does not get recreated immediately afterwards.

Perform domain_resume under the domains_lock, given that the domain needs to
be added.

These fixes together should fix xm suspend and xm resume.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-27 14:52:41 +00:00
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