Commit Graph
12632 Commits
Author SHA1 Message Date
awilliam@xenbuild.aw 1691a97d3b [IA64] remove undefined debugging line
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-29 09:16:46 -07:00
awilliam@xenbuild.aw 0d2fbb9506 [IA64] xenoprof linux/ia64 part
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 22:54:24 -07:00
awilliam@xenbuild.aw 2a615d53c7 [IA64] xenoprof ia64 xen side
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-28 21:35:13 -07:00
awilliam@xenbuild.aw e5b50237ff [IA64] add dummy empty header files necessary for xenoprof/ia64
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 11:34:03 -07:00
awilliam@xenbuild.aw e75f92933e [IA64] increase xen side pmu constatns for motecito.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 11:31:45 -07:00
awilliam@xenbuild.aw 8508962bbe [IA64] import linux/arch/ia64/oprofile/perfmon.c
To xen/arch/ia64/xen/oprofile/perfmon.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 11:26:14 -07:00
awilliam@xenbuild.aw 0ef613d426 [IA64] import perfmon, oprofile related files from linux to linux-sparse
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

Updated to 2.6.16.33

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-28 11:19:40 -07:00
awilliam@xenbuild.aw 3a22894792 [IA64] import oprofile, perfmon related files from linux to xen.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

Updated to 2.6.16.33

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-28 11:15:35 -07:00
awilliam@xenbuild.aw ec489b8435 merge with xen-unstable.hg 2006-11-28 10:37:36 -07: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
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