Commit Graph
20990 Commits
Author SHA1 Message Date
Keir Fraser 4aee22650c Update Xen version to 4.0.0-rc5 4.0.0-rc5 2010-03-01 16:50:26 +00:00
Keir Fraser da1a6632f5 Revert C/S 20966 "Disable memory mapping warnings when stub domain is used."
It was ealier resolved by C/S 20720 and C/S 20751.
This fix was backported to xen-3.4-testing.

Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
2010-03-01 12:00:11 +00:00
Keir Fraser b1c29c92ae Revert 20954:b4041e7bbe1b "paging_domctl: Add missing breaks in switch stmt"
This fixed a fairly innocuous bug (OP_ENABLE/OP_OFF both don't work
properly) but unmasked a much nastier one (turning off shadow mode on
a PV guest crashes the hypervisor).

So, for now, we pick the less of two evils. We don't really much rely
on OP_ENABLE/OP_OFF anyway, as it happens.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-26 17:09:50 +00:00
Keir Fraser be8428d88c x86: fix number of array elements calculation in
XEN_DOMCTL_getpageframeinfo3 handler

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-02-26 14:06:16 +00:00
Keir Fraser 22b8b49c2b ACPI S3: fix S3 resume fail on system w/ msi capable hpet
Don't re-allocate memory for irq_channel which will cause a BUG_ON in
hpet_msi_write, and make sure hpet_setup_msi_irq() executed during S3
resuming.

Signed-off-by: Wei Gang <gang.wei@intel.com>
2010-02-26 14:05:32 +00:00
Keir Fraser 02ea486f8e x86_32: Fix build after 20983:94535cc63835
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-26 08:13:02 +00:00
Keir Fraser 387d256110 x86 numa: Fix post-boot ACPI SLIT accesses.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-02-25 21:03:26 +00:00
Keir Fraser 696713c282 x86 numa: Fix i386 to not do bogus mfn_to_virt(alloc_boot_pages(...))
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-02-25 21:00:54 +00:00
Keir Fraser 515a6e93aa ACPI: workaround for S3 fail in two facs tables case
Some legacy BIOS which support ACPI2.0+ may expose two FACS tables via
both FADT->FIRMWARE_CTRL and FADT->X_FIRMWARE_CTRL, but only lookup S3
waking_vector in the first one.

Signed-off-by: Wei Gang <gang.wei@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-25 20:56:43 +00:00
Keir Fraser d421338ccc VT-d: Fix ia64 build for 20974:3b475d9ed6b5
This patch fixes the following error on ia64:
  iommu.c: In function 'init_vtd_hw':
  iommu.c:1831: error: 'nr_ioapics' undeclared (first use in this
  function)

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2010-02-25 11:54:19 +00:00
Keir Fraser 039950d904 libxc: Pre-zero argument structures for map/unmap_pirq operations.
From: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-25 11:52:23 +00:00
Keir Fraser e1ea3ce4f2 x86: allow SRAT to be used on 32-bit systems with memory beyond 4G
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-02-24 20:27:56 +00:00
Keir Fraser ec619d3c3e x86: Fix build error after c/s 20969:8cb6e7eff2ba
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-24 20:26:08 +00:00
Keir Fraser 80b4a3ebc3 libxc: Fix cpuid() inline asm.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-24 18:48:54 +00:00
Keir Fraser cd341a3465 Provide a variant of __RING_SIZE() that is an integer constant
expression

Without that, gcc 4.5 won't compile (at least) netfront, where this is
being used to specify array sizes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-02-24 11:03:56 +00:00
Keir Fraser 1afe671e3a vtd: interrupt remapping: be more defensive
1) A buggy BIOS may not report IOAPIC in DRHD. Currently we still try
to enable IR while the IOAPIC RTEs are still in non-remappable format
and the host would hang. The patch detects this case and will not try
to enable IR.

2) Currently HPET's MSI mode doesn't work if IR is enabled because we
have no code to allocate IRTE for it. Luckily this HW configuration is
rather rarely at present, we can just work it around by only using
HPET's IOAPIC mode for now.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2010-02-24 10:59:37 +00:00
Keir Fraser a2fa1e23d0 sched_credit: Reduce is_urgent flag check to a WARN_ON.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-24 10:58:03 +00:00
Keir Fraser 25a63390b9 cpuidle: Small fix to urgent_count update logic.
From: Ke Yu <ke.yu@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-24 10:57:24 +00:00
Keir Fraser e54b0e627e [IA64] Support preemption in multicall
After 19946:91407452cdb6, preemption in multicall may happen while HVM
domains are running. It cause hypervisor's panic on ia64.
This patch implements it in the same way to x86.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2010-02-24 10:47:34 +00:00
Keir Fraser d8f8f35470 xm: Show usage message of xm commands
The following commands don't show an usage message even if we give
a wrong option to the commands.

 - xm block-list
 - xm network-list
 - xm network2-list
 - xm vtpm-list
 - xm pci-list
 - xm scsi-list

e.g.
 # xm block-list --xxx vm1
 Error: option --xxx not recognized

This patch shows the usage message of the commands.

e.g.
 # xm block-list --xxx vm1
 Error: option --xxx not recognized
 Usage: xm block-list <Domain> [--long]
 List virtual block devices for a domain.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2010-02-24 10:46:49 +00:00
Keir Fraser 5040f46e36 x86: Generalise BUGFRAME_dump mechanism to allow polled UART irq to
get proper regs argument.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-24 10:44:30 +00:00
Keir Fraser 078a073a6c xend: notify xenpv device model that console info is ready
Sometimes PV domain with vfb doesn't boot up. /sbin/kudzu is stuck.
After investigation, I've found that the evtchn for console is not
bound at all.

Normal sequence of evtchn initialization in qemu-dm for xenpv is:
1) watch xenstore backpath (/local/domain/0/backend/console/<domid>/0)
2) read console info (/local/domain/<domid>/console/{type, ring-ref,
port..=
})
3) bind the evtchn to the port.

But in some case, xend writes to the backpath before the console info
is prepared, and never write to the backpath again. So the qemu-dm
fails at 2) and never reach to 3).

When this happens, manually xenstore-write command on Domain-0
resumes the guest.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2010-02-24 09:38:35 +00:00
Keir Fraser 79e0b9479d python: Don't install anything directly under /usr/share
Signed-off-by: Guillaume Rousse <Guillaume.Rousse@inria.fr>
2010-02-22 18:47:22 +00:00
Keir Fraser 9a6ad742e6 Disable memory mapping warnings when stub domain is used.
Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
2010-02-22 18:46:09 +00:00
Keir Fraser 022cf55cf1 hvmloader: Replace unportable usage of GNU head with portable awk.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-22 18:42:50 +00:00
Keir Fraser 5e1a91b3cb [IA64] Support grant_table v2 for XENMAPSPACE_grant_table
This patch is ia64 counter part of 20281:95ea2052b41b.
This fixes the issue that HVM domains with PV-on-HVM drivers panic.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2010-02-22 10:08:10 +00:00
Keir Fraser a64e08899b Fix blktap2 test in xen-hotplug-cleanup
The blktap2 test in xen-hotplug-cleanup was not quite right, causing
orphaned /vm/<uuid>/device node in xenstore.  Attempt to reattach the
device failed:

xen53: # xm block-attach 0 file:/tmp/d0 /dev/xvdp r
xen53: # xm block-detach 0 /dev/xvdp
xen53: # xenstore-ls /vm/00000000-0000-0000-0000-000000000000/device
vbd =3D ""
 51952 =3D ""
  frontend =3D "/local/domain/0/device/vbd/51952"
  frontend-id =3D "0"
  backend-id =3D "0"
  backend =3D "/local/domain/0/backend/vbd/0/51952"
xen53: # xm block-attach 0 file:/tmp/d0 /dev/xvdp r
Error: Device /dev/xvdp (51952, vbd) is already connected.
Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode>
[BackDomain]

From: Jim Fehlig <jfehlig@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-22 10:07:27 +00:00
Keir Fraser d900060b28 Fix for fs-backend crash when xend was not started after system boot.
Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
2010-02-22 10:06:21 +00:00
Keir Fraser 414391cea6 pv-on-hvm: Fix unplug logic
Add the missing part for the dev_unplug parameter in r20847

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2010-02-22 10:05:40 +00:00
Keir Fraser b0e6d9b53a hvmloader: fix vgatype detecting issue
When graphics card is assigned to a guest as a secondary VGA,
without gfx_passthru and emulated VGA is the primary VGA,
hvmloader misreads gfx_passthru is specified if VGA device is
found after the emulated VGA.

This patch fix this issue. If emulated VGA is found, hvmloader
preserves it and loads vgabios of the emulated VGA.

Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
2010-02-22 10:04:22 +00:00
Keir Fraser 8a5761d2b7 tmem: Quieten noisy printk in non-debug build
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-22 10:02:17 +00:00
Keir Fraser b199171152 Update QEMU_TAG to e5d14857cd67490bf956d97c8888c0be95ed3f78 2010-02-22 10:00:59 +00:00
Keir Fraser fa2959b21f xm: Fix xm network-list for XenAPI
When I use XenAPI, MAC addresses are not shown by xm network-list.
MAC addresses are shown by this patch.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2010-02-22 10:00:24 +00:00
Keir Fraser 15ce5466e1 paging: Remove noisy printk
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
2010-02-22 09:58:48 +00:00
Keir Fraser 533795e777 tmem: When failing allocs from "midsize alloc zone", try the tmem
pools rather than fail outright.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-17 15:54:40 +00:00
Keir Fraser aa59837d46 paging_domctl: Add missing breaks in switch stmt.
From: Tim Deegan <Tim.Deegan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-17 12:11:13 +00:00
Keir Fraser f0f775cad1 Mask AMD CPUID masks in software before writing them to the MSRs
Mask AMD CPUID masks in software before writing them to the MSRs.
Setting bits in the CPUID mask MSR that are not set in the unmasked
CPUID response can cause those bits to be set in the masked response.
Avoid that by explicitly masking in software.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
2010-02-17 12:05:45 +00:00
Keir Fraser 86fd4176f4 x86/mcheck: do not blindly de-reference dom0 et al
Since machine checks and CMCIs can happen before Dom0 even gets
constructed, the handlers of these events have to avoid de-referencing
respective pointers without checking.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-02-17 12:04:50 +00:00
Keir Fraser ae319f4718 Added tag 4.0.0-rc4 for changeset 912295f1b1f3 2010-02-16 18:11:17 +00:00
Keir Fraser 5b46a059dc Update Xen version to 4.0.0-rc4 4.0.0-rc4 2010-02-16 18:11:04 +00:00
Keir Fraser fa27cf2dac Added tag 4.0.0-rc3 for changeset 7d565d58f498 2010-02-16 11:55:21 +00:00
Keir Fraser 994bda1f88 Update Xen version to 4.0.0-rc3 4.0.0-rc3 2010-02-16 11:55:18 +00:00
Keir Fraser 79f5cb24ab hotplug: ignore xenstore-read error
The failure to read "backend/tap/<domid>/*" in the xenstore is a usual
case since the domain is gone after xenstore-ls command is executed.
The error should be ignored.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2010-02-16 09:28:39 +00:00
Keir Fraser 8a85ee5b55 cpuidle: do not enter deep C state if there is urgent VCPU
when VCPU is polling on event channel, it usually has urgent task
running, e.g. spin_lock, in this case, it is better for cpuidle driver
not to enter deep C state.

This patch fix the issue that SLES 11 SP1 domain0 hangs in the box of
large number of CPUs (>= 64 CPUs).

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Tian Kevin <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-16 09:27:45 +00:00
Keir Fraser 82dc4c9fd8 When tmem is enabled, reserve a fraction of memory
for allocations of 0<order<9 to avoid fragmentation
issues.

Signed-off by: Dan Magenheimer <dan.magenheimer@oracle.com>
2010-02-15 17:54:04 +00:00
Keir Fraser 1b79179e63 If the 'sched' parameter is unrecognized, choose the first scheduler
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
2010-02-15 17:49:14 +00:00
Keir Fraser e8918e36f9 xend: Remove redundant 'name' from LEGACY_CFG_TYPES and LEGACY_XENSTORE_VM_PARAMS
Two 'name's are defined in LEGACY_CFG_TYPES of XendConfig.py.
LEGACY_XENSTORE_VM_PARAMS also is same.
This patch removes redundant 'name's.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2010-02-15 08:19:07 +00:00
Keir Fraser ffd2932a60 xenpaging: Small code style cleanups
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-02-15 08:18:14 +00:00
Keir Fraser 7527c26d47 Fix a small bug about HVM_MAX_VCPUS related array
Currently it doesn't block running, anyway, it better fix the small
bug considering if in the future HVM_MAX_VCPUS will not necessarily be
8x value.

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>=
2010-02-15 08:15:08 +00:00
Keir Fraser 819de76727 hvmloader: Fix an ACPI asl bug.
Fix an ACPI asl bug by explicitly convert PRS to buffer, otherwise PRS
would be parsed as integer if less than 32/64 bits (according to ACPI
1.0 or 2.0).

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
2010-02-15 08:14:21 +00:00