]>
xenbits.xensource.com Git - people/vhanquez/xen.git/log
Keir Fraser [Mon, 26 Oct 2009 13:36:51 +0000 (13:36 +0000)]
ioemu: Fix serial console for HVM guests
Manpage states: "The cfmakeraw function sets the flags stored in the
termios structure (initialized by tcgetattr) to a state ... giving a
'raw I/O path'.
From: Manuel Bouyer <bouyer@netbsd.org>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Mon, 31 Aug 2009 08:45:27 +0000 (09:45 +0100)]
x86: Fix backport of xen-unstable:19544
Should fix booting with bootloaders which lay out discontiguous sets
of Multiboot modules.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Mon, 31 Aug 2009 08:43:19 +0000 (09:43 +0100)]
Update Xen version to 3.3.3-rc1-pre
Keir Fraser [Thu, 6 Aug 2009 12:29:39 +0000 (13:29 +0100)]
Added tag RELEASE-3.3.2 for changeset
d96d6e70b185
Keir Fraser [Thu, 6 Aug 2009 12:29:27 +0000 (13:29 +0100)]
Update Xen version for 3.3.2
Keir Fraser [Thu, 6 Aug 2009 09:10:13 +0000 (10:10 +0100)]
ept p2m: set rwx flags to 0 for invalid and mmio_dm types.
Read/write/execute flags are set to 1 before calling the type_to_flags
function which sets them to their appropriate values depending on the
p2m type. However, in invalid, mmio_dm, and default/unknown cases in
type_to_flags just falls through, unsafely leaving full access to
these pages.
Signed-off-by: Patrick Colp <Patrick.Colp@citrix.com>
xen-unstable changeset: 20026:
1e436b3752b4
xen-unstable date: Thu Aug 06 09:14:52 2009 +0100
Keir Fraser [Tue, 4 Aug 2009 15:32:14 +0000 (16:32 +0100)]
Added tag 3.3.2-rc8 for changeset
dd3ba8257b03
Keir Fraser [Tue, 4 Aug 2009 15:31:50 +0000 (16:31 +0100)]
Update Xen version for 3.3.2-rc8
Keir Fraser [Tue, 28 Jul 2009 16:03:48 +0000 (17:03 +0100)]
Added tag 3.3.2-rc7 for changeset
f8c3b97ba0dd
Keir Fraser [Tue, 28 Jul 2009 16:03:43 +0000 (17:03 +0100)]
Update Xen version for 3.3.2-rc7
Keir Fraser [Tue, 28 Jul 2009 16:02:06 +0000 (17:02 +0100)]
hvm vlapic: Fix vlapic_write() for partial register writes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19987:
18e60f40c44b
xen-unstable date: Tue Jul 28 16:24:47 2009 +0100
Keir Fraser [Tue, 28 Jul 2009 16:01:30 +0000 (17:01 +0100)]
x86_32: handle x87 opcodes in TLS segment fixups
This patch adds support to the TLS fixup code for x87 opcodes. These
can be treated like 2-byte opcodes with a weird encoding.
The patch includes some extra changes because, now that we have >2
opcode tables and 9 different lead bytes in a two-byte opcode, a
simple boolean code will not be enough to differentiate one- and
two-byte opcodes. Besides this, the patch is trivial since the
segment fixup code cares about the operands of the instruction, not
about its semantics.
From: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19985:
95eec4e77c3c
xen-unstable date: Tue Jul 28 16:15:18 2009 +0100
Keir Fraser [Thu, 23 Jul 2009 08:10:00 +0000 (09:10 +0100)]
xend: Set up CPUID leaves on restore for both PV and HVM guests.
From: Andrew Thomas <andrew.thomas@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19978:
83e6b0198569
xen-unstable date: Thu Jul 23 08:59:03 2009 +0100
Keir Fraser [Thu, 23 Jul 2009 08:09:27 +0000 (09:09 +0100)]
xsm: Move ACM_DEBUG and printkd() out of public header. They are
private to the ACM implementation within Xen.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19968:
054c8395b15d
xen-unstable date: Tue Jul 21 15:47:41 2009 +0100
Keir Fraser [Mon, 20 Jul 2009 11:40:08 +0000 (12:40 +0100)]
Added tag 3.3.2-rc6 for changeset
600f379b491f
Keir Fraser [Mon, 20 Jul 2009 11:40:01 +0000 (12:40 +0100)]
Update Xen version for 3.3.2-rc6
Keir Fraser [Thu, 16 Jul 2009 09:40:34 +0000 (10:40 +0100)]
vmx: Fix handling of FS/GS base MSRs.
Firstly, these MSRs are always accessible if the CPU supports them --
we should not check for EFER.LMA.
Secondly, we should not use teh cached value of shadow_gs while the
VCPU is running. It can be stale if the guest has executed SWAPGS
(which we cannot trap). Hence always access the underlying host MSR
when emulating guest accesses.
The latter bug was found and a patch proposed by <leonid@3tera.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19953:
fe4c6845a9d7
xen-unstable date: Thu Jul 16 10:26:55 2009 +0100
Keir Fraser [Wed, 15 Jul 2009 12:32:20 +0000 (13:32 +0100)]
i386: fix handling of Xen entries in final L2 page table
Running Xen on top of KVM exposed an issue that latently also exists
on real hardware: So far, updating any L3 entry resulted in the Xen
owned part of the L2 table referenced by the final L3 one to be re-
initialized. This was not only unnecessary, it actually resulted in
Xen relying on the TLB entry which maps the L2 page that's being
updated not going away intermediately, since as a first step the full
range of Xen owned entries in the L2 were replaced by the respective
ones from the idle page table, and only then the per-domain entries
got re- written to their intended values.
This part of the initialization really is sufficient to be done once,
when the page becomes an L2-with-Xen-entries (PGT_pae_xen_l2) one,
i.e. can be moved to alloc_l2_table(). Only the linear page table
setup has to remain where it always was.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset: 19945:
faa216e744ad
xen-unstable date: Wed Jul 15 13:07:30 2009 +0100
Keir Fraser [Wed, 15 Jul 2009 08:17:52 +0000 (09:17 +0100)]
stubdom: don't leak include dir on distclean
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset: 19941:
c4d78e5755a1
xen-unstable date: Wed Jul 15 09:11:40 2009 +0100
Keir Fraser [Tue, 14 Jul 2009 13:47:24 +0000 (14:47 +0100)]
stubdom: fix stubdom-dm error path
Exit the shell and not a subshell.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset: 19938:
98e606e9d173
xen-unstable date: Tue Jul 14 14:46:04 2009 +0100
Keir Fraser [Mon, 13 Jul 2009 10:58:19 +0000 (11:58 +0100)]
Added tag 3.3.2-rc5 for changeset
1254d012c455
Keir Fraser [Mon, 13 Jul 2009 10:58:10 +0000 (11:58 +0100)]
Update Xen version for 3.3.2-rc5
Keir Fraser [Mon, 6 Jul 2009 12:43:39 +0000 (13:43 +0100)]
Added tag 3.3.2-rc4 for changeset
76ca9768ec2a
Keir Fraser [Mon, 6 Jul 2009 12:43:31 +0000 (13:43 +0100)]
Update Xen version for 3.3.2-rc4
Keir Fraser [Mon, 6 Jul 2009 12:42:27 +0000 (13:42 +0100)]
32on64: increase size of compat argument translation area to 2 pages.
The existing single page is not quite large enough to translate a
XENMEM_exchange hypercall with order=3D9. Since Linux uses
MAX_CONTIG_ORDER of 9 this seems like a reasonable upper bound to
support.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset: 19898:
100b05eed0d5
xen-unstable date: Mon Jul 06 11:55:17 2009 +0100
Keir Fraser [Mon, 6 Jul 2009 12:42:05 +0000 (13:42 +0100)]
Avoid compat_arg_xlat to be a large per-CPU object
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset: 19896:
bcee82a0e9d6
xen-unstable date: Mon Jul 06 11:51:19 2009 +0100
x86: PERCPU_SHIFT can be reduced to 12 now compat_arg_xlat_area is not
directly a per-cpu object.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19897:
3313efd1c367
xen-unstable date: Mon Jul 06 11:55:01 2009 +0100
Keir Fraser [Mon, 6 Jul 2009 12:37:38 +0000 (13:37 +0100)]
x86 shadow: disable fast np path in OOS.
Signed off by: Gianluca Guida <gianluca.guida@eu.citrix.com>
xen-unstable changeset: 19895:
83b37290ed5d
xen-unstable date: Mon Jul 06 11:50:30 2009 +0100
Keir Fraser [Mon, 6 Jul 2009 12:37:18 +0000 (13:37 +0100)]
x86 shadow: Fix lock-less race between resync and fast path.
Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
xen-unstable changeset: 19894:
3a5d8601293c
xen-unstable date: Mon Jul 06 11:49:56 2009 +0100
Keir Fraser [Thu, 2 Jul 2009 15:18:43 +0000 (16:18 +0100)]
Fix buildsystem to detect udev > version 124
udev removed the udevinfo symlink from versions higher than 123 and
xen's build-system could not detect if udev is in place and has the
required version.
Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
xen-unstable changeset: 19835:
edfdeb150f27
xen-unstable date: Thu Jun 25 13:02:37 2009 +0100
buikd: Fix the detection of udev with udevadm version < 128
Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
xen-unstable changeset: 19878:
c964dd391c7d
xen-unstable date: Thu Jul 02 11:31:00 2009 +0100
Keir Fraser [Tue, 23 Jun 2009 10:40:57 +0000 (11:40 +0100)]
Added tag 3.3.2-rc3 for changeset
99a03713a35b
Keir Fraser [Tue, 23 Jun 2009 10:40:52 +0000 (11:40 +0100)]
Update Xen version for 3.3.2-rc3
Keir Fraser [Tue, 23 Jun 2009 10:37:25 +0000 (11:37 +0100)]
xenconsoled: fix timestamp log
timestamp log is broken.
Also, xenconsoled might die with segfault.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen-unstable changeset: 19816:
5f5112a7d2ff
xen-unstable date: Tue Jun 23 11:27:54 2009 +0100
Keir Fraser [Tue, 23 Jun 2009 10:37:04 +0000 (11:37 +0100)]
VT-d: correct kill hvm_timer
hvm_timer is created with the vector got from domain_irq_to_vector(),
accordingly it should use the same vector to kill the timer. The patch
corrects it in pci_clean_dpci_irqs().
Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset: 19815:
b6612dd06218
xen-unstable date: Tue Jun 23 11:26:22 2009 +0100
Keir Fraser [Tue, 23 Jun 2009 10:36:45 +0000 (11:36 +0100)]
xenconsoled: Fix rate-limit calculation overflow leading to console
freezes.
From: Eric Tessler <eric@3tera.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19814:
20c0df018786
xen-unstable date: Tue Jun 23 11:25:38 2009 +0100
Keir Fraser [Thu, 18 Jun 2009 12:02:09 +0000 (13:02 +0100)]
x86 svm: Clean up and fix start_svm() to avoid memory leaks and
resetting ASID generations.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19784:
44fe7ad6fee8
xen-unstable date: Thu Jun 18 09:47:49 2009 +0100
x86 hvm: Fix bootstrapped boolean check in start_{svm,vmx}().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19798:
af06333d4c5d
xen-unstable date: Thu Jun 18 10:46:21 2009 +0100
Keir Fraser [Tue, 16 Jun 2009 13:40:23 +0000 (14:40 +0100)]
Added tag 3.3.2-rc2 for changeset
a9f690216675
Keir Fraser [Tue, 16 Jun 2009 13:39:37 +0000 (14:39 +0100)]
Update Xen version for 3.3.2-rc2
Keir Fraser [Tue, 16 Jun 2009 13:39:13 +0000 (14:39 +0100)]
x86: fix s3 resume on AMD CPUs
Avoid longjmp as it has different semantics than on Intel CPUs in long
mode. Also add a few comments and remove a pointless reload of DS.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
xen-unstable changeset: 19770:
64a932c92a7c
xen-unstable date: Tue Jun 16 14:19:34 2009 +0100
Keir Fraser [Tue, 16 Jun 2009 13:36:07 +0000 (14:36 +0100)]
x86, hvm: set vcpu->is_initialised after restore/migration
After restore/migration, the xenctx command for auxiliary vcpus
fails with a message "xc_vcpu_getcontext: No data available".
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen-unstable changeset: 19765:
f2a3b7188906
xen-unstable date: Tue Jun 16 13:39:00 2009 +0100
Keir Fraser [Tue, 16 Jun 2009 13:35:45 +0000 (14:35 +0100)]
x86, hvm: fix a domain_lock leak
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen-unstable changeset: 19764:
775afcdc2759
xen-unstable date: Tue Jun 16 13:33:12 2009 +0100
Keir Fraser [Tue, 16 Jun 2009 13:25:31 +0000 (14:25 +0100)]
[IA64] fix early access to per cpu area.
The following changeset broke booting xen-ia64 on some kinds of ia64
boxes.
http://xenbits.xensource.com/ext/ia64/xen-unstable.hg/rev/
3fd8f9b34941
The tasklet_schedule call raise_softirq().
Because raise_softirq() use per_cpu, if we access per_cpu before
cpu_init()
the behavior would be unexpected.
There was a similar issue on Linux/ia64.
The following change sets resolved it.
10617bbe84628eb18ab5f723d3ba35005adde143
c459ce8b5a7d933a3bcf6915ab17ac1e036e2ac4
This patch fixes the issue following the linux/ia64 solution.
Allocate per cpu area for cpu0 in .data section and initialize
it early.
reported-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen-unstable changeset: 19562:
5599cc1e0a84
xen-unstable date: Tue Apr 21 18:27:59 2009 +0900
Keir Fraser [Tue, 16 Jun 2009 13:24:35 +0000 (14:24 +0100)]
Update Xen version for 3.3.2-rc2-pre
Keir Fraser [Mon, 1 Jun 2009 16:45:39 +0000 (17:45 +0100)]
Added tag 3.3.2-rc1 for changeset
6e8580302724
Keir Fraser [Mon, 1 Jun 2009 16:45:23 +0000 (17:45 +0100)]
Update Xen version for 3.3.2-rc1
Keir Fraser [Mon, 1 Jun 2009 13:47:26 +0000 (14:47 +0100)]
blkif: Clarify units for 'sector'-sized blkif request params.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset: 19640:
cc682927d123
xen-unstable date: Tue May 26 10:01:54 2009 +0100
Keir Fraser [Mon, 1 Jun 2009 13:47:01 +0000 (14:47 +0100)]
minios: Fix blkfront driver when sector_size != 512
The first and last sector as well as the sector number of the request
is expressed in 512 bytes units, independently from the real sector
size.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset: 19635:
85d6849bdcd9
xen-unstable date: Tue May 26 09:49:19 2009 +0100
Keir Fraser [Mon, 1 Jun 2009 13:46:25 +0000 (14:46 +0100)]
tools: Fix an obvious xgettext build typo.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset: 19619:
303793468225
xen-unstable date: Tue May 19 13:38:05 2009 +0100
Keir Fraser [Mon, 11 May 2009 12:55:26 +0000 (13:55 +0100)]
x86: update ioport_quirks_tbl[] for the proliant BL2xx
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset: 19597:
2522cc95efd2
xen-unstable date: Mon May 11 13:52:04 2009 +0100
Keir Fraser [Mon, 11 May 2009 10:21:21 +0000 (11:21 +0100)]
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>
xen-unstable changeset: 19595:
2656ab6fa828
xen-unstable date: Fri May 08 11:50:12 2009 +0100
Keir Fraser [Mon, 11 May 2009 10:19:00 +0000 (11:19 +0100)]
x86: Extend VMX_PERF_EXIT_REASON_SIZE to sync with latest SDM
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
xen-unstable changeset: 19592:
fb3e1e84d8f4
xen-unstable date: Wed May 06 12:40:51 2009 +0100
Keir Fraser [Tue, 5 May 2009 12:48:26 +0000 (13:48 +0100)]
x86: Fix a couple of asm constraints.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19591:
7a73e3aeb224
xen-unstable date: Mon May 04 22:52:18 2009 +0100
Keir Fraser [Tue, 5 May 2009 12:47:49 +0000 (13:47 +0100)]
xenstore: Add brief notice regarding xenstore protocol limits to xs.h.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19586:
54dbd70406ad
xen-unstable date: Thu Apr 30 09:43:29 2009 +0100
Keir Fraser [Tue, 5 May 2009 12:47:27 +0000 (13:47 +0100)]
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>
xen-unstable changeset: 19584:
86f659545f17
xen-unstable date: Wed Apr 29 11:53:23 2009 +0100
Keir Fraser [Tue, 5 May 2009 12:46:36 +0000 (13:46 +0100)]
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>
xen-unstable changeset: 19583:
ea068394ec12
xen-unstable date: Wed Apr 29 11:52:14 2009 +0100
x86_32: Fix build after e820 verbosity printks.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19585:
cc6db34c2996
xen-unstable date: Wed Apr 29 13:54:57 2009 +0100
Keir Fraser [Tue, 5 May 2009 12:40:44 +0000 (13:40 +0100)]
minios: Backport part of xen-unstable 18928:
b33b745cd5ec to avoid nested functions.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Keir Fraser [Tue, 28 Apr 2009 14:03:59 +0000 (15:03 +0100)]
x86 vmx: Reuse idtv_info to avoid double read of IDT_VECTORING.
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
xen-unstable changeset: 19582:
648d7de355dd
xen-unstable date: Tue Apr 28 13:45:08 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 14:03:32 +0000 (15:03 +0100)]
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>
xen-unstable changeset: 19578:
9fdcd3ab84b7
xen-unstable date: Mon Apr 27 15:40:09 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 14:02:57 +0000 (15:02 +0100)]
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>
xen-unstable changeset: 19576:
ce273aa880e5
xen-unstable date: Fri Apr 24 17:51:56 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 14:02:29 +0000 (15:02 +0100)]
x86 numa: Fix left shift overflows
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
xen-unstable changeset: 19571:
3ccd0f0dba5b
xen-unstable date: Thu Apr 23 12:21:29 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 14:01:50 +0000 (15:01 +0100)]
xenconsoled: Fixes to domain management.
Event-channel setup: Re-bind if the connection becomes unbound (e.g.,
due to 'slow' domain suspend cancellation), even if the remote port
identifier has not changed.
Domain logging: Only open log file once (don't leak fds) and fix a
small memory leak.
Evtchn changes based on a patch by Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19561:
69ba67bdbf93
xen-unstable date: Mon Apr 20 15:38:29 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 13:57:23 +0000 (14:57 +0100)]
x86: fix next->vcpu_dirty_cpumask checking in context_switch()
There was a timing window where flush_tlb_mask() could be called with
an empty mask (triggering a WARN_ON() in send_IPI_mask_flat() along
with APIC errors) because rather than using the already taken snapshot
of next's vcpu_dirty_cpumask struct vcpu's field was used directly,
which can get its only bit cleared by remote CPUs.
Replacing the structure field's use by the local variable then made
the inner cpus_empty() check completely redundant with the one in the
surrounding if()'s condition.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset: 19560:
423a7f500059
xen-unstable date: Mon Apr 20 14:56:31 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 13:56:48 +0000 (14:56 +0100)]
xend: The method union_update on a set was renamed to update in Python 2.3
From: Ruben Kerkhof <ruben@rubenkerkhof.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19559:
cc2267c6d53b
xen-unstable date: Mon Apr 20 13:48:31 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 13:56:11 +0000 (14:56 +0100)]
x86: avoid EPT scanning errors when splitting superpages during live
migration
Since Xen did not lock the p2m table for p2m table reading, when
splitting the large page during live migration, we should make sure
the path of EPT entries be modified are always there while other CPUs
may access the super entries at the same time.
Signed-off-by: Xin, Xiaohui <xiaohui.xin@intel.com>
xen-unstable changeset: 19555:
150662e5adfc
xen-unstable date: Fri Apr 17 13:07:06 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 13:55:22 +0000 (14:55 +0100)]
x86: Support discontiguous sets of multiboot modules.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19544:
94ffd85005c5
xen-unstable date: Tue Apr 14 15:23:53 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 13:51:06 +0000 (14:51 +0100)]
minios: fix a memory corruption in blkfront
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>
xen-unstable changeset: 19542:
cbaae05c2902
xen-unstable date: Tue Apr 14 11:21:45 2009 +0100
Keir Fraser [Tue, 28 Apr 2009 13:49:43 +0000 (14:49 +0100)]
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>
xen-unstable changeset: 19523:
a6003404e95b
xen-unstable date: Wed Apr 08 19:10:33 2009 +0100
Keir Fraser [Thu, 23 Apr 2009 09:13:47 +0000 (10:13 +0100)]
xend: Fix do_FLR() scope problem.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
xen-unstable changeset: 19067:
a92ed09b4032
xen-unstable date: Thu Jan 22 11:07:32 2009 +0000
Keir Fraser [Wed, 8 Apr 2009 13:44:11 +0000 (14:44 +0100)]
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>
xen-unstable changeset: 19522:
f9c8c6b08972
xen-unstable date: Wed Apr 08 14:43:12 2009 +0100
Keir Fraser [Wed, 8 Apr 2009 13:21:23 +0000 (14:21 +0100)]
x86 hvm: Fix privilege checking in do_hvm_op() hypercall.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19521:
eddb0f09fdaf
xen-unstable date: Wed Apr 08 14:06:37 2009 +0100
Keir Fraser [Wed, 8 Apr 2009 13:20:53 +0000 (14:20 +0100)]
Avoid deadlocks on domctl_lock when pausing domains/vcpus.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19519:
3929487cdb82
xen-unstable date: Wed Apr 08 13:48:35 2009 +0100
Keir Fraser [Wed, 8 Apr 2009 13:19:24 +0000 (14:19 +0100)]
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>
xen-unstable changeset: 19509:
71077a0fd289
xen-unstable date: Tue Apr 07 10:14:35 2009 +0100
Keir Fraser [Wed, 8 Apr 2009 13:18:54 +0000 (14:18 +0100)]
tools/misc: Remove some obsolete scripts.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19508:
accf139b2eb9
xen-unstable date: Mon Apr 06 21:12:33 2009 +0100
Keir Fraser [Wed, 8 Apr 2009 13:17:45 +0000 (14:17 +0100)]
x86_64: explicitly zero CR[1] in getvcpucontext for guests with no user PT
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset: 19505:
1f705f0a32e2
xen-unstable date: Mon Apr 06 13:56:35 2009 +0100
Keir Fraser [Thu, 2 Apr 2009 12:19:04 +0000 (13:19 +0100)]
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>
xen-unstable changeset: 19493:
b5e7c26835c9
xen-unstable date: Wed Apr 01 16:20:30 2009 +0100
Keir Fraser [Thu, 2 Apr 2009 12:18:39 +0000 (13:18 +0100)]
x86: paging_log_dirty_op() should take care with invalid log_dirty.top
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19490:
2491158ccd17
xen-unstable date: Wed Apr 01 13:49:35 2009 +0100
x86: A further fix to paging_log_dirty_op() -- do not
unmap_domain_page(NULL)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19494:
6dc5c26a75b9
xen-unstable date: Thu Apr 02 07:53:11 2009 +0100
Keir Fraser [Thu, 2 Apr 2009 12:17:40 +0000 (13:17 +0100)]
x86 acpi: Delete unnecessary and broken RSDP-scanning code.
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
xen-unstable changeset: 19433:
d5ddc782bc49
xen-unstable date: Mon Mar 30 16:48:26 2009 +0100
Keir Fraser [Thu, 2 Apr 2009 12:17:11 +0000 (13:17 +0100)]
x86_64: Fix handling of DIRECTMAP_VIRT_START in virt_to_maddr().
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
xen-unstable changeset: 19410:
4846d7ae75cd
xen-unstable date: Fri Mar 20 08:57:23 2009 +0000
Keir Fraser [Thu, 2 Apr 2009 12:13:14 +0000 (13:13 +0100)]
x86 dom builder: Allocate domU pages in batches.
Allows a 32-bit dom0 to create very large guests.
Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19390:
f0d033f0a319
xen-unstable date: Thu Mar 19 10:04:15 2009 +0000
Keir Fraser [Thu, 2 Apr 2009 12:12:42 +0000 (13:12 +0100)]
Actually set a HVM domain's time offset when it sets the RTC
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset: 19385:
b8242b82b561
xen-unstable date: Wed Mar 18 13:24:42 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:58:15 +0000 (14:58 +0000)]
x86 shadow: fix vram tracking
Check for writable mappings in ptes before assuming that the type
count in the page has changed.
Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
xen-unstable changeset: 19317:
cc9b41a476dc62149d7a385aad70ce6e221e928f
xen-unstable date: Thu Mar 12 10:55:43 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:56:00 +0000 (14:56 +0000)]
x86 shadow: Fix 2-on-3 mode.
Signed-off-by: Gianluca Guida <Gianluca.Guida@eu.citrix.com>
xen-unstable changeset: 19372:
0e8005a9d81201f5224e8fd0690a8b787befc4c0
xen-unstable date: Tue Mar 17 14:30:15 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:55:32 +0000 (14:55 +0000)]
x86 shadow: Prevent in-sync L1s to become writable
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19371:
6d5aa622fb3d696144ff7ea96636318946c560a8
xen-unstable date: Tue Mar 17 14:29:26 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:54:25 +0000 (14:54 +0000)]
x86, cpuidle: disable ARB_DISABLE access for latest intel platforms
ARB_DISABLE is a nop on all of the recent Intel platforms. Disable
ARB_DISABLE and attached c3_lock on C3 entry exit for such platforms.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Wei Gang <gang.wei@intel.com>
xen-unstable changeset: 19364:
09253da8f1c17d125127895154bc851ac6d40aba
xen-unstable date: Tue Mar 17 10:50:16 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:54:01 +0000 (14:54 +0000)]
[SVM] Always read zero AMD C1E control MSR to allow cross-vendor migration
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset: 19354:
4fd39881f9f185b49cd1e007b550b9ccab10d139
xen-unstable date: Fri Mar 13 07:45:11 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:53:36 +0000 (14:53 +0000)]
[SVM] fix segment descriptors to allow migration to Intel VT systems
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset: 19353:
0f7e2ba5d0e62022f0d59b0e098ab9b0747ce1f4
xen-unstable date: Fri Mar 13 07:43:45 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:53:05 +0000 (14:53 +0000)]
x86: Fix APIC 0x40 error when CPU online and Host s3 resume
disable_APIC_timer actually is not useful here. Actually it will
trigger a local APIC error when masking the LVT entry when vector is
zero (before timer is inited) on Intel P6 family. This APIC error(40)
appears when online the offlined CPU and Host S3 resume.
Signed-off-by: Liping Ke <liping.ke@intel.com>
Signed-off-by: Gang Wei <gang.wei@intel.com>
xen-unstable changeset: 19335:
dc5441bf3ddcfb14045333c9992fd919c5d79a24
xen-unstable date: Thu Mar 12 11:16:54 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:52:46 +0000 (14:52 +0000)]
Fix xenstore permissions for Solaris domUs.
Solaris domUs use hvmpv/ and guest/ frontend xenstore directories.
Signed-off-by: John Levon <john.levon@sun.com>
xen-unstable changeset: 19334:
8ecf3ecc888e6dc7ddf39c078929f748745a84f9
xen-unstable date: Thu Mar 12 11:14:22 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:51:45 +0000 (14:51 +0000)]
libxc: Replace bzero() usage with memset().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19315:
75fa5c00a100e843323414c2406f1396f2367195
xen-unstable date: Thu Mar 12 08:34:07 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:51:18 +0000 (14:51 +0000)]
x86 hvm: Fix hvmemul_read_msr().
Original patch by Christoph Egger <christoph.egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19313:
5b8f9ef92e00fe5070f5470fc1e3e32b9e85efd5
xen-unstable date: Wed Mar 11 19:13:47 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:50:26 +0000 (14:50 +0000)]
x86: Mask X86_FEATURE_XSAVE in cpuid leaf 1, ecx, as we don't allow
guests to use it (by setting cr4.OSXSAVE).
This prevents crashes in pvops kernels, as new versions of Linux
try to use this feature.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19288:
9ed53e60211954c2a04dfdcae207819276b2cca0
xen-unstable date: Mon Mar 09 08:54:19 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:48:04 +0000 (14:48 +0000)]
minios: Fix 18874 memory clipping
Fix 18874's memory clipping: there are three page-sized holes between
direct mapping, demand mapping, heap pages and the end of memory.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
xen-unstable changeset: 19287:
5a981686bbf85f686bbf9f1e5f77e7da72200f8a
xen-unstable date: Mon Mar 09 08:43:11 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:45:32 +0000 (14:45 +0000)]
Fix cpu selection at the time vCPU allocation
After cpu_[online/offline], set bits in cpu_online_map could be not
continuous. Use cycle_cpu() to pick the next one.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
xen-unstable changeset: 19276:
a44751edcb7637103258d043e92490d561aec186
xen-unstable date: Fri Mar 06 18:54:09 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:45:07 +0000 (14:45 +0000)]
Do not deadlock in scheduler when sending VIRQ_CON_RING.
Instead defer the virq notification to tasklet context.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19275:
3fd8f9b349413c5a04d0e3f93e43463f1021c9dc
xen-unstable date: Fri Mar 06 14:28:27 2009 +0000
Avoid deadlock in tasklet_schedule() after console_force_unlock().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19296:
f57ac4af36b431b10645ee145270ee658f46d58d
xen-unstable date: Mon Mar 09 09:56:16 2009 +0000
Keir Fraser [Tue, 17 Mar 2009 14:44:07 +0000 (14:44 +0000)]
x86: Fix event-channel access for 32-bit HVM guests.
Based on a patch by Joe Jin <joe.jin@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19266:
71af89e70fee39954496130e92807c42d1405489
xen-unstable date: Tue Mar 03 13:17:05 2009 +0000
Fix MAX_EVTCHNS() definition.
Pointed out by Jan Beulich.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19365:
2dcdd2fcb945c66ad3b8fcb91d19a9b5115b30f1
xen-unstable date: Tue Mar 17 13:21:46 2009 +0000
Keir Fraser [Mon, 2 Mar 2009 14:19:35 +0000 (14:19 +0000)]
When a domain crashes, ignore shutdown deferrals.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19259:
c62b453f27d5bf843890d47ec88e39be78efc0b1
xen-unstable date: Mon Mar 02 14:09:21 2009 +0000
Keir Fraser [Mon, 2 Mar 2009 14:19:13 +0000 (14:19 +0000)]
xmexample: portability fix
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset: 19255:
5e34a89662515c21e686e8a7906d140b470bcb99
xen-unstable date: Mon Mar 02 11:04:43 2009 +0000
Keir Fraser [Mon, 2 Mar 2009 14:18:33 +0000 (14:18 +0000)]
acm: Return a valid buffer
This patch reverts a previous patch trying to fix a memory, even
though I don't think there was any. Now return a valid buffer. All
functions calling this function do free the buffer.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
xen-unstable changeset: 19248:
6f207d1eee5c21452d4527fe202c5a3f4d2b815c
xen-unstable date: Mon Mar 02 10:31:16 2009 +0000
Keir Fraser [Mon, 2 Mar 2009 14:17:50 +0000 (14:17 +0000)]
x86, hvm: gcc44 build fix.
Broken constrain in inline asm. Bytewise access works with a, b, c, d
registers only, thus "r" is wrong, it must be "q". gcc 4.4 tries to
use the si register, which doesn't work and thus fails the build.
From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19243:
e5c696aaf2a6e8805231c0c0f1414560262e7005
xen-unstable date: Sun Mar 01 14:58:07 2009 +0000
Keir Fraser [Mon, 2 Mar 2009 14:17:28 +0000 (14:17 +0000)]
xenstored: fix use-after free bug
Problem: Handling requests for one connection can not only zap the
connection itself, due to socket disconnects for example. It can also
zap *other* connections, due to domain release requests. Especially
it can zap the connection we have saved a pointer to in the "next"
variable.
From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 19242:
226031d62fc53d92df1aa7ba5565e887fa925318
xen-unstable date: Sun Mar 01 14:50:04 2009 +0000
Keir Fraser [Mon, 2 Mar 2009 14:17:05 +0000 (14:17 +0000)]
x86, time: fix S3 suspend error
platform_time_calibration() is invoked in S3 when irq is disabled,
which causes ASSERT() error in spin_lock_irq(). spin_lock_irqsave()
saves us.
Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>
xen-unstable changeset: 19240:
9af46734ce70fcc7e89f3af1ace876652ec9478f
xen-unstable date: Sun Mar 01 14:30:35 2009 +0000