Commit Graph
18348 Commits
Author SHA1 Message Date
Keir Fraser 1824ecbfee Update Xen version for 3.3.0-rc6 3.3.0-rc6 2008-08-20 10:13:22 +01:00
Keir Fraser 6d0480fe26 domctl: ssidref is not initialized if !XSM_ENABLE
The ssidref in getdomaininfo() is not initialized when XSM_ENABLE is
not defined. So, xentop might display a wrong value of ssid.

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
2008-08-20 09:06:58 +01:00
Keir Fraser 5ead8cb7ed x86: APs enable x2APIC only when BSP did so.
Signed-off-by: Jun Nakajima <jun.nakajikma@intel.com>
2008-08-20 09:04:33 +01:00
Keir Fraser 97b6b26dad ioemu: Fix unmapping issue on hot-removing pass-thru device
Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
2008-08-20 09:02:15 +01:00
Keir Fraser 724fc2e33f x86 hvm: Another clarifying comment in the HVM address translation emulation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 19:45:27 +01:00
Keir Fraser aa6af210f6 x86 hvm: Add clarifying comments about clipping repeated string
instructions to 4096 iterations.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 18:52:04 +01:00
Keir Fraser 1e827f9eab x86 hvm: Build fix: param is paddr_t not ulong.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 18:47:01 +01:00
Keir Fraser 7e1f3a300f x86, hvm: Observe EFLAGS.DF when performing segmentation checks and
address translations on multi-iteration string instructions.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 15:57:19 +01:00
Keir Fraser 5dfe4aa4ee x86_emulate: Do not request emulation of REP instructions beyond the
point at which the index register (SI/DI) wraps. This can cause a
discontinuity in the address range accessed by the repeated
instruction.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 15:56:31 +01:00
Keir Fraser 154ef9e3cc vtd: Don't do FLR when we create domain or hotplug device into guest.
VT-d hot-plug is done in such a way:  1) xend sends 'pci-ins' command
to ioemu via xenstore; 2) ioemu creates pass-through device and raises
SCI to guest OS; guest OS loads device driver, and device driver
initializes the hot-plugged device; 3) xend does FLR. There is a race
condition about 2) and 3). If 3) runs slow, we have troubles. Thanks
for Yuji Shimada's locating the issues.

We can work around the issues by not doing FLR when we create domain
or hotplug device into guest, namely, we only do FLR when we destroy
domain or hotplug device from guest.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2008-08-19 10:51:41 +01:00
Keir Fraser d74b976c41 xend: fixes a typo in the PIF class of the Xen-API code.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2008-08-19 10:48:39 +01:00
Keir Fraser 613e3fc198 x86: update ioport_quirks_tbl[] for the proliant DL7xx
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
2008-08-18 10:47:54 +01:00
Keir Fraser 4ec6fe513f Update Xen version for 3.3.0-rc6-pre 2008-08-15 15:01:38 +01:00
Keir Fraser 49d134a02f Added tag 3.3.0-rc5 for changeset b4dba6a0e97cb6dd080fa566468e3cc972c34d7a 2008-08-15 15:01:04 +01:00
Keir Fraser f515506e57 Update Xen version for 3.3.0-rc5 3.3.0-rc5 2008-08-15 15:00:57 +01:00
Keir Fraser a532271d47 x86, hvm: Fix softtsc for AMD-V
The softtsc code for AMD does not update the ip; enabling it on AMD-V
results in the domain spinning on the RDTSC instruction. The patch is
against xen-unstable 18331.

Signed-off-by: John Byrne <john.l.byrne@hp.com>
2008-08-15 14:59:41 +01:00
Keir Fraser 202b0e0dc0 x86 shadow: Fix OOS typecounting.
From: Gianluca Guida <gianluca.guida@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-14 16:26:06 +01:00
Keir Fraser 006e7188d4 pv-grub: On x86_64, also build an x86_32 pv-grub
This requires suffixing obj directories and having grub compiled
outside sources.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-08-14 13:46:48 +01:00
Keir Fraser f6c2c609f7 Fix restore crash with certain guest memory sizes
This fixes a crash when restoring guests with certain memory sizes (eg
223MB).  The ROUNDUP in the call to memcpy, was the main offender, but
I didn't care for the inplace resizing of the p2m entries either.

Signed-off-by: Bruce Rogers <brogers@novell.com>
2008-08-14 10:18:08 +01:00
Keir Fraser 32b397b0b4 x86, shadow: Fix OOS on domain crash.
I couldn't reproduce the Nevada crash on my testbox, but this should
fix the first Xen crash that was seen in the Nevada HVM (bugzilla
#1322).

What I think most probably happened there is that the set_l2e call in
shadow_get_and_create_l1e() has tried to resync a page, but somehow we
weren't unable to remove the shadow (the real bug we should actually
look after). sh_resync() then removes the page from the OOS hash and
later in the page fault path we find the gw.l1mfn to be still OOS, so
we try to update the snapshot and the bug happens.

This should fix this and other unlikely (like sh_unsync() failing to
remove for hash collision the current gw.l1mfn) cases.

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
2008-08-14 10:14:32 +01:00
Isaku Yamahata 1882e02837 [ia64] remove the runtime warning when hvmop_set_mem_type is used.
remove the runtime warning when HVMOP_set_mem_type is used.
But the hypercall just returns -ENOSYS. It isn't implemented yet.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-08-14 11:00:35 +09:00
Isaku Yamahata baf225c88b merge with xen-unstable.hg 2008-08-13 22:22:21 +09:00
Keir Fraser 24ed79393d shadow: Fix BUILD_BUG_ON().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 13:54:17 +01:00
Keir Fraser f9307cbb49 MSI-X: enhancement
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
2008-08-13 13:45:39 +01:00
Keir Fraser 68c053e8a9 xend: Allow xenconsoled to be passed arguments at startup
Attached patch allows to pass arguments to xenconsoled
via XENCONSOLED_TRACE env. variable analogous to xenstored.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2008-08-13 13:42:30 +01:00
Keir Fraser 74f9ac9665 xend: Make sure that 'PV_kernel' config param is not blank when
assigning it to 'loader' param. This fixes a failure of 'xm create'
via xen-api.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
2008-08-13 13:40:38 +01:00
Keir Fraser e8c1df443f x86: Simplify arch_virq_is_global().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 13:39:40 +01:00
Keir Fraser f507885bc3 x86: Fix shadow code's handling of p2m superpage changes
When a p2m superpage entry is shattered, it's important not to
unshadow any parts of the 2MB region that are still there afterwards.
Otherwise shattering a superpage that contains the guest's top-level
pagetable will cause the guest to be killed.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
2008-08-13 12:13:59 +01:00
Keir Fraser c954127bc6 x86 shadow: Relax BUILD_BUG_ON() regarding struct sizes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 12:12:08 +01:00
Keir Fraser a87b010c67 x86, shadow, oos: Remove overzealous warning and simplify code.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 11:09:46 +01:00
Keir Fraser 15b16e24df x86 mcheck: mce_disabled is not __initdata: it's referenced on S3 resume
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 09:57:42 +01:00
Keir Fraser 06b01c320b vtd: Add checking on return value of init_vtd_hw()
This ensures correct actions will be taken if init_vtd_hw()
fails. Especially, when 'iommu=force' is used, Xen should not
boot if init_vtd_hw() fails.

Signed-off-by: Weidong Han <weidong.han@intel.com>
2008-08-13 09:56:15 +01:00
Isaku Yamahata f601278990 [IA64] fix vtlb flush
Live migration with uninitialized vcpu will crash xen by null pointer.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2008-08-13 13:18:06 +09:00
Keir Fraser 07cb2c22b5 Update Xen version for 3.3.0-rc5-pre 2008-08-12 10:23:34 +01:00
Keir Fraser 6862dd45a2 Added tag 3.3.0-rc4 for changeset 96d0a48e87ee46ba7b73e8c906a7e2e0baf60e2e 2008-08-12 10:23:02 +01:00
Keir Fraser b0988b2398 Update Xen version for 3.3.0-rc4 3.3.0-rc4 2008-08-12 10:22:53 +01:00
Keir Fraser 8712242693 xend/xenapi: Initialize a VLAN PIF's record with the MAC and MTU size
of the created network interface

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2008-08-11 16:51:02 +01:00
Keir Fraser f1c9b3b6c1 Add guide to using the kexec and kdump facility in xen.
Signed-off-by: Simon Horman <horms@verge.net.au>
2008-08-11 15:44:47 +01:00
Keir Fraser dea6d8b20c xend/xen-api: Have the VDI record return the security label
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2008-08-11 15:01:34 +01:00
Keir Fraser 03d1528a6a stubdom: for safety, tell lwip we use the heap in the event handler
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-08-11 15:00:06 +01:00
Keir Fraser 42b54bfe29 page scrub: Serialise softirq with a new lock.
Avoids holding up acquiring page_scrub_lock in free_domheap_pages().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-11 12:20:11 +01:00
Keir Fraser 3ca259a393 xend: Better support for legacy HVM config of ia64
On ia64, direct Linux boot is not supported, and 'Flash.fd' or
'guest_firmware.bin' has been used as a value of the 'kernel'
option. Cset:17016 ignores those strings and overrides them with
"/usr/lib/xen/boot/hvmloader".

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-11 11:27:40 +01:00
Keir Fraser b87e597231 Serialize scrubbing pages
I noticed that parallel scrubbing pages is not efficient
due to spinlock contention. (also memory bandwidth?)
Actually heap_lock becomes a bottleneck.

In my investigation, it often takes 1 millisec just to acquire
the lock on ia64 with 8cpus. It's very wasteful.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2008-08-11 11:18:50 +01:00
Keir Fraser c3eade2409 x86, xenoprof: Add Nehalem to list of ppro cores
Straight port from Linus's tree:

commit 4b9f12a3779c548b68bc9af7d94030868ad3aa1b
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Thu Jul 24 17:29:00 2008 -0700

    x86/oprofile/nmi_int: add Nehalem to list of ppro cores

    ..otherwise oprofile will fall back on that poor timer interrupt.

    Also replace the unreadable chain of if-statements with a
    "switch()"
    statement instead. It generates better code, and is a lot clearer.

    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Signed-off-by: Markus Armbruster <armbru@redhat.com>
2008-08-11 10:52:18 +01:00
Keir Fraser b904b98221 tools build: add cross-install to find the right "strip"
Signed-off-by: Aron Griffis <aron@hp.com>
2008-08-11 10:49:57 +01:00
Isaku Yamahata 570d530d68 merge with xen-unstable.hg 2008-08-11 11:04:52 +09:00
Isaku Yamahata b087eed994 [IA64] Print ACPI signature before overwriting it
We're printing out the ACPI table signature after we overwrite it
with "OEMx".  Let's print it out before so we know that the table was.
Also limit print to 4 chars so we don't get garbage output.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2008-08-11 10:59:39 +09:00
Keir Fraser a288bd4a0f x86: adjust placement of pause insn in _raw_spin_lock()
React to lock becoming available as quickly as possible.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2008-08-08 15:02:19 +01:00
Keir Fraser 79202307ef x86: also show event upcall mask when dumping guest state
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-08 15:00:01 +01:00
Keir Fraser c4d2da457c x86: Update guest timestamps on frequency change.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-08 12:08:09 +01:00