Commit Graph
19614 Commits
Author SHA1 Message Date
Keir Fraser 2e1b6a8dcc xentrace: Trace IRQs and entry/exit timestamps.
From: Dulloor <dulloor@gmail.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-05-19 02:08:01 +01:00
Keir Fraser f770d340f1 xend: adjust relocation buffer size
This can greatly improve ssl relocation performance (to about 1/3
compared with buffersize 1024).

Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
2009-05-19 01:50:00 +01:00
Keir Fraser 94c3a1b680 tools: clean up handling of xen config and scripts directories.
For now hardcode /etc w/o a prefix as there are hardcoded
config paths in the code which would break otherwise.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2009-05-19 01:48:18 +01:00
Keir Fraser 9528ca9f77 xend: solve issues with xm block-configure command.
In the case of inactive managed domains:
 The following error occurs currently.  We cannot change the
 configuration of the VBD by using xm block-configure.  Of course,
 using xm block-detach and xm block-attach instead of xm
 block-configure, we can change it. However, I'd like to change it by
 using xm block-configure.

In the case of active domains:
 Another problem occurs after a domain was rebooted.  Even if we
 change a configuration of a VBD in the domain by using xm
 block-configure, the configuration of the VBD is reverted to previous
 configuration after the domain was rebooted.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2009-05-19 01:37:19 +01:00
Keir Fraser fdaaa5fe16 xend: Avoid deprecation warnings with Python 2.6.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2009-05-19 01:34:34 +01:00
Keir Fraser f7a4f4101d x86, cpufreq: fix ondemand governor to take aperf/mperf feedback
APERF/MPERF MSRs provides feedback about actual freq in
eplased time, which could be different from requested freq by
governor. However currently ondemand governor only takes that
feedback at freq down path. We should do that for scale up too.

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
2009-05-19 01:31:26 +01:00
Keir Fraser 5bc663c759 ioemu: Export PREFIX variable to ioemu build environment.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2009-05-19 01:27:36 +01:00
Keir Fraser c9e8a6b158 x86 hvm: Provide x2APIC identifier in CPUID leaf 0xb.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2009-05-19 01:25:59 +01:00
Keir Fraser afc456654c stubdom: fix issue with phy disks
Add an exception for stubdoms in the same_vm hotplug script function.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2009-05-19 01:18:35 +01:00
Keir Fraser 26c54bf9fa x86: Use PGC_cacheattr_mask rather than a hardcoded constant.
Signed-off-by: Patrick Colp <Patrick.Colp@citrix.com>
2009-05-19 01:17:16 +01:00
Keir Fraser 20a0b3ef15 Update README for 3.4 branch.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-05-18 13:53:55 +01:00
Keir Fraser 9e8f7237f1 vt-d: Fix interrupt remapping for multiple IOAPICs
Current IOAPIC interrupt remapping code assumes there is only one
IOAPIC in system. It brings problem when there are more than one
IOAPIC in system. This patch extends ioapic_pin_to_intremap_index[]
array to handle multiple IOAPICs case.

Signed-off-by: Weidong Han <weidong.han@intel.com>
2009-05-15 08:12:39 +01:00
Keir Fraser 520302d743 cpuidle: Fix possible false judge caused by type casting
For timer_deadline == 0 or timer_deadline - now > largest u32
case, the expected_us (in u32 type) may become wrong.

Add a tunable option to ease conditional adjustment.

Signed-off-by: Wei Gang <gang.wei@intel.com>
2009-05-14 15:46:43 +01:00
Keir Fraser cda3e8c2a8 xen public: make mmuext_op's vcpumask field const
Linux started to pass around pointers to 'const cpumask_t' a while ago,
and passing such a pointer to set_xen_guest_handle() requires that the
field be a handle for a constant type in order to avoid compiler
warnings.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2009-05-14 15:46:04 +01:00
Keir Fraser 76bc713dd7 x86 vmx: Ensure debug-mode intercept for int3 and debug exceptions are
reinstated when resetting EXCEPTION_BIRTMAP entry in VMCS after
exiting real mode.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-05-13 10:39:44 +01:00
Keir Fraser 9f97da694d passthrough: Fix PCI hot-plug option parsing
When a PCI function is passed-through extra options may be passed
through.
In the case of boot-time PCI pass-through the documented format is:
    [dom:]bus:dev.slot[@vslot][[,opt]...]
    e.g.
    00:01.00.1@7,msitranslate=3D1

In the case of PCI hot-plug the xm pci-attach command take the
following arguments:
    [-o opt[,opt]...] [dom:]bus:dev.slot [vslot]
    e.g.
    -o msitranslate=3D1 00:01.00.1 7

    These xm ends up passing these to xem-qemu as:
    [dom:]bus:dev.slot[[,opt]...][@vslot]
    e.g.
    00:01.00.1,msitranslate=3D1@7

    Note that the option and the vslot have are transposed when
    compared to the format used by boot-time PCI pass-through.

The parser inside qemu-xen can only handle the format used by
boot-time PCI pass-through and because of this ignores
any options passed by hot-plug.

This patch alters format used by hot-plug to match the parser.

Signed-off-by: Simon Horman <horms@verge.net.au>
2009-05-13 10:28:35 +01:00
Keir Fraser 1930ad84e4 x86: update ioport_quirks_tbl[] for the proliant BL2xx
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
2009-05-11 13:52:04 +01:00
Keir Fraser a9f4e68513 stubdom docs: Update to reflect the new way of configuring stubdom domains.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2009-05-11 13:50:34 +01:00
Keir Fraser a5db2986d4 x86 hvm: hvm_set_callback_irq_level() must not be called in IRQ
context or with IRQs disabled. Ensure this by deferring to tasklet
(softirq) context if required.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-05-08 11:50:12 +01:00
Keir Fraser 727a00e80e Permit user to suppress passing --prefix to setup.py
We change all invocations of setup.py as follows:

* use $(PYTHON) instead of `python' so that the user can specify
  an alternative python version if they need to.  If not set it
  defaults to `python' in Config.mk.

* pass --prefix=$(PREFIX) via a new make variable
  $(PYTHON_PREFIX_ARG).  This allows a user to suppress the
  --prefix=... argument entirely by setting PYTHON_PREFIX_ARG=''.
  This will work around the bug described here
     https://bugs.launchpad.net/ubuntu/+bug/362570
  where passing --prefix=/usr/local (which ought to have no effect as
  /usr/local is the default prefix) changes which subdirectory
  distutils chooses, and results in the files being installed in
  site-packages which is not on the default search path.

  Users not affected by this python packaging bug should not set
  PYTHON_PREFIX_ARG and their builds will not be affected.  (Provided
  PREFIX did not contain spaces.  People who put spaces in PREFIX are
  being quite optimistic.)

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
2009-05-07 19:32:10 +01:00
Keir Fraser ca8d042e26 xend: fix the pci BDF format string
Fix the typo introduced by changeset 19446:2ef77b4bdf58.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2009-05-07 10:03:18 +01:00
Keir Fraser 605c6166fc x86: Extend VMX_PERF_EXIT_REASON_SIZE to sync with latest SDM
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
2009-05-06 12:40:51 +01:00
Keir Fraser 8d305f1efe x86: Fix a couple of asm constraints.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-05-04 22:52:18 +01:00
Keir Fraser 311f9004e8 Update Xen version for 3.4.0-rc4-pre 2009-04-30 14:34:15 +01:00
Keir Fraser f9d73d4855 Added tag 3.4.0-rc3 for changeset 22e01301ff64 2009-04-30 14:33:45 +01:00
Keir Fraser fcaf4a2871 Update Xen version for 3.4.0-rc3 3.4.0-rc3 2009-04-30 14:33:32 +01:00
Keir Fraser 7145897cfb cpuidle: Fix for timer_deadline==0 case
After the scheduler timer became suspended before entering cpu idle
state, the percpu timer_deadline is possible to be 0, i.e. no soft
timer in the queue. This case will cause unexpected large residency
percentage in C1 for the purely idle cpu.

Signed-off-by: Wei Gang <gang.wei@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-30 10:05:00 +01:00
Keir Fraser ffc362fcd3 xenstore: Add brief notice regarding xenstore protocol limits to xs.h.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-30 09:43:29 +01:00
Keir Fraser f6171aa18d x86_32: Fix build after e820 verbosity printks.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-29 13:54:57 +01:00
Keir Fraser ea5f19324f x86 shadow: fix audit mode.
Splintered L1s can have the dirty bit clean because of vram tracking.

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
2009-04-29 11:53:23 +01:00
Keir Fraser 9d85142e67 x86: Add boot options regarding e820 parsinga nd clipping.
[no-]e820-mtrr-clip: Clip e820 RAM areas to top-of-memory according
 to MTRRs. Prefix no- to disable the clip.

 e820-verbose: Extra e820 info printed during boot.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-29 11:52:14 +01:00
Keir Fraser 1e906caa0a x86 vmx: Reuse idtv_info to avoid double read of IDT_VECTORING.
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2009-04-28 13:45:08 +01:00
Keir Fraser 80ff70bc1c Update XEN_LINUX_GIT_REMOTEBRANCH to match changes made in upstream
repo. Needed if you want setting KERNELS=linux-2.6-pvops in
config/Linux.mk to work.

Signed-off-by: Alex Zeffert <alex.zeffert@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
2009-04-27 18:59:56 +01:00
Keir Fraser 55a21ac087 xend: Fix for op_pincpu in SrvDomain.py
op_pincpu method in SrvDomain.py does not currently work because
op_pincpu method gives string objects to a cpumap argument of
domain_pincpu method in XendDomain.py though the cpumap argument
expects list objects.

This patch solves the above problem as follows.

op_pincpu method gives string objects to the cpumap argument as is,
because op_pincpu method cannot give list objects to the cpumap
argument.
Instead, domain_pincpu method expects that the cpumap argument is
string objects, then domain_pincpu method converts the cpumap
argument into list objects.
Also, the patch modifies two methods (except for op_pincpu method)
calling domain_pincpu method.  The methods give string objects to
the cpumap argument instead of list objects.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2009-04-27 15:42:38 +01:00
Keir Fraser 0d5ae43e5f xend: fix cset 19547:b2c43b0fba71 (a managed domain may not shutdown)
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2009-04-27 15:41:28 +01:00
Keir Fraser 1908c5cf43 x86 hvm: During task switch, LDT must be loaded before all other
segments, as some may be loaded from the LDT.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-27 15:40:09 +01:00
Keir Fraser 5dd00021b3 x86 vtd: Do not exclude freed percpu areas from dom0 vtd tables.
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-25 08:19:14 +01:00
Keir Fraser 522b335995 x86: Detect bogus BIOS e820 tables which are not fully covered as
cacheable (WB) by MTRRs. Fix up by truncating the memory map.

This fixes performance issues on certain systems.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-24 17:51:56 +01:00
Keir Fraser 3326419806 xentrace: Clean up HVM I/O tracing.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-04-24 13:46:17 +01:00
Keir Fraser 0bd0cce37e xentrace: fix trivial typo.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2009-04-24 13:20:55 +01:00
Keir Fraser 94e98d9fff xend: modify the order of resetting/deassigning device.
When guest OS shutdowns or a device is hotremoved.
   1. Xend resets devices.
   2. Xend deassigns devices.

Because if devices are deassigned before the reset, dom0 memory may be
overwritten by DMA.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
2009-04-24 13:19:37 +01:00
Keir Fraser 4a696a0a86 stubdoms: handle cdrom devices in the config file
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2009-04-23 16:22:48 +01:00
Keir Fraser 9e8fd772d0 x86 numa: Fix left shift overflows
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
2009-04-23 12:21:29 +01:00
Keir Fraser 82ed447498 stubdom: drop lwip support
Network support is still provided the same way: using the tap
interface, created in qemu using netfront.
The lwip stack is still available to avoid additional compilation
issues.
However the stubdom is not going to have its own vif anymore,
this means that the only vnc server supported is the one in dom0.
You can still enable the vnc server in a stubdom at compile time, if
you want so.

Probably the most important change caused by this patch to xen users
is that you don't have to specify two vif in the stubdom config file
anymore, but just one:

-vif = [ '', 'ip=10.0.1.1,mac=aa:00:00:12:23:34']
+vif = ['ip=10.0.1.1,mac=aa:00:00:12:23:34']

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2009-04-23 12:19:14 +01:00
Keir Fraser 5bacab3172 xm: Fix hot-unplug of statically-assigned devices
Prior to changset 19510:5c69f98c348e - 'xm, xend: Replace "vslt" with
"vslot"', both vslt and vslot were used in the xm code, often fairly
arbitrarily.

However, in the dictionary that describes a pci function both vslt and
vslot were present. vslt stored the slot assigned to the function. And
vslot stored the slot the user requested for the function, or
AUTO_PHP_SLOT if no slot was requested.

With the renaming these two values got merged into a single entry.
This patch un-merges them by renaming the what was vslot to
requested_vslot.

So an out of chronological order list of name changes is:

'vslot' -> 'requested_vslot'
'vslt'  -> 'vslot'

Signed-off-by: Simon Horman <horms@verge.net.au>
2009-04-23 10:11:33 +01:00
Keir Fraser b0514069f1 x86: Remove bogus vtd frametable range check
Signed-off-by:  Joseph Cihula <joseph.cihula@intel.com>
2009-04-23 10:10:11 +01:00
Keir Fraser 00f3705554 xend: Do not overwrite xauthority and display with empty values
Display and xauthority vars are read from vmConfig['platform'] first,
then they are read again from dev_info.
However if the user does not set those variable in the config file,
dev_info won't contain them, hence we are going to overwrite the
current significant values with null.
This patch fixes the problem setting display and xauthority to the
current values if dev_info does not contain them.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2009-04-23 10:09:16 +01:00
Keir Fraser da27f6d8b7 stubdoms: generate stubdom config file
This patch removes the need for a second configuration file for
stubdoms: it is going to be automatically generated by the script
stubdom-dm using command line options and xenstore to find any needed
information.
The configuration script will be placed under /etc/xen/stubdoms and
automatically removed when the domain is destroyed.
The only change needed in xend is not to write on xenstore sdl,
opengl and serial command line options for qemu, because stubdoms do
not support them.
It is safe to remove those two options from xenstore because qemu does
not use xenstore to read commans line options.
Finally this patch fixes blkfront disconnections from backends and
display and xauthority variables for pv guests.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2009-04-23 10:08:04 +01:00
Keir Fraser 575479154d xc_save: fixes typo in error message.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2009-04-22 13:46:50 +01:00
Keir Fraser 744ba6479a network-bridge: Fix for bonding
If ${netdev} is bonding, brctl addif ${bridge} ${pdev} fails:
  can't add ${pdev} to bridge ${bridge}: Invalid argument
Because ${pdev} has no slaves at this point.=20
# Notice that ifdown ${netdev} clears slaves of ${netdev}.

This patch restores slaves before add_to_bridge2 ${bridge} ${pdev}.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2009-04-22 11:26:37 +01:00