aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update Xen version for 3.4.0-rc23.4.0-rc2Keir Fraser2009-04-162-1/+2
|
* cpuidle: Fix PV RTC I/O port access hookKeir Fraser2009-04-161-4/+6
| | | | | | Call hook before writing to I/O ports. Only hook single-byte writes. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* cpuidle: Enable hpet broadcast by defaultKeir Fraser2009-04-154-6/+91
| | | | | | | | And stop legacy hpet broadcast and limit max C-state to shallower state if RTC interrupts are enabled. Signed-off-by: Wei Gang <gang.wei@intel.com> Signed-off-by: Tian Kevin <kevin.tian@intel.com>
* passthrough: allow pt_bind_irq for msi updateKeir Fraser2009-04-151-5/+16
| | | | | | | | | | | | | Extend pt_bind_irq to handle the update of msi guest vector and flag. Unbind and rebind using separate hypercalls may not be viable sometime. For example, the guest may update MSI address/data on fly without disabling it first (e.g. change delivery/destination), implement these updates in such a way may result in interrupt loss. Signed-off-by: Qing He <qing.he@intel.com>
* xend: serialise domain restart threadsKeir Fraser2009-04-151-1/+5
| | | | | | | | I observed from xend.log that several domain restart threads run simultaneously. This patch make it singleton. Without this, several coredump of a domain might be created. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* xend: fix avoidance to restart domain on crashKeir Fraser2009-04-151-15/+7
| | | | | | | | | | | | | | | | If a qemu-dm dies immediately (probably by wrong setting), xend repeats to restart a domain so many times.=20 That causes system overload. There is already a logic to avoid too early restarting, however, it might not work. Since xenstore entry 'xend/previous_restart_time' is volatile. XendDomainInfo.destroy() which removes the entry from xenstore is called in some places. Also, this patch prevents too early restarting even at the first domain creation. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* x86: Disable cpuidle by default unless hpet broadcast is available.Keir Fraser2009-04-152-3/+12
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Support discontiguous sets of multiboot modules.Keir Fraser2009-04-141-6/+13
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* New option conring_size= to allow larger console ring.Keir Fraser2009-04-144-19/+56
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* minios: fix a memory corruption in blkfrontKeir Fraser2009-04-141-5/+7
| | | | | | | | | The corruption happens every time we pass a sector aligned buffer (instead of a page aligned buffer) to blkfront_aio. To trigger the COW we have to write at least a byte to each page of the buffer, but we must be careful not to overwrite useful content. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* Fix cpufreq HW-ALL coordination handleKeir Fraser2009-04-145-59/+124
| | | | | | | | | | | | Currently cpufreq HW-ALL coordination is handled same way as SW-ALL. However, SW-ALL will bring more IPIs which is bad for cpuidle. This patch implement HW-ALL coordination handled in different way from SW-ALL, for the sake of performance and reduce IPIs. We also suspend/resume HW-ALL dbs timer for idle. Signed-off-by: Yu, Ke <ke.yu@intel.com> Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com> Signed-off-by: Tian, Kevin <kevin.tian@intel.com>
* tools: dom0 iptables rule ordering changeKeir Fraser2009-04-141-6/+9
| | | | | | | | | | | | | | | | | | | This patch makes two small changes to dom0 iptables rules that permit (and revoke) domU network access. First: Currently, a rule intended to allow domU network access is appended to the end of the FORWARD chain, where it can be preempted by other =20 rules. This patch causes the rule to be inserted at the top, where it's more likely to have the intended effect. Second: In some cases (e.g. Fedora 9's default iptables configuration), the first rule alone is insufficient to permit two-way packet flow. This patch adds a second rule to the FORWARD chain that permits replies to domU network requests to reach the domU vif. Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
* [XSM] missing entries to xsm_fixup_opsKeir Fraser2009-04-141-0/+2
| | | | | | | This patch adds the missing presence checks for the pm_op and get_pmstat hooks in xsm_fixup_ops. Signed-off-by: George S. Coker, II <gscoker@alpha.ncsc.mil>
* merge with xen-unstable.hgIsaku Yamahata2009-04-1447-506/+695
|\
| * Update Xen version for 3.4.0-rc2-preKeir Fraser2009-04-102-2/+1
| |
| * Added tag 3.4.0-rc1 for changeset d611d9ac6d02Keir Fraser2009-04-101-0/+1
| |
| * Update Xen version for 3.4.0-rc13.4.0-rc1Keir Fraser2009-04-102-1/+2
| |
| * x86 acpi: Quieten boot messages regarding power modesKeir Fraser2009-04-101-1/+1
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * Disable debug build by default.Keir Fraser2009-04-092-3/+3
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * xenpmd: Explicit build rule.Keir Fraser2009-04-091-0/+3
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * xend: Fix xm pci-attach/detach for inactive managed domainsKeir Fraser2009-04-091-45/+103
| | | | | | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
| * sbdf2devicepath: converts SBDF into device path.Keir Fraser2009-04-091-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | '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>
| * xend: fix a typo in pciif so PciController.unwatchAerState() worksKeir Fraser2009-04-091-2/+2
| | | | | | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
| * x86 mce: fix a few possible issuesKeir Fraser2009-04-096-261/+337
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * tools: Always use sane upstream (`native') python pathsKeir Fraser2009-04-0818-94/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * restore: sign extend p2m when restoring on a host with pfn width <Keir Fraser2009-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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>
| * x86 hvm: Remove the extra IS_PRIV_FOR() checks I added to do_hvm_op().Keir Fraser2009-04-081-16/+0
| | | | | | | | | | | | Actually this is already done by rcu_lock_target_domain_by_id(). Oops. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * x86 hvm: Fix privilege checking in do_hvm_op() hypercall.Keir Fraser2009-04-081-6/+27
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * x86 mce: Small cleanups to machine-check hypercall handling.Keir Fraser2009-04-081-22/+9
| | | | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com> G: Enter commit message. Lines beginning with 'HG:' are removed.
| * Avoid deadlocks on domctl_lock when pausing domains/vcpus.Keir Fraser2009-04-084-9/+43
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * network-nat: add domain info for nat-dhcpdKeir Fraser2009-04-081-1/+5
| | | | | | | | Signed-off-by: Wei Kong <weikong.cn@gmail.com>
| * xend: Give domain-ID 0 to xc.test_assign_deviceKeir Fraser2009-04-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * xend: fix c/s 19510Keir Fraser2009-04-081-4/+4
| | | | | | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
| * tools: fix python installationKeir Fraser2009-04-072-4/+2
| | | | | | | | | | | | | | | | | | | | | | 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>
| * xm: handle error in auxbin gracefullyKeir Fraser2009-04-071-1/+5
| | | | | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
| * xentrace: Only trace 64b vmexit when in long mode.Keir Fraser2009-04-072-6/+16
| | | | | | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
| * xentrace: Trace CR accesses in hvm emulator.Keir Fraser2009-04-071-0/+3
| | | | | | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
| * cpufreq: align dbs timer for better package C state residencyKeir Fraser2009-04-071-1/+2
| | | | | | | | Signed-off-by: Yu Ke <ke.yu@intel.com>
| * xm, xend: Replace "vslt" with "vslot"Keir Fraser2009-04-076-47/+47
| | | | | | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
| * xend: fix leak of /local/domain/* in xenstoreKeir Fraser2009-04-071-1/+7
| | | | | | | | | | | | | | 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>
* | merge with xen-unstable.hgIsaku Yamahata2009-04-0797-1232/+1756
|\|
| * tools/misc: Remove some obsolete scripts.Keir Fraser2009-04-064-125/+1
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * Revert c/s 19504 -- uses an obsolete sysfs interface.Keir Fraser2009-04-063-80/+2
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * x86: Make special TSC handling (assuming all TSCs tick at exact sameKeir Fraser2009-04-061-41/+70
| | | | | | | | | | | | | | | | rate) dependent on a command-line option 'consistent_tscs'. Also clean up rendezvous logic. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * x86_64: explicitly zero CR[1] in getvcpucontext for guests with no user PTKeir Fraser2009-04-061-3/+3
| | | | | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
| * tools: Add device-path command to convert SBDF into device path.Keir Fraser2009-04-063-2/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | '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>
| * xend: Use AUTO_PHP_SLOT where it ought to beKeir Fraser2009-04-061-2/+2
| | | | | | | | Signed-off-by: Simon Horman <horms@vereg.net.au>
| * xenpm: Set scheduler vcpu_migration_delay by xenpmKeir Fraser2009-04-0610-0/+145
| | | | | | | | | | Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
| * x86 mce: Small fix for polling/CMCI race conditions.Keir Fraser2009-04-064-8/+21
| | | | | | | | | | | | | | | | | | 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>
| * Move logic for avoiding limited idle quantum into credit scheduler.Keir Fraser2009-04-022-6/+5
| | | | | | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>