Commit Graph
21236 Commits
Author SHA1 Message Date
Keir Fraser c41ded4efd xenpaging: Fix 32-bit build after fixed-width type changes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21701:aecf092da748
xen-unstable date:        Wed Jun 30 22:12:54 2010 +0100
2010-06-30 22:14:40 +01:00
Keir Fraser 072f86df7a Fix #GPF injection into compat guests in vm86 code
not to let the guest disable interrupts in the real EFLAGS.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com
xen-unstable changeset:   21700:fae04060a4f4
xen-unstable date:        Wed Jun 30 18:12:43 2010 +0100
2010-06-30 18:24:55 +01:00
Keir Fraser 7810f62290 Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing P2M types
Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing
P2M types since we do not really want to force a PoD allocation
as a side effect.

Signed-off-by: Paul Durrant <Paul.Durrant@citrix.com>
xen-unstable changeset:   21699:7cda3ad44c6d
xen-unstable date:        Wed Jun 30 18:11:42 2010 +0100
2010-06-30 18:24:32 +01:00
Keir Fraser 39138c1cb4 x86: fix an off-by-one pirq range check
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21698:81d6471ff123
xen-unstable date:        Wed Jun 30 18:11:09 2010 +0100
2010-06-30 18:24:08 +01:00
Keir Fraser 3557b4f7f3 trace: share t_info pages only in read-only mode
There's no need to share writably the t_info pages (Dom0 only wants
[and needs] to read it)

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen-unstable changeset:   21695:c5f3fe17374c
xen-unstable date:        Tue Jun 29 18:18:42 2010 +0100
2010-06-30 18:23:43 +01:00
Keir Fraser 1e266c4886 Use fixed-width types in the memory event interface
Set the types in the public memory_event header file to use
fixed-sized and self-aligned fields rather than "unsigned long".  AIUI
this feature only works with 64-bit hypervisors but I think this
change will be necessary to use 32-on-64 dom0 tools.

This breaks compatibility with older builds of the tools, but I can't
see any way to avoid it short of __attribute__((__packed__)).

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Acked-by: Patrick Colp <pjcolp@cs.ubc.ca>
xen-unstable changeset:   21694:2a3a5979e3f1
xen-unstable date:        Tue Jun 29 18:17:44 2010 +0100
2010-06-30 18:23:19 +01:00
Keir Fraser 898eb6cca5 x86: Only build memory-event features on 64-bit Xen
32-bit Xen doesn't have enough p2m types to support them.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21693:6b5a5bfaf357
xen-unstable date:        Tue Jun 29 18:16:41 2010 +0100
2010-06-30 18:22:56 +01:00
Keir Fraser 88b22035a7 xentrace: restrict trace buffer MFNs
Since they're being passed to Dom0 using an array of uint32_t, they
must be representable as 32-bit quantities, and hence the buffer
allocation must specify an upper address boundary.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen-unstable changeset:   21682:7e46fdbe8a11
xen-unstable date:        Mon Jun 28 16:27:56 2010 +0100
2010-06-30 18:20:11 +01:00
Keir Fraser 9ea4782e26 tmem: skip special case in alloc_heap_pages() if tmem holds no pages
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen-unstable changeset:   21658:c362e793f0a0
xen-unstable date:        Wed Jun 23 23:23:22 2010 +0100
2010-06-30 18:19:35 +01:00
Keir Fraser 48a46ed43b Remus: fix missing import in device.py
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21335:689c145fcc2a
xen-unstable date:        Mon May 10 09:25:46 2010 +0100
2010-06-22 07:31:14 +01:00
Keir Fraser fd0d97f6a3 Remus: use IFB for net buffer on newer kernels
IMQ does not work with ebtables on 2.6.31, and IFB is not a
third-party patch.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21244:0f403a63ef6b
xen-unstable date:        Tue May 04 09:36:05 2010 +0100
2010-06-22 07:30:29 +01:00
Keir Fraser 8df9bafa58 Remus: add file locking and modprobe utility functions
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21243:ca9519f09563
xen-unstable date:        Tue May 04 09:35:42 2010 +0100
2010-06-22 07:29:59 +01:00
Keir Fraser d72b079a28 Remus: include device name in vif objects
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21242:e1482f91b235
xen-unstable date:        Tue May 04 09:35:18 2010 +0100
2010-06-22 07:29:26 +01:00
Keir Fraser db1139fb6e Remus: fix VM stringification
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21241:d6bd61a5a0fc
xen-unstable date:        Tue May 04 09:34:50 2010 +0100
2010-06-22 07:28:47 +01:00
Keir Fraser 03498c2021 Remus: move device handling into its own module
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21240:321dddf767e2
xen-unstable date:        Tue May 04 09:34:23 2010 +0100
2010-06-22 07:28:11 +01:00
Keir Fraser 3f14fb1644 Remus: remove obsolete code
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21239:8559e324941f
xen-unstable date:        Tue May 04 09:31:13 2010 +0100
2010-06-22 07:25:45 +01:00
Keir Fraser 009e740e61 Remus: python netlink fixes
Fix deprecation warning in Qdisc class under python 2.6.
Fix rtattr length and padding (rta_len is unaligned).
Null-terminate qdisc name in rtnl messages.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21238:99a85cb72c9f
xen-unstable date:        Tue May 04 09:30:53 2010 +0100
2010-06-22 07:25:14 +01:00
Keir Fraser ea570d352a Remus: fix alignment bug in python rtnl library
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21175:acba53182435
xen-unstable date:        Thu Apr 15 08:42:40 2010 +0100
2010-06-22 07:24:27 +01:00
Keir Fraser 7bde3d0c48 Remus: make ebt_imq and sch_queue compatible with pvops
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21174:373daaeb636e
xen-unstable date:        Thu Apr 15 08:42:08 2010 +0100
2010-06-22 07:24:04 +01:00
Keir Fraser 55a89073c7 Enable tmem functionality for PV on HVM guests. Guest kernel
must still be tmem-enabled to use this functionality (e.g.
won't work for Windows), but upstream Linux tmem (aka
cleancache and frontswap) patches apply cleanly on top
of PV on HVM patches.

Also, fix up some ASSERTS and code used only when bad guest
mfns are passed to tmem.  Previous code could crash Xen
if a buggy/malicious guest passes bad gmfns.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen-unstable changeset:   21648:72c6228b5f0f
xen-unstable date:        Mon Jun 21 19:19:25 2010 +0100
2010-06-21 19:20:15 +01:00
Keir Fraser 491ed17365 Update Xen version to 4.0.1-rc4-pre 2010-06-21 19:13:46 +01:00
Keir Fraser 7ef85c029b Added signature for changeset 52804b8177bf 2010-06-21 18:43:24 +01:00
Keir Fraser e4a3609e60 Added tag 4.0.1-rc3 for changeset 52804b8177bf 2010-06-21 18:43:07 +01:00
Keir Fraser e99545335f Update Xen version to 4.0.1-rc3 4.0.1-rc3 2010-06-21 18:43:01 +01:00
Keir Fraser 02803d18d7 vmx: Fix bug in VMX VPMU fixed function PMC offset
This is a minor fix to the calculation of bit-width of fixed function
perfmon counters in Intel processors.  Bits 5-12 of edx register
should be calculated as (edx & 0x1fe0) >>5 instead of using 0x1f70.

From: "John, Jaiber J" <jaiber.j.john@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21643:31708477f0a9
xen-unstable date:        Mon Jun 21 09:59:10 2010 +0100
2010-06-21 10:03:11 +01:00
Keir Fraser 91fdb82086 x86: return value of domain_pirq_to_irq() is signed
That value can, for forcibly unbound PIRQs, validly be negative, and
for the respective check to catch those cases (and prevent using these
negative values as array index), the respective variables must be of
signed type.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21620:b0f7f710f512
xen-unstable date:        Tue Jun 15 13:21:03 2010 +0100
2010-06-18 14:24:05 +01:00
Keir Fraser 53f673e609 VMX: enforce INVVPID checking
Escalate to use a wider context invalidation if the requested context
invalidation is not supported.

Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21598:a822156d9fbb
xen-unstable date:        Fri Jun 11 09:34:58 2010 +0100
2010-06-15 11:31:43 +01:00
Keir Fraser 34707a374e VMX: rewrite ept_change_entry_type_global in a recursive way
Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21594:6d35ded36a79
xen-unstable date:        Thu Jun 10 22:11:26 2010 +0100
2010-06-15 11:31:19 +01:00
Keir Fraser 45a21ce9ee VMX: enforce invept checking
Escalate to use all context invalidation if single context
invalidation is not supported.

Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21592:9db8fc1ca2ef
xen-unstable date:        Thu Jun 10 17:30:23 2010 +0100
2010-06-15 11:30:57 +01:00
Keir Fraser e05e559c56 VMX: enforce EPT paging structure memory type and page-walk length check.
Also use a macro to get EPT walk length.

Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21591:def12332b19c
xen-unstable date:        Thu Jun 10 11:18:02 2010 +0100
2010-06-15 11:30:37 +01:00
Keir Fraser fc88f23b65 VMX: remove an unused EPT macro.
Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21581:d58f053669a6
xen-unstable date:        Thu Jun 10 08:24:48 2010 +0100
2010-06-15 11:30:08 +01:00
Keir Fraser a4042a4097 Revert 21190:d6470041aa2e (xen-unstable 21541:7ff0e885b5c3).
Caused regressions in Intel's RC2 testing when parsing domain config
files.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-06-15 11:29:31 +01:00
Keir Fraser e96784240e svm: use msr safe for erratum 383
Make erratum 383 use msr safe variants to work on top of KVM.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset:   21602:f086edac7f92
xen-unstable date:        Fri Jun 11 13:57:52 2010 +0100
2010-06-11 14:04:36 +01:00
Keir Fraser 577ca3dbb0 grant iommu: Correctly handle multiple mappings of same MFN.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21597:2e38205b0d73
xen-unstable date:        Fri Jun 11 09:31:14 2010 +0100
2010-06-11 14:01:23 +01:00
Keir Fraser 47acae0a0d tmem: Fix domain lifecycle synchronisation.
Obtaining a domain reference count is neither necessary nor
sufficient. Instead we simply check whether a domain is already dying
when it first becomes a client of tmem. If it is not then we will
correctly clean up later via tmem_destroy() called from domain_kill().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21596:04e81a65d27e
xen-unstable date:        Thu Jun 10 22:39:52 2010 +0100
2010-06-11 14:01:02 +01:00
Keir Fraser 33bfa92881 Tmem: fix domain refcount leak by returning to simpler model
which claims a ref once when the tmem client is first associated
with the domain, and puts it once when the tmem client is
destroyed.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen-unstable changeset:   21595:39657b168068
xen-unstable date:        Thu Jun 10 22:12:36 2010 +0100
2010-06-11 14:00:36 +01:00
Keir Fraser 53f6b17d47 x86 hvm: Fix build error with some GCC versions.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21590:1bfab8704f32
xen-unstable date:        Thu Jun 10 10:18:00 2010 +0100
2010-06-10 10:19:26 +01:00
Keir Fraser 6b9d129dea Update Xen version to 4.0.1-rc3-pre 2010-06-10 10:19:09 +01:00
Keir Fraser 01ba331731 Added signature for changeset 3d6f1d6cb404 2010-06-10 10:13:14 +01:00
Keir Fraser 757ab45844 Added tag 4.0.1-rc2 for changeset 3d6f1d6cb404 2010-06-10 10:12:47 +01:00
Keir Fraser 3f9b2db33b Update Xen version to 4.0.1-rc2 4.0.1-rc2 2010-06-10 10:11:02 +01:00
Keir Fraser 1823065fc4 xc_domain_restore: Remove static variable 'completed'
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21589:b311acfb2742
xen-unstable date:        Thu Jun 10 09:43:49 2010 +0100
2010-06-10 10:04:43 +01:00
Keir Fraser ea382e0272 xc_domain_restore: Revert 20126:442bc6f82cf3, 19639:205b1badbcfd
This disables superpage restore support, but should gain us acceptable
performance when restoring a domain using a pv_ops dom0 kernel. This
is because single-page allocations will be batched rather than issued
singly.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21588:6c3d8aec202d
xen-unstable date:        Thu Jun 10 09:35:16 2010 +0100
2010-06-10 09:59:56 +01:00
Keir Fraser d56ecae6a3 hgignore: Modify *.d line to avoid fale trigger on tools/hotplug/Linux/init.d/
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21551:3b64bf19ecc2
xen-unstable date:        Mon Jun 07 17:14:09 2010 +0100
2010-06-10 09:51:16 +01:00
Keir Fraser d6906bfcad x86: Force !in_irq() in machine_restart().
Various function we may call assert this fact. We just want to restart
the system.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21550:cb75117829a6
xen-unstable date:        Mon Jun 07 16:41:19 2010 +0100
2010-06-10 09:50:35 +01:00
Keir Fraser bc9428767c xend: A few blktap2 fixes
1. Bug fix for error: "Error: Device /dev/xvdp (51952, tap2) is
already connected." (xenstore does not clean after DomU stoped)
2. Bug fix for error: "File 'vhd:/path/.../disk.img' doesn't exist."
(not correct parsing)
3. Bug fix for error: "Error: Device 51952 not connected" (in config
file for DomU we should be use prefix "tap2:tapdisk:xxx" for devices
from (aio, ram, qcow, vhd, remus) or "tap:tapdisk:xxx" for devices
from (sync, vmdk, qcow2, ioemu))
4. Bug fix for error: "Disk is not accessible" (if use 'tap2'-device
type, then '/dev/xpvd' may not be accessible immediately after its
creation)

Signed-off-by: eXeC001er <execooler@gmail.com>
xen-unstable changeset:   21541:7ff0e885b5c3
xen-unstable date:        Mon Jun 07 07:19:43 2010 +0100
2010-06-10 09:50:02 +01:00
Keir Fraser 2223a8c9fe blktap2: a little fix to xen-hotplug-cleanup
Signed-off-by: James (Song Wei) <jsong@novell.com>
xen-unstable changeset:   21129:bf74d9c31674
xen-unstable date:        Mon Apr 12 07:23:21 2010 +0100
2010-06-07 07:24:02 +01:00
Keir Fraser aa1461c9f1 notify_via_xen_event_channel() takes explicit domain parameter.
Also remove pointless tasklet from mem_event notify path.

Signed-off-by: John Byrne <john.l.byrne@hp.com>
xen-unstable changeset:   21527:936f4c08eaef
xen-unstable date:        Fri Jun 04 10:25:45 2010 +0100
2010-06-04 10:50:55 +01:00
Keir Fraser dce5093c7b Add a safety valve to the HVM RTC model for big time jumps
If xen's time leaps forward by a large amount, the RTC will try to
model a tick for every second that it thinks has passed.  This can
livelock a CPU with a series of timer requests each of which fires
immediately and requests the next one.

This patch treats a delay of more than a day between ticks as a
special case, abandoning the attempt to catch up.  That should be good
enough to avoid livelock but doesn't fix the underlying time problem.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21515:1b6c9732436b
xen-unstable date:        Fri Jun 04 10:05:42 2010 +0100
2010-06-04 10:50:28 +01:00
Keir Fraser 3df3cadf07 x86: Suppress warnings about spurious pagefaults
RHEL4 guests take a fair number of spurious pagefaults on Nehalem; no
need to report each one of them at XENLOG_WARNING.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21514:88932ba626fe
xen-unstable date:        Fri Jun 04 10:04:30 2010 +0100
2010-06-04 10:50:01 +01:00