Commit Graph
19539 Commits
Author SHA1 Message Date
Isaku Yamahata f008a3fb0a merge with xen-unstable.hg 2009-04-14 14:04:58 +09:00
Keir Fraser 8687956ca3 Update Xen version for 3.4.0-rc2-pre 2009-04-10 06:58:04 +01:00
Keir Fraser f90e705541 Added tag 3.4.0-rc1 for changeset d611d9ac6d02 2009-04-10 06:57:49 +01:00
Keir Fraser f88b903d9f Update Xen version for 3.4.0-rc1 3.4.0-rc1 2009-04-10 06:56:45 +01:00
Keir Fraser 3387588b84 x86 acpi: Quieten boot messages regarding power modes
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-10 06:56:23 +01:00
Keir Fraser 7333c70795 Disable debug build by default.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-09 17:31:35 +01:00
Keir Fraser 6c9ee00b10 xenpmd: Explicit build rule.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-09 17:22:44 +01:00
Keir Fraser da31cad930 xend: Fix xm pci-attach/detach for inactive managed domains
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2009-04-09 11:35:14 +01:00
Keir Fraser 35761fcc8b sbdf2devicepath: converts SBDF into device path.
'SBDF' format is "[SEG#:]BUS#:DEV#.FUNC#"
  ex) 0000:0a:1f.3
Device path format is "HID[:UID]-DEV#.FUNC#[-DEV#.FUNC#[...]]"
  ex) PNP0A08:0-2.0-0.0

The command can be executed as follows.

# sbdf2devicepath 0a:1f.3
PNP0A08:0-2.0-0.0

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
2009-04-09 09:59:16 +01:00
Keir Fraser 710cd6ce97 xend: fix a typo in pciif so PciController.unwatchAerState() works
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2009-04-09 08:45:32 +01:00
Keir Fraser 7d20f72ca3 x86 mce: fix a few possible issues
Do not share synchronization variables between the trap handler and
the softirq handler, as this will cause problems. Abstract the
synchronization bits into functions. Make the synchronization code
aware of a panic, so that spinning with interrupts disabled is
avoided.

To avoid problems with MCEs happening while we're doing recovery
actions in the softirq handler, implement a deferred list of telemetry
structures, using the mctelem interfaces. Thist list will get updated
atomically, so any additional MCEs will not cause error telemetry to
be missed or not handled.

Signed-off-by: Frank van der Linden <frank.vanderlinden@sun.com>
Signed-off-by: Liping Ke <liping.ke@intel.com>
Signed-off-by: Yunhong Jiang<yunhong.jiang@intel.com>
2009-04-09 08:41:28 +01:00
Keir Fraser 11e1149fe0 tools: Always use sane upstream (`native') python paths
Previously, by default we would install our python modules into
/usr/lib/python/xen, for example /usr/lib/python/xen/__init__.py.
Upstream python's standard install location (a) includes the Python
version number and (b) puts things in site-packages by default.

Our best conjecture for the reason for this was an attempt to make the
installs portable between different python versions.  However, that
doesn't work because compiled python modules (.pyc), and C python
extensions corresponding to one version of python, are not compatible
across different versions of python.

This is why upstream include the version number.

site-packages is the standard location for locally-installed packages
and is automatically included on the python search path.

In this change, we abandon our own unusual python path setup:

 * Invoke setup.py in an entirely standard manner.  We pass
   PREFIX and DESTDIR using the appropriate options provided by
   setup.py for those purposes (adding them to setup.py calls
   which were previously lacking them).

 * Since the installation locations are now on the standard
   python path, we no longer need to add anything to the path
   in any of our python utilities.  Therefore remove all that
   code from every python script.  (Many of these scripts
   unconditionally added /usr/lib/python and /usr/lib64/python which
   is wrong even in the old world.)

 * There is no longer any special `Xen python path'.  xen-python-path
   is no longer needed.  It is no longer called by anything in our
   tree.  However since out-of-tree callers may still invoke it, we
   retain it.  It now prints a fixed string referring to a directory
   which does not to exist; callers (who use it to augment their
   python path) will thus add a nonexistent directory to their python
   path which is harmless.

 * Remove various workarounds including use of setup.py --home
   (which is intended for something completely different).

 * Remove tests for the XEN_PYTHON_NATIVE_INSTALL build-time
   environment variable.  The new behaviour is the behaviour which we
   should have had if this variable had been set.  That is, it is now
   as if this variable was always set but also bugs in the resulting
   install have been fixed.

This should be a proper fix for the bug addressed by c/s 19515.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
2009-04-08 19:13:04 +01:00
Keir Fraser e4eff651ee restore: sign extend p2m when restoring on a host with pfn width <
guest pfn width

(i.e. 32on64 domain 0 and 64 bit guest domain).

Otherwise P2M entries which were INVALID_P2M_ENTRY
(==0xffffffffffffffff) become 0xffffffff after a migrate.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
2009-04-08 19:10:33 +01:00
Keir Fraser 75c3d290f1 x86 hvm: Remove the extra IS_PRIV_FOR() checks I added to do_hvm_op().
Actually this is already done by rcu_lock_target_domain_by_id(). Oops.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-08 14:43:12 +01:00
Keir Fraser 7e2b6626e8 x86 hvm: Fix privilege checking in do_hvm_op() hypercall.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-08 14:06:37 +01:00
Keir Fraser 2a75d8fdff x86 mce: Small cleanups to machine-check hypercall handling.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
G: Enter commit message.  Lines beginning with 'HG:' are removed.
2009-04-08 14:06:04 +01:00
Keir Fraser 2da0dfa1c3 Avoid deadlocks on domctl_lock when pausing domains/vcpus.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-08 13:48:35 +01:00
Keir Fraser 5c49f4e2b2 network-nat: add domain info for nat-dhcpd
Signed-off-by: Wei Kong <weikong.cn@gmail.com>
2009-04-08 13:18:22 +01:00
Keir Fraser ed85358827 xend: Give domain-ID 0 to xc.test_assign_device
When xend calls xc.test_assign_device, xend does not have to give
the domain-ID of a guest domain.
This patch gives domain-ID 0 to xc.test_assign_device.

The following methods give domain-ID 0 to xc.test_assign_device
currently.
 - setupDevice@xend/server/pciif.py
 - pciinfo@xend/XendNode.py

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2009-04-08 10:18:31 +01:00
Keir Fraser bd5e620a8b xend: fix c/s 19510
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2009-04-08 09:02:22 +01:00
Keir Fraser ca01c742be tools: fix python installation
attached patch lets python install the modules into
DESTDIR/PREFIX as before, but lets python search
the modules in PREFIX rather DESTDIR/PREFIX.

This prevents failures about not finding python modules
after files have been installed into PREFIX.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2009-04-07 14:37:35 +01:00
Keir Fraser bf70c78677 xm: handle error in auxbin gracefully
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2009-04-07 14:24:53 +01:00
Keir Fraser 6cc1002a77 xentrace: Only trace 64b vmexit when in long mode.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
2009-04-07 11:04:27 +01:00
Keir Fraser 104dbd4fd2 xentrace: Trace CR accesses in hvm emulator.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
2009-04-07 10:57:11 +01:00
Keir Fraser af74e3a15a cpufreq: align dbs timer for better package C state residency
Signed-off-by: Yu Ke <ke.yu@intel.com>
2009-04-07 10:43:27 +01:00
Keir Fraser b8f2311b23 xm, xend: Replace "vslt" with "vslot"
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2009-04-07 10:15:25 +01:00
Keir Fraser 94bacaf76d xend: fix leak of /local/domain/* in xenstore
xenwatch thread _storeChanged() may create /local/domain/<domid>
entries in xenstore even after the domain has shutdown.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2009-04-07 10:14:35 +01:00
Isaku Yamahata 58d538d2f6 merge with xen-unstable.hg 2009-04-07 11:32:24 +09:00
Isaku Yamahata 943b649d6e [IA64] Fix unwind info of fast_hypercall
This patch fixes unwind info of fast_hypercall.
fast_hypercall uses r32->r35 without alloc instruction.
In the case of this, the unwind info move over a little.

With my patch, I confirmed the stack trace worked fine.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2009-04-07 11:29:44 +09:00
Keir Fraser e6e6785c99 tools/misc: Remove some obsolete scripts.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-06 21:12:33 +01:00
Keir Fraser 1a4c39bf21 Revert c/s 19504 -- uses an obsolete sysfs interface.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-06 20:56:02 +01:00
Keir Fraser 75a5f05d44 x86: Make special TSC handling (assuming all TSCs tick at exact same
rate) dependent on a command-line option 'consistent_tscs'.

Also clean up rendezvous logic.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-06 14:26:29 +01:00
Keir Fraser a5428a4b5f x86_64: explicitly zero CR[1] in getvcpucontext for guests with no user PT
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
2009-04-06 13:56:35 +01:00
Keir Fraser fdd33002ee tools: Add device-path command to convert SBDF into device path.
'SBDF' format is "[SEG#:]BUS#:DEV#.FUNC#"
  ex) 0000:0a:1f.3
Device path format is "HID[:UID]-DEV#.FUNC#[-DEV#.FUNC#[...]]"
  ex) PNP0A08:0-2.0-0.0

The command can be executed as follows.

# device_path 0a:1f.3
PNP0A08:0-2.0-0.0

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
2009-04-06 13:52:56 +01:00
Keir Fraser b812d1ddc4 xend: Use AUTO_PHP_SLOT where it ought to be
Signed-off-by: Simon Horman <horms@vereg.net.au>
2009-04-06 13:49:59 +01:00
Keir Fraser 9d82166018 xenpm: Set scheduler vcpu_migration_delay by xenpm
Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
2009-04-06 13:49:16 +01:00
Keir Fraser 3e15c37e68 x86 mce: Small fix for polling/CMCI race conditions.
When CMCI happens very quickly, polling/CMCI processing path might
cross. For Intel CPUs which support CMCI, if the error bank has CMCI
capability, we'll disable poll on this bank.

Signed-off-by: Liping Ke <liping.ke@intel.com>
Signed-off-by: Yunhong Jiang<yunhong.jiang@intel.com>
2009-04-06 13:46:11 +01:00
Keir Fraser c806877d1b Move logic for avoiding limited idle quantum into credit scheduler.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-02 14:17:19 +01:00
Keir Fraser e295a5ce4b x86: imply 'noapic' from 'nolapic'
While in the comments to an earlier submitted (and already applied)
patch I claimed to have fixed the need to specify both "nolapic" and
"noapic" when "nolapic" alone should already have the intended effect,
this doesn't appear to be the case. Here are the missing bits.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2009-04-02 13:02:13 +01:00
Keir Fraser 1847d666d1 xm: allow space characters in a vscsi definition.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2009-04-02 12:40:44 +01:00
Keir Fraser ab438874b6 hvm: add ACPI power button for HVM
This patch adds the ACPI fixed hardware power button for HVM.
It enables a graceful shutdown of a guest OS by direction of Dom0.
(if a proper action for the power button is set inside the guest)

usage:
  xm trigger <Domain> power

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2009-04-02 12:40:09 +01:00
Keir Fraser 48fe42ec0b xenctx, ia64: fix compilation error.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2009-04-02 11:48:32 +01:00
Keir Fraser 0c29f97df0 network-bridge: Fix do_ifup in the case of ${bridge} != ${netdev}
On RHEL5.2, ifup ${bridge} fails if ${bridge} != ${netdev},
because RHEL5.2's ifup ${bridge} runs the following sequence:

1. Search CONFIG that has the same mac address of ${bridge}.=20
   ifcfg-${netdev} is found.
2. Run "ip link set dev ${netdev} up".
   # ${bridge} is expected.
3. Output "Failed to bring up ${netdev}."
   Because ${netdev} does not exist.

Thus, do_ifup() should not use ifup if ${bridge} != ${netdev}.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2009-04-02 11:48:10 +01:00
Isaku Yamahata 0ef3b21161 [IA64] ia64 counter part of 19376:9fc957e63f8d.
This patch is the ia64 counter part of 19376:9fc957e63f8d.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2009-04-02 19:43:16 +09:00
Keir Fraser 58740d22ab x86: A further fix to paging_log_dirty_op() -- do not unmap_domain_page(NULL)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-02 07:53:11 +01:00
Keir Fraser d3a7711f0c x86: hvm_*io_intercept() should only update p->count if X86EMUL_OKAY.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-01 16:20:30 +01:00
Keir Fraser ea78378d2c Only set scheduler quantum timer for non-idle VCPUs
This removes the last idle periodic timer in xen, and enhances the
idle average C state residency from two-digits ms  to three-digit ms.

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Tian Kevin <kevin.tian@intel.com>
2009-04-01 15:39:20 +01:00
Keir Fraser 885b76a5fb x86 hpet: two more fixes for c/s 19419
vector_channel[], as its name already says, is vector-, not
irq-indexed.

hpet_assign_irq() sits not only in the boot path, but also in the
resume one. Short of knowing why this is, simply checking whether a
vector was already assigned prevents leaking previously assigned ones.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2009-04-01 14:04:46 +01:00
Keir Fraser a21645e1df x86: paging_log_dirty_op() should take care with invalid log_dirty.top
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-01 13:49:35 +01:00
Keir Fraser db8811093e xend: Revert c/s 19436 -- fails with Python 2.3, and sock.close()
should suffice to shutdown a connection.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-01 13:17:34 +01:00