Commit Graph
12516 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain d8bd52ce0d [TOOLS] Check for python-devel.
Thanks to Ewan Mellor, Anthony Liguori, and Daniel P. Berrange for
pointing out problems with and solutions for the problems with the
first version.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-22 10:30:05 +00:00
kfraser@localhost.localdomain 51d3ca60cb [IA64] Change callback_irq spec of PV-on-HVM for IPF
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-22 10:25:21 +00:00
kfraser@localhost.localdomain 217b97f42d [LINUX] Make xen /dev/mem aware of IA64 to use X.
The original /dev/mem (linux/drivers/char/mem.c) is aware of IA64
specific issues. On the other hand paravirtualized /dev/mem
(linux-2.6-xen-sparse/drivers/xen/char/mem.c) is simplifed not to be
aware of IA64. This patch makes it IA64-aware to use X on domain0/IA64.
With this patch and ia64-specific patches, X server can boot on domain0/IA64.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-22 10:23:14 +00:00
kfraser@localhost.localdomain 531616bf98 [MINIOS] Refactored mm.c and sched.c. x86 arch specific code got moved to
arch/x86/mm.c and arch/x86/sched.c. Header files were also refactored:
arch specific code got moved to include/x86/arch_mm.h and
include/x86/sched_mm.h.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-11-22 10:11:36 +00:00
kfraser@localhost.localdomain 47186797ce [POWERPC][LIBFS] Fix build breakage in log2 assembly.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-11-22 10:10:29 +00:00
kfraser@localhost.localdomain d41363d448 [XENOPROFILE] Make xenoprof arch-generic with dynamic mapping/unmapping xenoprof
buffer support and auto translated mode support.
renamed xenoprof_get_buffer::buf_maddr, xenoprof_passive::buf_maddr to
xenoprof_get_buffer::buf_gmaddr, xenoprof_passive::buf_gmaddr
to support auto translated mode. With auto translated mode enabled,
it is gmaddr, not maddr.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

Simplify the share function.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-22 10:09:28 +00:00
kfraser@localhost.localdomain b77e35477f [XENOPROFILE] Update xenoprof linux side patch following Renato's comment.
- compilation fix when CONFIG_OPROFILE=m with minor clean up
 - don't export xenoprof_is_primary.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-22 09:51:20 +00:00
kfraser@localhost.localdomain 17bdaf4a74 [XENOPROF] Make xenoprof of linux side arch generic with some bug fixes.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-22 09:50:37 +00:00
kfraser@localhost.localdomain a832c0ef5b [XENOPROFILE] Split linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c into
linux-2.6-xen-sparse/drivers/xen/xenoprof/xenoprofile.c
without code changes except slight adjustment to compile.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-22 09:49:55 +00:00
kfraser@localhost.localdomain c621e4b40d [XENOPROFILE] Replace x86 specific code in xen/common/xenoprof.c
- replace nmi_ prefix with xenoprof_arch_ prefix
 - move config_counter to xen/arch/x86/oprofile/xenoprof.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-22 09:48:42 +00:00
kfraser@localhost.localdomain 7ecfc1cfff [XENOPROFILE] Move code under xen/arch/x86/oprofile to xen/common.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-22 09:35:50 +00:00
kfraser@localhost.localdomain d46c9ce0d7 [HVM] Reworked interrupt distribution logic.
TODO:
 1. Fix IO-APIC ID to not conflict with LAPIC IDS.
 2. Fix i8259 device model (seems to work already though!).
 3. Add INTSRC overrides in MPBIOS and ACPI tables so
    that PCI legacy IRQ routing always ends up at an
    IO-APIC input with level trigger. Restricting link
    routing to {5,6,10,11} and setting overrides for all
    four of those would work.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-21 19:22:25 +00:00
Ewan Mellor 3b724073d6 The legacy HTTP entry point for Xend remote access didn't hook the
dump operation for a domain, this patch adds it.

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2006-11-21 17:34:17 +00:00
kfraser@localhost.localdomain 3c15d72cac [XEN] Fix potential crash in grant-table code if
guest misbehaves and implicitly unmaps a PTE.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-21 16:14:53 +00:00
Ewan Mellor 2dd30a7333 Fix iptable handling when multiple addresses have been specified.
From Adrian Chadd <adrian@creative.net.au>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-21 15:03:09 +00:00
Ewan Mellor f90beca56e Added an xm console -q flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-21 11:21:20 +00:00
Ewan Mellor 50420def5b This is a refactored version of a previous patch that destroys external
devices' state when a VM configuration file is destroyed. Currently only
the vTPM device's state needs to be explicitly destroyed.
I am also surrounding the saving of the managed domain's configuration
with a try-catch.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-21 10:22:19 +00:00
Ewan Mellor 7443d72fde A small fix to the documentation to reflect recent changes to the
'cfgbootpolicy' command.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-21 10:21:00 +00:00
Ewan Mellor 32562d7bec There is a somewhat trivial issue with XendCheckpoint.py right now in
that it logs everything written to stderr by xc_save and xc_restore as
errors whereas in fact the vast majority of this output is
information/debug (and all actual errors are marked by the string ERROR:
at the start of the message) -- this is confusing to folks looking at
the logs and makes automated log analysis tricky.

Fix is to scan for the ERROR: string and log anything without it using
log.info instead.

Signed-off by: Simon Graham <Simon.Graham@stratus.com>
2006-11-21 10:19:01 +00:00
kfraser@localhost.localdomain 8bedf46beb [BLK] Handle block devices with more than 2^32 sectors.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-21 10:16:58 +00:00
kasai.takanori@jp.fujitsu.com 1dea421011 Add example of keyboard layout
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
2006-11-21 09:26:43 +00:00
Ewan Mellor a9df6cf30f Cleanup after the bootloader even if the domain building fails.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-20 16:59:07 +00:00
Tim Deegan e02da28f52 [XEN] Update shadow audit code.
Make the flag checks line up with the current flag propagation strategy.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-20 15:30:52 +00:00
Tim Deegan dbc3f2e602 Merge 2006-11-20 12:05:25 +00:00
Tim Deegan 95745c8182 [XEN] Remove write access to new PT before discarding old shadow.
This allows us to use the old pagetables's linear maps in our
remove-writeable-mappings heuristics, fixing the same crash that
cset 12339 did, but still letting us do fast revoke of writeable
mappings of toplevel pagetables.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-20 12:03:51 +00:00
kfraser@localhost.localdomain 8f97ebc65a [MINIOS] Delay enabling event delivery at start of day.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-11-20 10:33:35 +00:00
Jake Wires e92b61a44e [BLKTAP] fix race between ufe_ring and blk_ring in blktap.c
Signed-off-by: Jake Wires <jwires@xensource.com>
2006-11-16 18:47:28 -08:00
Alastair Tse edd64e7966 [XEND] Accomodate extra "devices" in SXP that do not have DevControllers
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-17 17:57:49 +00:00
Alastair Tse 13dde37355 [XEND] Revert changes in changeset 12328
Mistakenly reverted some fixes for rebooting, un-reverting.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-17 17:03:59 +00:00
Alastair Tse e1e7aa6e07 [XEND] Fix missing domains on domU reboot.
Fixed regression with rebooting domU caused by the change in handling
syncing state from Xen and Xend.

Added missing implementation for XendDomainInfo.unwatchVm() which
disappeared during a merge.

Added protection for console/vnc-port reading for managed domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-17 15:53:29 +00:00
kfraser@localhost.localdomain cc60b785f6 [LIBXC] Replace API uses of size_t with ulong.
Avoids possibility of different FILE_OFFSET_BITS defn.
across the interface.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-17 14:00:45 +00:00
kfraser@localhost.localdomain d5ae80a537 [XEN] Fix build. Mercurial ate my changeset fixups. :-(
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-17 12:13:24 +00:00
kfraser@localhost.localdomain 191a8478a9 [XEN] Restrict access to grant-mapping operations.
TLB flushing is not done strictly before notifying
the mappee -- this creates scope for multi-processor
mapping guests to attempt to abuse a stale mapping
on another VCPU.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-11-17 10:48:34 +00:00
kfraser@localhost.localdomain 329f3fcc6e [QEMU] rtl8139: Disallow chaining above 64K
As it stands the 8139C+ TX chaining is only bounded by realloc failure.
This is contrary to how the real hardware operates.  It also has DoS
potential when ioemu runs in dom0.

This patch makes any attempt to chain a frame beyond 64K fail
immediately.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-11-17 10:34:08 +00:00
kfraser@localhost.localdomain 9713e41894 [LINUX] Add process profiling hook to timer ISR.
Signed-off-by: Rik van Riel <riel@redhat.com>
2006-11-17 10:32:57 +00:00
kfraser@localhost.localdomain 5db7537d23 HVM cleanups:
1) make vmx/svm time functions hvm common, since they are actually the same.
2) move hvm_send_assist_req from platform.c to hvm.c.
2) rename VMX MSR context switch functions to make them more readable.
3) misc coding style clean ups.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-11-17 10:29:08 +00:00
kfraser@localhost.localdomain 9fd9787b0e [HVMLOADER][VTPM] Add support for a TCG ACPI table.
The ACPI table is generated if the probing for the TIS interface
succeeds. I cleaned up the ACPI signatures in acpi2_0.h to be more
readable.

The specification for the layout of these ACPI tables can be found here:
https://www.trustedcomputinggroup.org/groups/server/TCG_ACPIGeneralSpecification_1-00_1-00_FINAL.pdf

Extensions to the Bochs BIOS that use these ACPI extensions will follow.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-17 10:24:22 +00:00
kfraser@localhost.localdomain 00eca9c7d1 [OPROFILE] Add support for core and core2 chips.
Tested on Woodcrest  processors.  Requires Oprofile 0.9.2.

Signed-off-by: Andrew Theurer <habanero@us.ibm.com>
2006-11-17 10:05:12 +00:00
kfraser@localhost.localdomain de6e26cec4 [HVMLOADEr] Reserve MMIO 0xa0000 to 0xc0000 in ACPI dsdt.
Avoids possible vga driver loading problem in HVM Windows guest.
Also fixes a Makefile bug in hvmloader directory.

Signed-off-by: Qing He <qing.he@intel.com>
2006-11-17 10:02:54 +00:00
kfraser@localhost.localdomain 9f941deb84 [TOOLS] Provide common LFS CFLAGS/LDFLAGS additions in Rules.mk.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-17 09:54:48 +00:00
kfraser@localhost.localdomain 4fa75a7c3b [MINIOS] Refactor spinlock header for multi-arch support.
I separated the spinlock parts special to the x86 architecture and
moved these to include/x86/arch_spinlock.h. The common code is now in
include/spinlock.h.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2006-11-17 09:18:28 +00:00
kfraser@localhost.localdomain 5d3a4a3858 [MINIOS] Event channel hypercall update for 64-bit guests.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-11-17 09:16:51 +00:00
kfraser@localhost.localdomain 7d58e87410 [MINIOS] Move initialisation of events (masking event channels)
earlier during the boot process. Otherwise 64bit guests would
sometimes crash.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-11-17 09:16:27 +00:00
kfraser@localhost.localdomain b38e0f65a8 [XEN] Add missing #include.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-16 18:29:06 +00:00
kfraser@localhost.localdomain 0464e78ebb [XEN] Scheduling hypercalls defer entry to the scheduler to softirq
context.

This avoids entering the scheduler with outstanding multicall state
and also happens to simplify the x86 entry protocol to the scheduler
hypercall (since we do not need to preset the return code).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-16 18:28:05 +00:00
Tim Deegan 97ae5e751d [HVM] Decouple the RTC from the PIT periodic timer
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-16 17:07:23 +00:00
Tim Deegan b6d015a8fc [XEN] Remove redundant calls to check_for_early_unshadow()
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-16 15:20:05 +00:00
Alastair Tse 90dfddafb5 [XEND] Fix PCI configuration parsing and SXP output
PCI configuration is formatted differently from other device
configurations because of the requirement that all pci devices need to
be present when it is initialised.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-16 13:49:05 +00:00
kasai.takanori@jp.fujitsu.com 654de638ac Add to select keyboard layout
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
2006-11-16 13:13:55 +00:00
Ewan Mellor a948d5c0c0 Fix clobbering bug when hde is specified; QEMU only supports up to hdd, but
hde is accepted and writes off the end of some tables.

From Hiromichi Itou <ito@begi.net>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-16 11:11:17 +00:00