]> xenbits.xensource.com Git - people/vhanquez/xen.git/log
people/vhanquez/xen.git
16 years agohvm: Fix lmsw handling
Keir Fraser [Fri, 27 Jun 2008 16:29:51 +0000 (17:29 +0100)]
hvm: Fix lmsw handling

The lmsw instruction can be used to set CR0_PE, but can never clear
it, once set.

Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
xen-unstable changeset:   17906:6b06639011744b6e22915fc1f97237a574e9305f
xen-unstable date:        Fri Jun 27 16:20:59 2008 +0100

x86: Emulation of LMSW must only affect CR0 bits 0-3.
Emulation of SMSW is only restricted to 16-bit operation on memory
operands.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17907:a9fff28d4f066442b65b3ff8ac916f1a50f7c64b
xen-unstable date:        Fri Jun 27 17:24:54 2008 +0100

16 years agohvm rombios: Move function calls out of 'post' function section
Keir Fraser [Fri, 27 Jun 2008 16:04:41 +0000 (17:04 +0100)]
hvm rombios: Move function calls out of 'post' function section

Through recent additions to the rombios the code section of the post
function has filled up considerably. When I enable the BX_TCGBIOS
compile time option the BIOS crashes since the post section code
(starts at $e05b) spills over into the nmi entry point (starts at
$e2c3). as86 doesn't cause an error when building.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
xen-unstable changeset:   17901:3edc443ae8ce80742db2e2a90a260ffac1a7377e
xen-unstable date:        Fri Jun 27 14:43:29 2008 +0100

16 years agohvmloader: Set up any Intel ICH for legacy IDE.
Keir Fraser [Fri, 27 Jun 2008 16:04:10 +0000 (17:04 +0100)]
hvmloader: Set up any Intel ICH for legacy IDE.
Signed-off-by: Li Zhang <li.zhang@intel.com>
xen-unstable changeset:   17897:be52424a543ec9f1437056ee3bf429a4c48a4ea9
xen-unstable date:        Fri Jun 27 14:15:11 2008 +0100

16 years agox86 acpi: Clean up output tracing. Ensure it is synced to serial line
Keir Fraser [Fri, 27 Jun 2008 16:01:31 +0000 (17:01 +0100)]
x86 acpi: Clean up output tracing. Ensure it is synced to serial line
before entering Sx state.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17883:ad156e312aefd4deca7d968c13a6b9ed0ece45f8
xen-unstable date:        Fri Jun 20 15:21:04 2008 +0100

16 years agoioemu: Fix usbdevice parameter to encode vbd type.
Keir Fraser [Fri, 27 Jun 2008 16:00:59 +0000 (17:00 +0100)]
ioemu: Fix usbdevice parameter to encode vbd type.

   usbdevice = "disk:<filename>"
expect a raw device (as this probably is the most usual case) and
   usbdevice = "disk-qcow:<filename>"
expect a COW image (autodetected, probably qcow2).

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   17877:52592af0204a55abd0898b1fbe390a55036079e2
xen-unstable date:        Wed Jun 18 11:55:34 2008 +0100

16 years agox86: Intel wants the TSS busy flag set when we do a vmentry.
Keir Fraser [Fri, 27 Jun 2008 16:00:22 +0000 (17:00 +0100)]
x86: Intel wants the TSS busy flag set when we do a vmentry.

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17876:666f5196f0fcb01fb5550aba492f6ebf7fcc01fc
xen-unstable date:        Wed Jun 18 09:46:36 2008 +0100

16 years agoioemu: Disable format auto-probing in monitor command change
Keir Fraser [Fri, 27 Jun 2008 15:59:50 +0000 (16:59 +0100)]
ioemu: Disable format auto-probing in monitor command change

Format auto-probing of writable images is a security hole.  The last
known remaining instance is monitor command change.  Disable probing
there and use raw.  This breaks change for images in all other
formats.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
xen-unstable changeset:   17874:9493a853df9ef0c17c6fb12efdcc86c5d67c7e03
xen-unstable date:        Wed Jun 18 09:39:14 2008 +0100

16 years agovmx: Allow restore of context from a non-Intel processor. In
Keir Fraser [Fri, 27 Jun 2008 15:59:11 +0000 (16:59 +0100)]
vmx: Allow restore of context from a non-Intel processor. In
particular, VMX requires segment 'granularity' to be set correctly, so
we force it if need be in vmx_set_segment_register().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17864:4bb8a4f66eff8ef4cddc4505a09782fb783c16d5
xen-unstable date:        Mon Jun 16 15:22:41 2008 +0100

16 years agovmx: msr_bitmap/msr_area/msr_host_area must be freed when a vcpu is destroyed
Keir Fraser [Thu, 19 Jun 2008 10:15:57 +0000 (11:15 +0100)]
vmx: msr_bitmap/msr_area/msr_host_area must be freed when a vcpu is destroyed

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17879:3da148fb7d9b21afd6a8c023a8e787aec86d1621
xen-unstable date:        Thu Jun 19 11:09:10 2008 +0100

16 years agohvm: FPU management cleanups.
Keir Fraser [Tue, 17 Jun 2008 10:16:14 +0000 (11:16 +0100)]
hvm: FPU management cleanups.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16971:e4edc310e949750065cb39588d87c335c7cd71a2
xen-unstable date:        Sun Feb 03 10:22:08 2008 +0000

16 years agovmx realmode: HOST_CR0.TS must be cleared when restoring guest FPU
Keir Fraser [Tue, 17 Jun 2008 10:11:21 +0000 (11:11 +0100)]
vmx realmode: HOST_CR0.TS must be cleared when restoring guest FPU
state, otherwise in-Xen CR0.TS value becomes set again on next
vmexit. Then we crash the next time we try to emulate an FPU
instruction.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16970:aecbf98aa7099458fe6895bbd8f15d506e0901b3
xen-unstable date:        Sun Feb 03 09:30:59 2008 +0000

16 years agovt-d: Quieten down overzealous logging.
Keir Fraser [Mon, 16 Jun 2008 10:56:31 +0000 (11:56 +0100)]
vt-d: Quieten down overzealous logging.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17862:42323a447cbe11b78574a69e01b009a458f014b3
xen-unstable date:        Mon Jun 16 11:49:15 2008 +0100

16 years agox86_emulate: Fix the segment-load function
Keir Fraser [Mon, 16 Jun 2008 10:54:27 +0000 (11:54 +0100)]
x86_emulate: Fix the segment-load function

Fix the non-conforming type check and uses the consistent method to
fetch the cpl value as function get_cpl().

Also make sure vm86 mode is properly handled when determining whether
in real mode or protected mode -- in various respects vm86 mode can
act like both.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17861:049a42108c65d9e56d18539454d49bc83f66eca2
xen-unstable date:        Mon Jun 16 11:24:17 2008 +0100

16 years ago32-on-64: Fix error handling for XENMEM_decrease_reservation.
Keir Fraser [Fri, 13 Jun 2008 12:59:22 +0000 (13:59 +0100)]
32-on-64: Fix error handling for XENMEM_decrease_reservation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17852:12ae02c09d1e9f0cd7153f256618dcc544420d54
xen-unstable date:        Fri Jun 13 13:47:28 2008 +0100

16 years agox86: machine_halt() forcibly re-enables IRQs as it may be called from
Keir Fraser [Thu, 12 Jun 2008 17:31:19 +0000 (18:31 +0100)]
x86: machine_halt() forcibly re-enables IRQs as it may be called from
panic() which itself may be called in an IRQ-safe critical section.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17837:a3319f32496fd93a545fc354ce3944072cc32e5e
xen-unstable date:        Thu Jun 12 16:09:08 2008 +0100

16 years agox86/32on64: fix physical address restriction
Keir Fraser [Thu, 12 Jun 2008 17:30:53 +0000 (18:30 +0100)]
x86/32on64: fix physical address restriction

The allocation bit size setting wasn't working anymore after the
recent fix to properly use PAGE_SHIFT instead of PAGE_SIZE. This was
because the bit size implies a power-of-two range that's accessible,
but if all memory is accessible anyway (and its upper boundary is not
a power of two), the domain would either be needlessly restricted or
wouldn't be able to allocate as much memory as was intended for it
(specifically the case for Dom0 without dom0_mem= boot
parameter). Consequently, don't restrict the bit width if all memory
can be accessed.

To avoid needing to adjust this code in two places in the future (it
may need further touching when memory hotplug gets supported), fold
the logic into a function.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17836:52c0117dd37446bef59e82de133a85a6565b237f
xen-unstable date:        Thu Jun 12 16:05:35 2008 +0100

16 years agoAllow older PAE Linux guests to access entire compat m2p.
Keir Fraser [Thu, 12 Jun 2008 17:29:27 +0000 (18:29 +0100)]
Allow older PAE Linux guests to access entire compat m2p.

Older PAE guests (prior to xen-unstable.hg 8924:229c602a075a, Feb
2006, this includes some vendor's kernel in the field) use a limit of
0xf6800000 on their code and data segments (i.e. up to the end of the
read-only m2p table).

Newer kernels use a limit of 4G and rely on the hypervisor to clamp to
the actual maximum allowed. 32on64 mode takes advantage of this to
allow a larger m2p than would fit in the PAEonPAE sized hole.

This means that PAE guests with the hardcoded low limit cannot run on
top of a 64 bit hypervisor on a host machine which has more than 16G
of RAM. Fix this by extending any code or data segment which ends
above the start of the hypervisor hole for that guest.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   17809:09dd5492651c34f7cf863683f2ddbca868340eef
xen-unstable date:        Mon Jun 09 17:18:27 2008 +0100

16 years agoWhen building from a tarball release use hardcoded path to
Keir Fraser [Thu, 12 Jun 2008 17:28:35 +0000 (18:28 +0100)]
When building from a tarball release use hardcoded path to
linux-2.6.18-xen.hg as a last resort when searching for a Linux source
tree.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   17802:f6520678755ab9690251467e1945cda63b040572
xen-unstable date:        Mon Jun 09 10:44:09 2008 +0100

16 years ago[BUILD] Disable LOCALVERSION_AUTO in upstream Linux builds.
Keir Fraser [Mon, 9 Jun 2008 09:11:47 +0000 (10:11 +0100)]
[BUILD] Disable LOCALVERSION_AUTO in upstream Linux builds.

If this option is enabled then the Xen mercurial version ID gets
tacked onto the kernel version (e.g. 2.6.24-git22-hg2593b69b183b)
which is unlikely to be useful or desirable. All the trees which we
build using this method already have uniquely identifying versions
(e.g. 2.6.24-git22 or 2.6.24-mm1).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   17031:761604c6136decb122bb1a45a19de15fa4080cbc
xen-unstable date:        Tue Feb 12 14:59:22 2008 +0000

16 years ago[BUILD] Fixup support for building upstream kernels.
Keir Fraser [Mon, 9 Jun 2008 09:11:22 +0000 (10:11 +0100)]
[BUILD] Fixup support for building upstream kernels.

In particular:
 - support merged x86 architecture. To facilitate this it made sense
   to encode some existing logic in shell scripts rather than
   increasing complicated make conditionals.
 - set CONFIG_PARAVIRT_GUEST=y which is required for newer kernels.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   17030:419a141ca16d7b248805addb0465a6b48e9723dc
xen-unstable date:        Tue Feb 12 14:59:01 2008 +0000

16 years ago[BUILD] Add option to ensure kernel build is non-interactive.
Keir Fraser [Mon, 9 Jun 2008 09:10:47 +0000 (10:10 +0100)]
[BUILD] Add option to ensure kernel build is non-interactive.

This is useful for the non 2.6.18-xen builds where the defconfig at
any particular momement may require additional questions to be
answered.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   17029:319a54d5c8048e25fb2ca3fc431ea7fc2039762d
xen-unstable date:        Tue Feb 12 14:57:36 2008 +0000

16 years ago32-on-64: Fix physaddr_bitsize computation when creating a 32b x86
Keir Fraser [Thu, 5 Jun 2008 09:50:54 +0000 (10:50 +0100)]
32-on-64: Fix physaddr_bitsize computation when creating a 32b x86
compat domain.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17783:31a941632a5db6ea91325a13d875e714918ac428
xen-unstable date:        Thu Jun 05 10:47:08 2008 +0100

16 years agoRemove domain_pause()/domain_unpause() from SCHEDOP_remote_shutdown.
Keir Fraser [Mon, 2 Jun 2008 09:59:29 +0000 (10:59 +0100)]
Remove domain_pause()/domain_unpause() from SCHEDOP_remote_shutdown.

It is pointless and causes the hypervisor to hang if dom0 invokes this
hypercall on itself.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17770:b9879d7108259d685ad567cedeeb785b67ee28e6
xen-unstable date:        Mon Jun 02 10:56:52 2008 +0100

16 years agovmx: Better diagnostic messages when VMXON might have failed due to
Keir Fraser [Mon, 2 Jun 2008 09:59:07 +0000 (10:59 +0100)]
vmx: Better diagnostic messages when VMXON might have failed due to
bad setting of the IA32_FEATURE_CONTROL MSR.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17769:a4775034ef83946803eb6a61e0af33fb6971123f
xen-unstable date:        Mon Jun 02 10:55:55 2008 +0100

16 years agox86: Fix teardown of relocated vcpu_info structures.
Keir Fraser [Sun, 1 Jun 2008 08:29:24 +0000 (09:29 +0100)]
x86: Fix teardown of relocated vcpu_info structures.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17761:85fa199b4b7b
xen-unstable date:        Sun Jun 01 09:16:26 2008 +0100

16 years agox86 hvm: Support task switch when task state segments straddle page
Keir Fraser [Fri, 30 May 2008 15:48:03 +0000 (16:48 +0100)]
x86 hvm: Support task switch when task state segments straddle page
boundaries. Also improve error diagnostics from hvm_map().

Fixes multi-processor shutdown for some types of Windows OS.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17758:9c14ba60616d63ff849067dda9958c798f3f838b
xen-unstable date:        Fri May 30 16:30:40 2008 +0100

x86 hvm: Fix task-switch operation ordering.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17759:487dc63f95ff433eabb132253c5ff31cc178c00a
xen-unstable date:        Fri May 30 16:44:13 2008 +0100

16 years agox86: Fix reboot failure after S3
Keir Fraser [Fri, 30 May 2008 15:36:05 +0000 (16:36 +0100)]
x86: Fix reboot failure after S3

"warm reset vector" is used to start APs. At booting time, it is set
by BP, and cleared after all APs have started. When do S3, similar
work need to do. However, when enable non-boot CPUs after S3, Xen just
sets this vector, but forgets to clear it after APs startup.

Signed-off-by: Huacai Chen <huacai.chen@intel.com>
xen-unstable changeset:   17751:564c9be76aa496fda12923ffca5c4ca41a6c395f
xen-unstable date:        Thu May 29 09:42:59 2008 +0100

16 years agoioemu: set up all xenstore watches even if there are no VBDs.
Keir Fraser [Wed, 28 May 2008 15:36:13 +0000 (16:36 +0100)]
ioemu: set up all xenstore watches even if there are no VBDs.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   17746:c2fab221b3ece1ecfc0cb2777655e181925fe340
xen-unstable date:        Wed May 28 12:22:36 2008 +0100

16 years agogrant_table: Flush host CPU TLBs during grant transfer.
Keir Fraser [Wed, 28 May 2008 15:35:48 +0000 (16:35 +0100)]
grant_table: Flush host CPU TLBs during grant transfer.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17745:132243507b49ab772c34ad986628627998f4f9d1
xen-unstable date:        Wed May 28 11:43:37 2008 +0100

16 years agoioemu: Force floppy disk images to be interpreted as raw.
Keir Fraser [Wed, 28 May 2008 15:31:45 +0000 (16:31 +0100)]
ioemu: Force floppy disk images to be interpreted as raw.
Fixes specifying fda/fdb image names in domain configs.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17736:6b28a18a8c2d22993adbf35fa66712661118dede
xen-unstable date:        Tue May 27 11:51:33 2008 +0100

16 years agox86_emulate: Check single-step status at instruction start rather than end.
Keir Fraser [Wed, 28 May 2008 15:30:45 +0000 (16:30 +0100)]
x86_emulate: Check single-step status at instruction start rather than end.

This fixes booting of FreeDOS with HIMEM.SYS enabled.

Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17715:30bf34f5a414d5400028ec094688be696234fcdf
xen-unstable date:        Sat May 24 08:54:59 2008 +0100

16 years agovt-d: Do FLR of assigned devices with VT-d
Keir Fraser [Tue, 27 May 2008 09:37:59 +0000 (10:37 +0100)]
vt-d: Do FLR of assigned devices with VT-d

Currently there is a pdev_flr() function to do FLR before device
assignment in qemu, but most of devices don't have FLR capability.
What's more, should do FLR before assignment and deassignment for
keeping correct device status. If the device doesn't have FLR
capablility, this patch implemented to enter D3hot and return to D0 to
do FLR. And exposed pdev_flr() in VT-d utils, then it can be invoked
by assignment and deassignment functions.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
xen-unstable changeset:   16875:74a9bfccddba0fedd59c57e5f1a76d83a4178d7c
xen-unstable date:        Thu Jan 24 14:39:38 2008 +0000

16 years agox86: Fix Xen boot on 8-node AMD machines
Keir Fraser [Fri, 23 May 2008 10:16:44 +0000 (11:16 +0100)]
x86: Fix Xen boot on 8-node AMD machines

In xen/arch/x86/cpu/amd.c the function disable_c1_ramping iterates
over the northbridges using NR_CPUS as an upper bound for the number
of nodes. If there are no more northbridges found, it stops iterating.
Sadly it just adds the northbridge number to 0x18 and uses this as a
PCI device number, so probing the 9th northbridge on an 8 node system
will be caught by the newly inserted assertion in pci_conf_read in current
unstable. We fix this by first querying the number of nodes from the
first northbridge to avoid the overflow.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Verified by Mark.Johnson@sun.com
xen-unstable changeset:   17712:5cc5b9c37c6d429502e75536822810219b23b033
xen-unstable date:        Fri May 23 11:15:19 2008 +0100

16 years agox86: Change a local label in asm entry stubs to really be local.
Keir Fraser [Fri, 23 May 2008 10:10:09 +0000 (11:10 +0100)]
x86: Change a local label in asm entry stubs to really be local.
This prevents it appearing in crash traces, where it can be a bit confusing.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17696:e48453f82d30ded8c7b4f454f7a9d37ea56d3fcb
xen-unstable date:        Thu May 22 10:41:49 2008 +0100

16 years agoxm migrate: Better error report when attempt to migrate non-running domain.
Keir Fraser [Fri, 23 May 2008 10:09:40 +0000 (11:09 +0100)]
xm migrate: Better error report when attempt to migrate non-running domain.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
xen-unstable changeset:   17657:7c8e2a2c006ef5953ef9c50e1b5918c342ac8890
xen-unstable date:        Tue May 20 09:43:02 2008 +0100

16 years agosvm: Better handling of NMI injection -- avoid nested NMIs.
Keir Fraser [Fri, 23 May 2008 10:09:05 +0000 (11:09 +0100)]
svm: Better handling of NMI injection -- avoid nested NMIs.

We do this by emulating the NMI mask which blocks NMI delivery until
next IRET on native hardware.

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17655:2ada81810ddb73f29dfd1eb00de466eec2881ce6
xen-unstable date:        Mon May 19 10:03:26 2008 +0100

16 years agoFix showing of CPU Affinity by xm vcpu-list
Keir Fraser [Fri, 23 May 2008 10:05:12 +0000 (11:05 +0100)]
Fix showing of CPU Affinity by xm vcpu-list
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
xen-unstable changeset:   17654:8dce20be0bd5a4d3abaebb84b3c749e8d69bfb48
xen-unstable date:        Mon May 19 09:46:02 2008 +0100

16 years agox86: Fix kexec reservation
Keir Fraser [Fri, 23 May 2008 10:04:46 +0000 (11:04 +0100)]
x86: Fix kexec reservation

The reservation of space for the kexec area in
kexec_reserve_area is incorrect. It specifies the
start address and size to reserve_e820_mem when
the args should be start and end.

Bug found and fixed by Dave Anderson.

Signed-off-by: Bill Burns <bburns@redhat.com>
xen-unstable changeset:   17653:e66aefdfedcca8319f7ecf9c8d742ae157c2d690
xen-unstable date:        Mon May 19 09:43:42 2008 +0100

16 years agostdvga: handle 64bit io operations
Keir Fraser [Fri, 23 May 2008 10:04:19 +0000 (11:04 +0100)]
stdvga: handle 64bit io operations

Handle 64bit operations in stdvga instead of throwing away the
upper 32bits.

This fixes some noisy xen messages like "invalid io size: 8".

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset:   17651:3a5750f4a7387cd635328449a03bdc0eb4ae9ce6
xen-unstable date:        Mon May 19 09:40:53 2008 +0100

16 years agoioemu: Do not try to guess backing file format when using qcow vbds.
Keir Fraser [Thu, 15 May 2008 14:11:29 +0000 (15:11 +0100)]
ioemu: Do not try to guess backing file format when using qcow vbds.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
xen-unstable changeset:   17646:e3b13e1ecf6ca61b84c8bdf5ae3e961268c920f5
xen-unstable date:        Thu May 15 15:10:05 2008 +0100

16 years agoAdd ZFS libfsimage support patch
Keir Fraser [Thu, 15 May 2008 08:59:19 +0000 (09:59 +0100)]
Add ZFS libfsimage support patch

Add support to pygrub and libfsimage to boot ZFS root filesystems.
Boot argument of zfs-bootfs is set to describe ZFS root pool and
boot filesystem object number.  Boot argument bootpath is set to
describe the virtual device root mirror components.

Signed-off-by: Susan Kamm-Worrell <susan.kamm-worrell@sun.com>
xen-unstable changeset:   17557:64f790e90d3d4797e298cc5abdfc54cb943687f3
xen-unstable date:        Thu May 01 16:38:56 2008 +0100

[libfsimage/zfs] compilation fix ZFS libfsimage support.

Depending on environments, zfs libfsimage support doesn't compile.
This patch fixes it.

ia64-linux-gnu-gcc  -DPIC -O2 -fomit-frame-pointer
-fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
-Wno-unused-value -Wdeclaration-after-statement
-I/usr/ia64-linux-gnu/
sys-root/usr/include -D__XEN_TOOLS__  -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE  -I../../../tools/libfsimage/common/ -Werror
-Wp,-MD,.zfs_lzjb.opic.d -fPIC -c -o zfs_lzjb.opic zfs_
lzjb.c
In file included from fsys_zfs.h:41,
                 from zfs_lzjb.c:25:
zfs-include/zfs_acl.h:29: error: redefinition of typedef uid_t
/usr/ia64-linux-gnu/sys-root/usr/include/sys/types.h:82: error:
previous declaration of uid_t was here

This depends on how __uid_t is defined in the system header.
No file under the zfs directory uses uid_t so that just removing
the definition in the zfs_acl.h looks reasonable.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen-unstable changeset:   17559:1f24743354ea85d3c6485c986522cb1698169bd1
xen-unstable date:        Fri May 02 13:47:01 2008 +0100

16 years agox86: Fix an S3 bug caused by x_firmware_waking_vector
Keir Fraser [Thu, 15 May 2008 08:55:53 +0000 (09:55 +0100)]
x86: Fix an S3 bug caused by x_firmware_waking_vector

According to ACPI spec., x_firmware_waking_vector in FACS is for
waking up in protected mode and firmware_waking_vector is for in real
mode. Xen once use x_firmware_waking_vector which can make S3 failed
on some platform. This patch fixed the bug by using non-x one.

Signed-off-by: Huacai Chen <huacai.chen@intel.com>
xen-unstable changeset:   17644:29dc52031954896a407a97cba167c197f8e1c0ed
xen-unstable date:        Thu May 15 09:38:00 2008 +0100

16 years agoioemu: Fix PVFB backend to limit frame buffer size
Keir Fraser [Thu, 15 May 2008 08:53:32 +0000 (09:53 +0100)]
ioemu: Fix PVFB backend to limit frame buffer size

The recent fix to validate the frontend's frame buffer description
neglected to limit the frame buffer size correctly.  This lets a
malicious frontend make the backend attempt to map an arbitrary amount
of guest memory, which could be useful for a denial of service attack
against dom0.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
xen-unstable changeset:   17643:9044705960cb30cec385bdca7305bcf7db096721
xen-unstable date:        Thu May 15 09:36:38 2008 +0100

16 years agoxend: fix block protocol mismatch on save/restore
Keir Fraser [Thu, 15 May 2008 08:47:41 +0000 (09:47 +0100)]
xend: fix block protocol mismatch on save/restore

The protocol field of the blkif interface is correct at startup for a
guest of a different mode from dom0 (eg. 32-bit dom0, 64-bit guest).
However, this property is not persisted on save, so a later restore
(or migrate) will setup the block interface with the wrong mode.

Signed-off-by: Herbert van den Bergh <herbert.van.den.bergh@oracle.com>
Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
xen-unstable changeset:   17635:049459aec2b10628a8b7474d43a89e2a89b29405
xen-unstable date:        Wed May 14 09:19:05 2008 +0100

16 years agoqemu: Fix shift-insert behavior
Keir Fraser [Thu, 15 May 2008 08:47:08 +0000 (09:47 +0100)]
qemu: Fix shift-insert behavior

This patch is related to Changeset 15635:7bdc9f6407d3
<http://xenbits.xensource.com/staging/xen-unstable.hg?rev/7bdc9f6407d3>
[PVFB] Fix shift key for graphical vnc display.
With above patch, if a user presses shift-insert, qemu sends shift
down, shift up, insert down and then another shift key down (see trace
below).  This makes it impossible to do shift insert pasting or use
guest hot shifted-Fkeys.

Shift Insert trace:
 do_key_event():1135 keycode:2a         shift down
    kbd_put_keycode():539 keycode:2a     send shift down
 do_key_event():1135 keycode:d2         insert down
    kbd_put_keycode():539 keycode:aa     send shift up
    kbd_put_keycode():539 keycode:e0     send insert down
    kbd_put_keycode():539 keycode:52
 do_key_event():1135 keycode:d2         insert up
    kbd_put_keycode():539 keycode:e0     send insert up
    kbd_put_keycode():539 keycode:d2
    kbd_put_keycode():539 keycode:2a     send shift down
 do_key_event():1135 keycode:2a         shift up
    kbd_put_keycode():539 keycode:aa     send shift up

This patch adds a check for the keycode being shiftable, something
other than a keypad key, f1-12 , insert, del , etc. before allowing
the press_shift_up() operation.

Signed-off-by: Pat Campbell <plc@novell.com>
xen-unstable changeset:   17634:feec00994a0b06ec093a4a4779484810a138eef2
xen-unstable date:        Wed May 14 09:16:40 2008 +0100

16 years agoqemu: Send unit_attention on cd-rom not_ready to ready transition
Keir Fraser [Thu, 15 May 2008 08:46:39 +0000 (09:46 +0100)]
qemu: Send unit_attention on cd-rom not_ready to ready transition

Patch sends a UNIT_ATTENTION(6), MEDIUM_MAY_HAVE_CHANGED(0x28) sense
when cdrom transitions from not ready to ready.

ATA Packet interface for CD-ROMS, SFF8020i.pdf. See state diagram
Figure 12, page 82 and Table 44 -recommended Sense Key, ASC

With patch in place HVM win2008 server guest sees the CD/DVD contents
have changed when the media is switched.

Signed-off-by: Pat Campbell <plc@novell.com>
xen-unstable changeset:   17633:a864c0c4d605efceac28106a7072aa8c1ebdea83
xen-unstable date:        Wed May 14 09:15:02 2008 +0100

16 years agoqemu: add 0xe0 prefix to r-ctrl and r-alt keycodes
Keir Fraser [Thu, 15 May 2008 08:46:16 +0000 (09:46 +0100)]
qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes

Patch puts 0xe0 prefix before putting right alt or right cntrl
keycodes. Also adds keysm definition for ISO_Left_Tab.

Signed-off-by: Pat Campbell <plc@novell.com>
xen-unstable changeset:   17632:39566bf4c9f09cc0b14e2c8ea2963e2efdf9f469
xen-unstable date:        Wed May 14 09:13:48 2008 +0100

17 years agoioemu: Fix handling of phy: block devices.
Keir Fraser [Wed, 14 May 2008 08:12:27 +0000 (09:12 +0100)]
ioemu: Fix handling of phy: block devices.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   17631:cb22b23156a4b72455d733f547d0c2a59810bed5
xen-unstable date:        Wed May 14 09:11:40 2008 +0100

17 years agoSVM: clean up __get_instruction_length_from_list()
Keir Fraser [Tue, 13 May 2008 14:54:31 +0000 (15:54 +0100)]
SVM: clean up __get_instruction_length_from_list()

Remove unused arguments, fix its behaviour near page boundaries,
inject appropriate pagefaults, and inject #GP if the instruction is
not decodable or %eip is not pointing to valid RAM.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17575:01aa7c088e983cd54b61faeb3ff533581714a26f
xen-unstable date:        Tue May 06 13:32:18 2008 +0100

17 years agoioemu: Fix PVFB backend to validate frontend's frame buffer
Keir Fraser [Tue, 13 May 2008 14:34:33 +0000 (15:34 +0100)]
ioemu: Fix PVFB backend to validate frontend's frame buffer
description

A buggy or malicious frontend can describe its shared framebuffer to
the backend in a way that makes the backend map an arbitrary amount of
guest memory, malloc an arbitrarily large internal buffer, copy
arbitrary memory to that buffer, even beyond its end.  A domU running
a malicious frontend can abuse the former two for denial of service
attacks against dom0.  It can abuse the third to write arbitrary
backend memory.  It can abuse all three to terminate or crash the
backend.  Arbitrary code execution looks quite feasible.

From: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17630:53195719f7621110dab7a97a2bca292b73baa715
xen-unstable date:        Tue May 13 15:08:17 2008 +0100

17 years agox86: only print pages' mfn-s in dump_pageframe_info()
Keir Fraser [Tue, 13 May 2008 14:23:51 +0000 (15:23 +0100)]
x86: only print pages' mfn-s in dump_pageframe_info()

Printing page_to_maddr() and page_to_mfn() of the same page is
redundant, and _p(page_to_maddr(page)) is even incorrect on x86/PAE.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   17613:a6e2679b1aad89d654d0af7f973f338d3f2cd9db
xen-unstable date:        Mon May 12 10:16:18 2008 +0100

17 years agox86: fix a few 32-on-64 compat mode issues
Keir Fraser [Tue, 13 May 2008 14:23:24 +0000 (15:23 +0100)]
x86: fix a few 32-on-64 compat mode issues

- handle VCPUOP_register_vcpu_info and VCPUOP_get_physid (and add
  respective layout checks)
- add missing structure size check for struct vcpu_info
- add missing layout check for vcpu_set_periodic_timer
- handle VCPUOP_set_singleshot_timer via argument translation as the
  structure sizes differ (due to padding in 64-bits)

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   17612:945394931d9e5cb6094f5117acc0a9f55e1019d9
xen-unstable date:        Mon May 12 10:15:07 2008 +0100

17 years agoioemu: fix disk format security vulnerability
Keir Fraser [Tue, 13 May 2008 14:19:47 +0000 (15:19 +0100)]
ioemu: fix disk format security vulnerability

* make the xenstore reader in qemu-dm's startup determine which
  of qemu's block drivers to use according to the xenstore
  backend `type' field.  This `type' field typically comes from
  the front of the drive mapping string in ioemu.  The
  supported cases are:
    xm config file string      `type'  image format    qemu driver
     phy:[/dev/]<device>        phy     raw image       bdrv_raw
     file:<filename>            file    raw image       bdrv_raw
     tap:aio:<filename>         tap     raw image       bdrv_raw
     tap:qcow:<image>           tap     not raw         autoprobe
     tap:<cow-fmt>:<image>      tap     named format    bdrv_<cow-fmt>
  It is still necessary to autoprobe when the image is specified as
  `tap:qcow:<image>', because qemu distinguishes `qcow' and `qcow2'
  whereas blktap doesn't; `qcow' in xenstore typically means what
  qemu calls qcow2.  This is OK because qemu can safely distinguish
  the different cow formats provided we know it's not a raw image.

* Make the format autoprobing machinery never return `raw'.  This has
  two purposes: firstly, it arranges that the `tap:qcow:...' case
  above can be handled without accidentally falling back to raw
  format.  Secondly it prevents accidents in case the code changes in
  future: autoprobing will now always fail on supposed cow files which
  actually contain junk, rather than giving the guest access to the
  underlying file.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   17606:e3be00bd6aa963aca563692c271af762f9380ba0
xen-unstable date:        Mon May 12 10:09:12 2008 +0100

17 years agoxend: Fix and improve error handling for failed suspend/migrate
Keir Fraser [Tue, 13 May 2008 14:16:59 +0000 (15:16 +0100)]
xend: Fix and improve error handling for failed suspend/migrate

This has been broken since cset 16964:5d84464dc1fc
Also deal better with very early errors (close sender side socket)

Signed-off-by: Steven Hand <steven.hand@cl.cam.ac.uk>
xen-unstable changeset:   17601:c99a88623eda83d8e02f4b6d7c32bc4c6d298d8a
xen-unstable date:        Thu May 08 14:33:31 2008 +0100

17 years agox86 hvm: Warn only once per time source when the periodic tiemout is
Keir Fraser [Tue, 13 May 2008 14:15:02 +0000 (15:15 +0100)]
x86 hvm: Warn only once per time source when the periodic tiemout is
set 'too small'.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17579:cc953475ab149a61defff06de237295a7feb882d
xen-unstable date:        Tue May 06 16:20:54 2008 +0100

17 years agox86 hvm: Support interrupt delivery for PIT channel 0 when in modes 3 and 4.
Keir Fraser [Tue, 13 May 2008 14:14:34 +0000 (15:14 +0100)]
x86 hvm: Support interrupt delivery for PIT channel 0 when in modes 3 and 4.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17578:a95c2e36d6fda747279123ab13bfaf40c4041337
xen-unstable date:        Tue May 06 16:20:24 2008 +0100

17 years agox86, hvm: stdvga cache always on
Keir Fraser [Tue, 13 May 2008 14:12:54 +0000 (15:12 +0100)]
x86, hvm: stdvga cache always on

currently the hypervisor vga cache (stdvga.c) enables itself only in
graphical mode and in the a0000h-affffh range. However there is no
reason for this: it already allocates enought memory to map the whole
vram. I am attaching a patch that implements the bank switching
mechanism in stdvga.c, allowing the cache to be always enabled when
the emulated graphic card is in VGA mode.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17572:d5589865bfce91bf65c34bd56e466bf26ca4176f
xen-unstable date:        Tue May 06 10:19:10 2008 +0100

17 years agolibxc foreign address translation bug
Keir Fraser [Tue, 13 May 2008 14:11:11 +0000 (15:11 +0100)]
libxc foreign address translation bug

In the xc_translate_foreign_address function from libxc, there is a
check on the page directory entry to see if the page is 4K or 4M.
However, the check is looking at bit 3, when it should be looking at
bit 7.  This patch fixes the problem.

Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
xen-unstable changeset:   17558:a353dd2ab9445036351c5da5c14555b82bc85ae6
xen-unstable date:        Fri May 02 13:46:16 2008 +0100

17 years agoXEN_GUEST_HANDLE_00030205() compat macro is broken. Remove it and
Keir Fraser [Fri, 2 May 2008 13:23:07 +0000 (14:23 +0100)]
XEN_GUEST_HANDLE_00030205() compat macro is broken. Remove it and
open-code an alternative at its two invocation sites.

Based on a patch by Jan Beulich.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16778:491c283207945c5acdad8f9bc1f64c76511d83b6
xen-unstable date:        Tue Jan 22 10:18:58 2008 +0000

17 years agodocs: Do not reference stale external websites.
Keir Fraser [Thu, 1 May 2008 12:48:15 +0000 (13:48 +0100)]
docs: Do not reference stale external websites.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17547:b2a036d390dbce2a0359740da0c52906d749eead
xen-unstable date:        Thu May 01 13:47:08 2008 +0100

17 years agoxenstored: Fix xenstored abort when connection dropped.
Keir Fraser [Thu, 1 May 2008 09:17:39 +0000 (10:17 +0100)]
xenstored: Fix xenstored abort when connection dropped.

If a connection is dropped with pending input and output data then the
connection will be dereferenced by both handle_input and handle_output
resulting in a double free when the main loop dereferences the
connection.

Fix this issue by taking/releasing a reference over the calls to
handle_input and handle_output separately and checking the result of
talloc_free to see if the connection went away.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   17532:5e5bc5b2bb6d4d71c0de97c15448f2f991f4271d
xen-unstable date:        Thu May 01 10:00:00 2008 +0100

17 years agox86 time: Read platform time before locally-extrapolated time during
Keir Fraser [Thu, 1 May 2008 09:17:10 +0000 (10:17 +0100)]
x86 time: Read platform time before locally-extrapolated time during
calibration and frequency changes. This places the variable delay
(acquiring the platform_timer_lock) safely as the very first thing we
do, avoiding a variable delay /between/ computing the two timestamps.

Problem diagnosed by Dave Winchell <dwinchell@virtualiron.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17526:013a47065e8c4e815e3b1aba0883341c19238e82
xen-unstable date:        Thu May 01 09:45:44 2008 +0100

17 years agox86: Fix a typo in shadow_get_and_create_l1e().
Keir Fraser [Thu, 1 May 2008 09:15:44 +0000 (10:15 +0100)]
x86: Fix a typo in shadow_get_and_create_l1e().

The typo is benign because sh_page_fault() gates the call to
shadow_get_and_create_l1e() on an equivalent test.

Signed-off-by: Tim Deegan <tim.deegan@citrix.com>
xen-unstable changeset:   17505:bc7ee2f93852b0ac1e644a5604dda223f12b8604
xen-unstable date:        Wed Apr 23 13:32:58 2008 +0100

17 years agox86/hvm: fix copy-and-paste mistakes
Keir Fraser [Thu, 1 May 2008 09:15:18 +0000 (10:15 +0100)]
x86/hvm: fix copy-and-paste mistakes
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   17500:5355726f01b66565a55ef2201bebd283c1f9a384
xen-unstable date:        Tue Apr 22 14:40:34 2008 +0100

17 years agovtpm: Small makefile fix.
Keir Fraser [Thu, 1 May 2008 09:14:53 +0000 (10:14 +0100)]
vtpm: Small makefile fix.
Signed-off-by: Jason Andryuk <the_deuce@yahoo.com>
xen-unstable changeset:   16935:daf1862c4ee50e5d57304e80bd62ba40b8565a3a
xen-unstable date:        Wed Jan 30 09:31:35 2008 +0000

17 years agoAdded tag RELEASE-3.2.1 for changeset d2eb5fad9242b4b876c464a69f3fbef481caaa69
Keir Fraser [Fri, 25 Apr 2008 13:03:45 +0000 (14:03 +0100)]
Added tag RELEASE-3.2.1 for changeset d2eb5fad9242b4b876c464a69f3fbef481caaa69

17 years agoUpdate Xen version to 3.2.1 RELEASE-3.2.1
Keir Fraser [Fri, 25 Apr 2008 13:03:39 +0000 (14:03 +0100)]
Update Xen version to 3.2.1

17 years agoshadow: Fix TLB flushing in the second pass of sh_prealloc() in the
Keir Fraser [Fri, 25 Apr 2008 12:28:16 +0000 (13:28 +0100)]
shadow: Fix TLB flushing in the second pass of sh_prealloc() in the
case where multiple vcpus use the same pagetables.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   17520:7689e311f3b5ee4a4d547405c73e40ab689875f0
xen-unstable date:        Fri Apr 25 13:27:19 2008 +0100

17 years agoAdded tag 3.2.1-rc8 for changeset 0471528ee64ffad794e880541e63aae6836c1241
Keir Fraser [Wed, 23 Apr 2008 08:17:14 +0000 (09:17 +0100)]
Added tag 3.2.1-rc8 for changeset 0471528ee64ffad794e880541e63aae6836c1241

17 years agoUpdate Xen version to 3.2.1-rc8 3.2.1-rc8
Keir Fraser [Wed, 23 Apr 2008 08:16:45 +0000 (09:16 +0100)]
Update Xen version to 3.2.1-rc8

17 years agox86: Reduce assertion aggressiveness in send_IPI_mask().
Keir Fraser [Wed, 23 Apr 2008 08:16:17 +0000 (09:16 +0100)]
x86: Reduce assertion aggressiveness in send_IPI_mask().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17503:a5319f23db7c0985ac7ac84a998fedf435565062
xen-unstable date:        Wed Apr 23 09:15:34 2008 +0100

17 years agofiglet: Fix handling of full final line of octal output.
Keir Fraser [Wed, 23 Apr 2008 08:02:46 +0000 (09:02 +0100)]
figlet: Fix handling of full final line of octal output.
It should not be terminated with a backslash.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17502:4f9284a5d3ab4fb402e6838f39fb2e43ee833779
xen-unstable date:        Wed Apr 23 09:02:15 2008 +0100

17 years agoAdded tag 3.2.1-rc7 for changeset ec9fa27d810ded1d6cbf8348b4632c70c9ee08f9
Keir Fraser [Tue, 22 Apr 2008 11:01:25 +0000 (12:01 +0100)]
Added tag 3.2.1-rc7 for changeset ec9fa27d810ded1d6cbf8348b4632c70c9ee08f9

17 years agoUpdate Xen version to 3.2.1-rc7 3.2.1-rc7
Keir Fraser [Tue, 22 Apr 2008 11:01:21 +0000 (12:01 +0100)]
Update Xen version to 3.2.1-rc7

17 years agox86_emulate: Disable writeback if BSF/BSR are passed zero input.
Keir Fraser [Tue, 22 Apr 2008 10:54:13 +0000 (11:54 +0100)]
x86_emulate: Disable writeback if BSF/BSR are passed zero input.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17496:1cc4df5c7fe8b34de2a3258f1cafec94540d1712
xen-unstable date:        Tue Apr 22 11:44:56 2008 +0100

17 years agox86: Fix handling of BSF and BSR instructions.
Keir Fraser [Tue, 22 Apr 2008 10:52:36 +0000 (11:52 +0100)]
x86: Fix handling of BSF and BSR instructions.

 1. We cannot rely on BSF/BSR leaving the destination register intact
    if the source is zero (according to Intel manuals)
 2. We race clear_bit() in find_first_bit(), which may occur after
    SCAS but before BSF. So we must handle zero input to BSF.

Signed-off-by: Naoki Nishiguchi <nisiguti@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17495:fec632d30571c40f05e6638477472500ef9cb2c7
xen-unstable date:        Tue Apr 22 11:43:10 2008 +0100

17 years agox86_emulate: BT instruction does not write to its 'destination' operand.
Keir Fraser [Tue, 22 Apr 2008 10:49:56 +0000 (11:49 +0100)]
x86_emulate: BT instruction does not write to its 'destination' operand.

This fixes w2k3 guests occasionally writing back to read-only registers.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
xen-unstable changeset:   17492:d9a74b8e9b1a345cc3d82efb837014e5658522c2
xen-unstable date:        Tue Apr 22 10:27:04 2008 +0100

17 years agoCache figlet output across builds, and provide src-tarball target
Keir Fraser [Mon, 21 Apr 2008 19:16:48 +0000 (20:16 +0100)]
Cache figlet output across builds, and provide src-tarball target
which creates figlet output and then deletes figlet itself (which is
not licensed under GPL).

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17488:b2e28707ecbb
xen-unstable date:        Mon Apr 21 20:08:29 2008 +0100

src-tarball: Remove source control metadata.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17489:b3e53e17d87a
xen-unstable date:        Mon Apr 21 20:21:39 2008 +0100

17 years agoAdded tag 3.2.1-rc6 for changeset 6c9902d6e07f3f238878bb319a649e67e24dc191
Keir Fraser [Wed, 16 Apr 2008 13:29:39 +0000 (14:29 +0100)]
Added tag 3.2.1-rc6 for changeset 6c9902d6e07f3f238878bb319a649e67e24dc191

17 years agoUpdate Xen version to 3.2.1-rc6 3.2.1-rc6
Keir Fraser [Wed, 16 Apr 2008 13:29:27 +0000 (14:29 +0100)]
Update Xen version to 3.2.1-rc6

17 years agox86, hvm: Fix memory leak.
Keir Fraser [Wed, 16 Apr 2008 08:44:08 +0000 (09:44 +0100)]
x86, hvm: Fix memory leak.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17463:c3efeb3095ac8699d564cdbbe91ca214afe8e4d3
xen-unstable date:        Wed Apr 16 09:32:45 2008 +0100

17 years agotools: Build fixes for *BSD.
Keir Fraser [Tue, 15 Apr 2008 15:09:12 +0000 (16:09 +0100)]
tools: Build fixes for *BSD.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17459:6235c85a145f50cf483e66b731aa55f85832049a
xen-unstable date:        Tue Apr 15 16:07:30 2008 +0100

17 years agoAdded tag 3.2.1-rc5 for changeset 1c26e71aad9972857feeaf07b8762037e7005a53
Keir Fraser [Fri, 11 Apr 2008 12:25:35 +0000 (13:25 +0100)]
Added tag 3.2.1-rc5 for changeset 1c26e71aad9972857feeaf07b8762037e7005a53

17 years agoUpdate Xen version to 3.2.1-rc5 3.2.1-rc5
Keir Fraser [Fri, 11 Apr 2008 12:25:26 +0000 (13:25 +0100)]
Update Xen version to 3.2.1-rc5

17 years agox86 acpi: Correctly obtain information needed for successfully
Keir Fraser [Fri, 11 Apr 2008 12:21:45 +0000 (13:21 +0100)]
x86 acpi: Correctly obtain information needed for successfully
powering off various systems (making use of the optional nature of
PM1b_{cnt,evt}_blk).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agox86/64 compat: Replace hypervisor BUG_ON() with a cleaner hypercall failure.
Keir Fraser [Fri, 11 Apr 2008 08:18:41 +0000 (09:18 +0100)]
x86/64 compat: Replace hypervisor BUG_ON() with a cleaner hypercall failure.

While trying to run a 32-bit PV domU on a 64-bit hypervisor, I
triggered an assert in the hypervisor.  The assert dealt with the
maximum number of grants that a domU can have.  I made the hypervisor
a bit more graceful by returning an error rather than asserting.

Signed-off-by: Michael Abd-El-Malek <mabdelmalek@cmu.edu>
xen-unstable changeset:   17438:115a1720e976a184b2c044541a99b413b2bf844e
xen-unstable date:        Fri Apr 11 09:10:58 2008 +0100

17 years agolibxenguest: Fix a typo.
Keir Fraser [Fri, 11 Apr 2008 08:18:08 +0000 (09:18 +0100)]
libxenguest: Fix a typo.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
xen-unstable changeset:   17437:bde269270d9a08722c03a0c1a49a2711be3329a2
xen-unstable date:        Fri Apr 11 09:07:58 2008 +0100

17 years ago[IA64] Add EXTRA_AFLAGS for platform-pci/xcom_asm.S
Keir Fraser [Fri, 11 Apr 2008 08:15:46 +0000 (09:15 +0100)]
[IA64] Add EXTRA_AFLAGS for platform-pci/xcom_asm.S

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Acked-by: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
xen-unstable changeset:   17068:700f33cc0297703d189570e6feba045555a0b481
xen-unstable date:        Tue Feb 05 09:30:25 2008 -0700

17 years ago[IA64] Add xencomm_arch_hypercall_suspend to fix module load
Keir Fraser [Fri, 11 Apr 2008 08:15:27 +0000 (09:15 +0100)]
[IA64] Add xencomm_arch_hypercall_suspend to fix module load

Make use of split out xencomm_arch_hypercall_suspend to fix the
following module load error:

  Loading xen-platform-pci.ko module
  xen_platform_pci: Unknown symbol xencomm_hypercall_suspend
  insmod: error inserting '/lib/xen-platform-pci.ko':
   -1 Unknown symbol in module
  ERROR: /bin/insmod exited abnormally! (pid 210)

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen-unstable changeset:   17066:c98276a51ff8066eabdd3a5399cfcf3d94bde1d0
xen-unstable date:        Mon Feb 04 08:38:35 2008 -0700

17 years agohvm: Fix a typo in p2m.c.
Keir Fraser [Thu, 10 Apr 2008 15:20:05 +0000 (16:20 +0100)]
hvm: Fix a typo in p2m.c.

Spotted by Xiao Wang <sirouni@yahoo.com.cn>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17435:09903e0e75287a1920733e4df1f51e7b9a7b9c5d
xen-unstable date:        Thu Apr 10 16:17:28 2008 +0100

17 years agolibxc: Move xg_memalign() into a proper source file, so that it
Keir Fraser [Wed, 9 Apr 2008 16:50:15 +0000 (17:50 +0100)]
libxc: Move xg_memalign() into a proper source file, so that it
definitely does not leak out of tools/libxc. Return to the
ioemu/osdep.c way of checking for posix_memalign() as this works on
Solaris.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17427:5b25d3264f7e3ca1d9e958be8a8543fcf1fc5958
xen-unstable date:        Wed Apr 09 17:49:25 2008 +0100

17 years agoAdded tag 3.2.1-rc4 for changeset f160b3fb58d3c02a227b480513efc1716a63b6e5
Keir Fraser [Wed, 9 Apr 2008 16:05:39 +0000 (17:05 +0100)]
Added tag 3.2.1-rc4 for changeset f160b3fb58d3c02a227b480513efc1716a63b6e5

17 years agoUpdate Xen version to 3.2.1-rc4 3.2.1-rc4
Keir Fraser [Wed, 9 Apr 2008 16:05:34 +0000 (17:05 +0100)]
Update Xen version to 3.2.1-rc4

17 years agox86 hvm: Make sure that we correctly tear down the vlapic periodic
Keir Fraser [Wed, 9 Apr 2008 15:56:24 +0000 (16:56 +0100)]
x86 hvm: Make sure that we correctly tear down the vlapic periodic
timer when the vlapic is destroyed or reset.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   17425:e63b48242116f9909799962ae17a4bff287e5cce
xen-unstable date:        Wed Apr 09 16:32:51 2008 +0100

17 years agosave/restore: Use page-aligned allocations for hypercall args that are
Keir Fraser [Wed, 9 Apr 2008 15:56:05 +0000 (16:56 +0100)]
save/restore: Use page-aligned allocations for hypercall args that are
mlock()ed across other hypercall invocations, to avoid aliasing with
other hypercall arguments, causing spurious unlocking.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   17424:f410fa7f379c3a2fc8d4117188f36899e63e6053
xen-unstable date:        Wed Apr 09 16:31:16 2008 +0100

17 years agox86 libxc: Fix mlock sizes in libxc around vcpu context hypercalls
Keir Fraser [Wed, 9 Apr 2008 15:45:46 +0000 (16:45 +0100)]
x86 libxc: Fix mlock sizes in libxc around vcpu context hypercalls
backing off to the old behaviour if we fail.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   17423:c99dee5e44d68d6a0a5251da86e70cf842160dd0
xen-unstable date:        Wed Apr 09 16:24:46 2008 +0100

17 years agoioemu: Fix rtl8139 emulation so that reboot works correctly in 64-bit
Keir Fraser [Wed, 9 Apr 2008 15:45:21 +0000 (16:45 +0100)]
ioemu: Fix rtl8139 emulation so that reboot works correctly in 64-bit
Windows VMs. Return an error if the guest OS tries to transmit a
packet with the transmitter disabled, so that it doesn't spin forever
waiting for it to complete.

Signed-off-by: Steven Smith <Steven.Smith@eu.citrix.com>
xen-unstable changeset:   17420:40c0dda6eae68ec1bbd3bfd3e812d8b9e34051a0
xen-unstable date:        Wed Apr 09 16:03:40 2008 +0100

17 years agoxenstore: fix canonicalize for metanodes
Keir Fraser [Wed, 9 Apr 2008 15:44:54 +0000 (16:44 +0100)]
xenstore: fix canonicalize for metanodes

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   17418:506c21c5c55547b9445b4f97428e40b5abc7feaa
xen-unstable date:        Wed Apr 09 15:59:54 2008 +0100

17 years agohvm: Allocate memory for hvm domains in batches.
Keir Fraser [Wed, 9 Apr 2008 15:44:16 +0000 (16:44 +0100)]
hvm: Allocate memory for hvm domains in batches.

Without this change, dom0 is unresponsive while the hvm domain's
physmap is populated in xen.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   17416:aee133a8e5e72bc9a6da4bb1619931992da3b6ff
xen-unstable date:        Wed Apr 09 15:25:16 2008 +0100

17 years agovmx: On EPT-enabled Intel CPUs we must explicitly request CR3 load and
Keir Fraser [Wed, 9 Apr 2008 13:58:03 +0000 (14:58 +0100)]
vmx: On EPT-enabled Intel CPUs we must explicitly request CR3 load and
store intercepts.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>