Commit Graph
12615 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 72941f1998 [HVMLOADER] Clean up makefile, change TPM detection.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 12:41:30 +00:00
kfraser@localhost.localdomain 74517de104 [LINUX] Avoid triggering the softlockup BUG when offline for too long.
After being offline for a long time, the softlockup  watchdog triggers
a BUG() on our faces. This is expected, as in fact, we spent more than
a fixed 10*HZ amount of time without touching the watchdog.

However, by inspecting the contents of stolen inside timer irq handler,
we can gain awareness of the fact, and do better than that.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
2006-11-29 12:16:59 +00:00
kfraser@localhost.localdomain 536c3bc789 [LINUX] console: Fix comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 12:04:49 +00:00
kfraser@localhost.localdomain 5c6e15bd79 [XENOPROFILE, LINUX] compilation fix on x86_64
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-29 11:40:10 +00:00
kfraser@localhost.localdomain f46695b45b [HVMLOADER] Fix CFLAGS.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 11:38:17 +00:00
kfraser@localhost.localdomain 2dcb3ad6f8 [LINUX] console: Add option to use /dev/xvc0, major=204, minor=191.
The major/minor has now been allocated to us by lanana.org.

This is based on previous patches from:
 Jeremy Katz <katzj@redhat.com>
 Amos Waterland <apw@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 11:37:59 +00:00
kfraser@localhost.localdomain 70d02d276e [HVM][VMX] NX bit implies PAE can be enabled. If IA32 VMX guest finds
NX bit is there, it may enable PAE even if PAE bit is returned 0 by
CPUID.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-11-29 11:07:51 +00:00
kfraser@localhost.localdomain f2b23d6824 [DOCS] Update for new Xen boot parameters.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 10:58:35 +00:00
kfraser@localhost.localdomain b83e447099 Fix for network routing setup. Enables proxy arp on dom0's externally visible interface.
Signed-off-by: H. Andres Lagar-Cavilla <andreslc@cs.toronto.edu>
2006-11-29 10:57:30 +00:00
Ewan Mellor bf9423a1fd Diagnose a failure to open the xend-debug.log, and make the /var/log/xen
directory on startup, which was the most common reason to fail.
Closes bug #823.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 10:56:02 +00:00
kfraser@localhost.localdomain 1d892b609b [XEN] Emulator fixes.
1. Fix RIP-relative EA calculation. Immediate operands are never 64-bit.
 2. Displacements are sign-extended so used signed types.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 10:48:06 +00:00
Ewan Mellor b496644a2b A trivial fix. login_unconditionally needs to be called with
self.login_unconditionally to avoid  "global name
'login_unconditionally' is not defined"

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-28 18:41:42 +00:00
Ewan Mellor ea3b5838d8 Wait for device-bringup inside domain_start, outside the scope of the
domains_lock.  This makes the VM.start call blocking, but allows xm list to
work while it is blocked.  Move the handling of start_paused out of
XendDomainInfo.start as part of this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 18:00:45 +00:00
Ewan Mellor 592da6d9ee Plumb the "start_paused" flag through for VM.start and VM.resume. Do not
unpause the VM on start by default.  This should fix problems seen recently
whereby devices are not attached to the VM by the time they boot, as
xm create was expecting to be able to wait for the devices before unpausing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 17:28:43 +00:00
kfraser@localhost.localdomain b2cb3ada56 Allow DMA address width to be overridden with boot parameters:
In Xen: dma_bits=28 (for example)
In Linux: swiotlb_bits=28 (for example)

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-28 17:15:22 +00:00
Ewan Mellor f8cd45575d Add test_bindings back into the build -- it isn't integrated with the normal
targets, because it introduces an additional dependency (libcurl), but
make test/test_bindings does the right thing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 17:04:32 +00:00
jfehlig@jfehlig2.provo.novell.com f7bd1801f8 Fix casing of various functions in XendAPI class.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-14 15:36:41 -07:00
kfraser@localhost.localdomain cee7ce97f7 Clean up the DMADOM physical upper limit handling to properly honour
settings in config.h.

Set the upper limit for DMADOM and swiotlb allocations to be 30 bits
(1G) instead of 31 bits, to allow the b44 NIC driver to work.

Signed-off-by: Stephen Tweedie <sct@redhat.com>
2006-11-28 16:41:45 +00:00
jfehlig@jfehlig2.provo.novell.com 0dc1af83bf Add libxen to overall xen build via a config option in Config.mk.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-22 14:25:07 -07:00
Ewan Mellor caf550ed59 Dummy implementation of get_platform_keymap, so that the API layer doesn't
complain.  This is going to change soon, I expect.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 16:23:05 +00:00
Ewan Mellor 07d94e438d Allow the C bindings to be more permissive when a structure is missing some
entries.  Complaining is just slowing development down when the server and
clients get out of sync.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 16:22:22 +00:00
kfraser@localhost.localdomain db08b83ada [HVMLOADER][ACPI] Move SSDT initialisation to acpi/ dir.
This kills off a few hundred lines of unnecessary code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-28 15:47:52 +00:00
Ian Campbell 3bd852f207 [LINUX] Update to 2.6.16.33.
No changes required to sparse tree or patches directory.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-28 15:25:26 +00:00
kfraser@localhost.localdomain 1c804664cf [XEN] Add emulator tracing diagnostic on error path.
Simplify shadow-mode entry protocol to emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-28 14:27:13 +00:00
Ewan Mellor 44755869f7 Bump xend_config_format to 3, to indicate that the lifecycle patches are
available.

Better version mechanisms will be forthcoming!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 14:24:20 +00:00
kfraser@localhost.localdomain d8dfab4a35 [HVMLOADER] acpi: Implement an acpi_rsdp_get() function that searches
for the RSDP in memory (up to the BIOS) rather than calculating its
start address. Recent changes seem to have moved the RSDP to another
location in memory so that I received 'BAD RSPD signature' messages.
I have also fixed some other possible issues related to return codes
and alignment of ACPI entries.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-28 13:53:12 +00:00
kfraser@localhost.localdomain bc79267989 [BLKTAP] Use lartge enough types to express parameters of large block devices.
While the kernel side of blktap drivers is using 64-bit sector numbers
correctly when reporting disk sizing, the userspace parts where this
dat is actually generated is truncating at 32-bit. There are 3 variables
related to disk sizing which are used in the kernel/userspace code
'size', 'sector size' & 'info'. In kernel space these are treated as being
unsigned long long, unsigned long, and unsigned int, respectively. In
the blktap userspace code this were all varyingly long, unsigned long.
This mismatch caused 32-bit wraparound on large disks. The attached
patch updates the blktap userspace to use the same data types as
kernel space for all these params, thus both fixing the 32-bit bug &
giving the code consistency.

This patch has been tested both by comparing /proc/partitions in the
guest, with the image size seen in the host, and by using Stephen
Tweedie's 'verify-data' tool on a variety of multi-TB sized disks.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-11-28 13:50:32 +00:00
kfraser@localhost.localdomain 5348ff2ec0 [HVM][SVM] Allows 64bit HVM AMD-V Linux guests to boot.
Basically, this patch reverts part of c/s 12264.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-11-28 13:48:47 +00:00
kfraser@localhost.localdomain 2b87d5adbb [QEMU] pci: Unaligned config read/write overflow
The default config read/write handlers allows a 4-byte read/write at
address 255.  This can clobber the field after the config area.  This
happens to be the PCIBus pointer in the PCIDevice structure.

This patch stops this from reducing the read/write to the (largest
multiple of 2) number of bytes within the config area.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-11-28 13:46:10 +00:00
kfraser@localhost.localdomain 6c06dcdb86 [XENOPROFILE] fix shared_xenoprof_page_with_guest() and cleanup.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 13:43:25 +00:00
Ewan Mellor a6878f4ab4 Added xm list --state option, to select VMs with a particular state. Make
this handled by a new message (xend.domains_with_state) and make xend.domains
equivalent to xend.domains_with_state(running).  This restores the Xen 3.0.3
semantics of xend.domains.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 13:34:15 +00:00
Ewan Mellor 8cff4a9583 Do not display -1 as the domid when a VM is not running -- simply leave the
column blank.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 13:32:07 +00:00
Tim Deegan f0bedfe7be [XEN] Clear just the _PAGE_RW bit when shooting writeable mappings
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-28 12:24:24 +00:00
kfraser@localhost.localdomain 8953fa61f2 merge 2006-11-28 11:47:28 +00:00
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
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
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