]> xenbits.xensource.com Git - people/vhanquez/xen.git/log
people/vhanquez/xen.git
17 years agoAvoid using a separate watch thread due to uninitialised watch->flags.
Keir Fraser [Sat, 1 Mar 2008 09:27:10 +0000 (09:27 +0000)]
Avoid using a separate watch thread due to uninitialised watch->flags.

The xenbus_dev code isn't setup to handle the case where
XBWF_new_thread is set so there is a potetial crash if this flag is
erroneously set. Therefore initialise flags to zero by using kzalloc
rather than kmalloc.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
linux-2.6.18-xen changeset:   440:43de9d7c3c63adaac7e334621f763c94acbbc178
linux-2.6.18-xen date:        Tue Feb 26 17:59:18 2008 +0000

17 years agoioemu: IDE flush on O_DIRECT with drive caching off.
Keir Fraser [Tue, 26 Feb 2008 15:06:42 +0000 (15:06 +0000)]
ioemu: IDE flush on O_DIRECT with drive caching off.

Long ago Xen added code to the device model to basically do an fsync()
after every data write if the user in the guest specified that IDE
write caching should be disabled.  This works fine, except in the case
where you are doing O_DIRECT writes inside the guest (ala dd
if=/dev/zero of=/dev/hdb oflag=direct). This is because you can get
out of ide_write_dma_cb() in the middle of the loop without going
through the logic to sync.  This simple patch makes sure that you
always check (and sync) inside the write callback.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
17 years agox86/64: Fix PAE-on-64 mmuext_op() preemption.
Keir Fraser [Thu, 21 Feb 2008 15:15:36 +0000 (15:15 +0000)]
x86/64: Fix PAE-on-64 mmuext_op() preemption.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17096:ea1dc85d7122c6f0c11afbe4500c191b6896056f
xen-unstable date:        Wed Feb 20 18:18:03 2008 +0000

17 years agoxm: Fix xm vcpu-pin to complain for CPU numbers out of range.
Keir Fraser [Thu, 21 Feb 2008 15:15:02 +0000 (15:15 +0000)]
xm: Fix xm vcpu-pin to complain for CPU numbers out of range.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
xen-unstable changeset:   17092:511ab2b89ced1e190c6c76139b60049b69be69ef
xen-unstable date:        Wed Feb 20 17:42:12 2008 +0000

17 years ago[HVM] Save/restore: don't leak shared-memory segments after HVM
Keir Fraser [Wed, 20 Feb 2008 17:50:27 +0000 (17:50 +0000)]
[HVM] Save/restore: don't leak shared-memory segments after HVM
live-migrate.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
xen-unstable changeset:   15645:07655ed2fe58ebf883b8a4b5c2dccf15576f4778
xen-unstable date:        Thu Jul 26 12:00:32 2007 +0100

17 years agoFix x86 SMP non-ACPI build.
Keir Fraser [Mon, 18 Feb 2008 17:19:08 +0000 (17:19 +0000)]
Fix x86 SMP non-ACPI build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
linux-2.6.18-xen changeset:   425:9dea529497fe546d25b5dc965d8161494c27d127
linux-2.6.18-xen date:        Mon Feb 18 17:16:52 2008 +0000

17 years agoXen dom0 arbitrarily assigns APIC ID x to CPU ID x. Make dom0 also
Keir Fraser [Mon, 18 Feb 2008 14:33:57 +0000 (14:33 +0000)]
Xen dom0 arbitrarily assigns APIC ID x to CPU ID x.  Make dom0 also
assign the APIC ID to ACPI ID mapping in the same way.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
linux-2.6.18-xen changeset:   419:0034d9389130969f9452b76370f76394e10238b8
linux-2.6.18-xen date:        Fri Feb 15 10:01:06 2008 +0000

17 years agofbfront: Fix no-kbd-event case
Keir Fraser [Mon, 18 Feb 2008 14:33:35 +0000 (14:33 +0000)]
fbfront: Fix no-kbd-event case
out_cons shouldn't even be used.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
linux-2.6.18-xen changeset:   418:d9eaaff9a9bdb37b1aec92e071dc47e038bbd2c5
linux-2.6.18-xen date:        Thu Feb 14 09:25:05 2008 +0000

17 years agoCVE-2008-0600: Fix exploitable hole in vmsplice() syscall.
Keir Fraser [Mon, 18 Feb 2008 14:33:11 +0000 (14:33 +0000)]
CVE-2008-0600: Fix exploitable hole in vmsplice() syscall.
Fix is Al Viro's suggested patch for RHEL5.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
linux-2.6.18-xen changeset:   416:08e85e79c65d0316bfda5e77e8a0dc7ab9ca181a
linux-2.6.18-xen date:        Mon Feb 11 11:05:27 2008 +0000

17 years agofbfront: Clear ring contents on save/restore. Otherwise in some cases
Keir Fraser [Mon, 18 Feb 2008 14:29:50 +0000 (14:29 +0000)]
fbfront: Clear ring contents on save/restore. Otherwise in some cases
a restored domain loses mouse and keyboard.
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
linux-2.6.18-xen changeset:   415:90fbf541d772e9df4e7a4be3ed667d9bac5412c0
linux-2.6.18-xen date:        Mon Feb 11 10:19:25 2008 +0000

17 years agox86: Fix mod_l3_entry() for PAE-on-64 guests. The adjustment of
Keir Fraser [Mon, 18 Feb 2008 14:26:38 +0000 (14:26 +0000)]
x86: Fix mod_l3_entry() for PAE-on-64 guests. The adjustment of
_PAGE_RW and _PAGE_USER cannot happen before get_page_from_l3e().

Original patch by Manuel Bouyer <bouyer@netbsd.org>.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17061:9d29141a5e527d13c10b592c5b7807af73750a19
xen-unstable date:        Mon Feb 18 13:50:25 2008 +0000

17 years agox86/64: Make BIOS call to declare our intention to enter long mode.
Keir Fraser [Mon, 18 Feb 2008 14:24:54 +0000 (14:24 +0000)]
x86/64: Make BIOS call to declare our intention to enter long mode.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17051:55ae3b66b1b6e9039f13d9eec0b98864ca87ba6f
xen-unstable date:        Thu Feb 14 11:24:49 2008 +0000

17 years agoioemu: save 3MB of ioport tables (on 64bit machines)
Keir Fraser [Mon, 18 Feb 2008 14:23:34 +0000 (14:23 +0000)]
ioemu: save 3MB of ioport tables (on 64bit machines)
by keeping then initialized to NULL and check for it in the handlers.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
xen-unstable changeset:   17019:7e189fc27f4ffd0bfcb1727dbbf3b06a1a515705
xen-unstable date:        Mon Feb 11 14:47:19 2008 +0000

17 years agox86_emulate: Fix IMUL r/m8 emulation.
Keir Fraser [Mon, 18 Feb 2008 14:21:51 +0000 (14:21 +0000)]
x86_emulate: Fix IMUL r/m8 emulation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16998:1b750b9cf4319c076bb831d26dcdcffbd5cfb913
xen-unstable date:        Thu Feb 07 19:30:36 2008 +0000

17 years agox86_emulate: Fix MUL emulation.
Keir Fraser [Mon, 18 Feb 2008 14:21:11 +0000 (14:21 +0000)]
x86_emulate: Fix MUL emulation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16995:445edf4089a3ccaca977665423e903b5300832cb
xen-unstable date:        Thu Feb 07 18:00:44 2008 +0000

17 years agox86: physaddr_bitsize must always be initialised for 32-on-64 dom0.
Keir Fraser [Mon, 18 Feb 2008 14:20:50 +0000 (14:20 +0000)]
x86: physaddr_bitsize must always be initialised for 32-on-64 dom0.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16993:eef22fa42f44cf4f8d971a37dd265fc56eb35417
xen-unstable date:        Thu Feb 07 13:20:15 2008 +0000

17 years agoxm reboot: Fix wait option of xm reboot command
Keir Fraser [Mon, 18 Feb 2008 14:19:42 +0000 (14:19 +0000)]
xm reboot: Fix wait option of xm reboot command

When I rebooted a domain by xm reboot command with wait option,
I saw the following message.  But, rebooting the domain succeeded.
 Domain vm1 destroyed for failed in rebooting

The cause why the message was shown is the domain is destroyed
temporarily by processing of xm reboot command.  The domain
information is not gotten from Xend by server.xend.domains()
function till recreating the domain is completed.
This patch fixes processing of xm reboot command in Xm side.
It waits just a bit till recreating the domain is completed,
then it measures the success or failure of the reboot of the
domain.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
xen-unstable changeset:   16988:d04593aa1605fd337423b2c1296e275424e06656
xen-unstable date:        Thu Feb 07 09:27:46 2008 +0000

17 years agox86_emulate: fix side-effect macro call.
Keir Fraser [Wed, 6 Feb 2008 10:18:35 +0000 (10:18 +0000)]
x86_emulate: fix side-effect macro call.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
xen-unstable changeset:   16980:bf4a24c172d23ae9839ee564225d49ed95167de3
xen-unstable date:        Tue Feb 05 15:50:59 2008 +0000

17 years agoxend: Scrub vnc password for vfb from xend.log.
Keir Fraser [Wed, 6 Feb 2008 10:18:09 +0000 (10:18 +0000)]
xend: Scrub vnc password for vfb from xend.log.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
xen-unstable changeset:   16978:df6b8bed284500d767a21f843e99bc55ab25ae7c
xen-unstable date:        Tue Feb 05 10:40:10 2008 +0000

17 years agox86_emulate: Fix SAHF emulation.
Keir Fraser [Wed, 6 Feb 2008 10:17:49 +0000 (10:17 +0000)]
x86_emulate: Fix SAHF emulation.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
xen-unstable changeset:   16976:32e9c52fc6d9a6104afb2dbd84a89395b16f0e34
xen-unstable date:        Tue Feb 05 10:29:19 2008 +0000

17 years agox86_emulate: Fix CLTS emulation.
Keir Fraser [Wed, 6 Feb 2008 10:17:16 +0000 (10:17 +0000)]
x86_emulate: Fix CLTS emulation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16859:7f940c605893749225a5605fb8a1fa38972bdeb6
xen-unstable date:        Wed Jan 23 13:59:24 2008 +0000

17 years agoebtables: don't compute gap until we know we have an ebt_entry
Keir Fraser [Mon, 4 Feb 2008 14:32:26 +0000 (14:32 +0000)]
ebtables: don't compute gap until we know we have an ebt_entry
Original upstream Linux patch by Chuck Ebbert.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
linux-2.6.18-xen changeset:   405:369b676a32439c947a604323b5b3db6007ffedd2
linux-2.6.18-xen date:        Mon Feb 04 14:29:03 2008 +0000

17 years agoDo not allocate vcpu_guest_context on the stack when initialising a
Keir Fraser [Mon, 4 Feb 2008 14:24:57 +0000 (14:24 +0000)]
Do not allocate vcpu_guest_context on the stack when initialising a
new VCPU. It is too big for 4kB stacks.
Original patch by Donald Dutile <ddutile@redhat.com> backported from
upstream pv_ops work.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
linux-2.6.18-xen changeset:   402:687ef5a4fcb7c6a0c8fe90ab25ce58a465c1cb4b
linux-2.6.18-xen date:        Fri Feb 01 11:11:12 2008 +0000

17 years agoxend: Fix grow of the LEGACY_UNSUPPORTED_BY_XENAPI_CFG list each time
Keir Fraser [Mon, 4 Feb 2008 14:22:33 +0000 (14:22 +0000)]
xend: Fix grow of the LEGACY_UNSUPPORTED_BY_XENAPI_CFG list each time
we instantiate a new XendConfig.
Signed-off-by: Pascal Bouchareine <pascal@gandi.net>
xen-unstable changeset:   16965:b1b93caa7d8e2414af06f06c3a9734675f715bad
xen-unstable date:        Sat Feb 02 10:53:24 2008 +0000

17 years agoFix save/restore failure cleanup
Keir Fraser [Mon, 4 Feb 2008 14:22:17 +0000 (14:22 +0000)]
Fix save/restore failure cleanup

The save failure cleanup introduced in 13543:207523704fb1 is
incorrect: if we didn't get as far as actually suspending the domain,
then the guest domain will not be expecting the devices to be removed
(seen on both Linux and Solaris, which don't expect a 'Closing' state
when they hold the device open). Only re-jig devices if we definitely
shut the domain down.

Signed-off-by: John Levon <john.levon@sun.com>
xen-unstable changeset:   16964:5d84464dc1fc013110c25dc0ff1f99585e699fa3
xen-unstable date:        Sat Feb 02 10:51:54 2008 +0000

17 years agolibxc: Fix the third argument of bitmap_64_to_byte in
Keir Fraser [Mon, 4 Feb 2008 14:20:07 +0000 (14:20 +0000)]
libxc: Fix the third argument of bitmap_64_to_byte in
xc_tbuf_set_cpu_mask
Signed-off-by: Eric Liu <eric.e.liu@intel.com>
xen-unstable changeset:   16951:475f4323b86a9c15e81e31ba9a25d19c5fa51eb5
xen-unstable date:        Thu Jan 31 09:39:44 2008 +0000

17 years agoioemu: strip tap subtype prefix from image name
Keir Fraser [Mon, 4 Feb 2008 14:19:48 +0000 (14:19 +0000)]
ioemu: strip tap subtype prefix from image name

Currently I am not able to mount or boot from an HVM CDROM when it is
configured for 'tap:aio' instead of 'file'.

disk=[ 'tap:aio:/var/lib/xen/images/sles10-sp2-fv/disk0,hda,w', '
       tap:aio:/home/iso/sles/SLES10.iso,hdc:cdrom,r', ]

With this patch I am able to boot from the CDROM and or mount it.

Patch changes xenstore.c:xenstore_process_event() to strip the tap
subtype prefix from the image name.

Signed-off-by: Pat Campbell <plc@novell.com>
xen-unstable changeset:   16944:0343aa1361011e5a280b4d78707a773a62231691
xen-unstable date:        Wed Jan 30 14:25:55 2008 +0000

ioemu: Fix xenstore access changes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16945:5f997b5b8a58a559020a06b1656534dce0086301
xen-unstable date:        Wed Jan 30 15:19:22 2008 +0000

17 years agoxend: fix external-device-migrate step 0
Keir Fraser [Mon, 4 Feb 2008 14:19:20 +0000 (14:19 +0000)]
xend: fix external-device-migrate step 0

Add domain name to a migrateDevice call, so the helper script
(external-device-migrate example) does not fail at step 0
(MIGRATION_TEST).

Signed-off-by: Pascal Bouchareine <pascal@gandi.net>
xen-unstable changeset:   16943:625c923f7b4a6c9ea6614aafba7714e431ca53a5
xen-unstable date:        Wed Jan 30 14:24:20 2008 +0000

17 years agolinux/x86: Obtain EDD info from Xen
Keir Fraser [Mon, 4 Feb 2008 13:48:19 +0000 (13:48 +0000)]
linux/x86: Obtain EDD info from Xen
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6.18-xen changeset:   67:706976fe8333a88c4d3482253927faa3b4714b15
linux-2.6.18-xen date:        Wed Jun 20 19:09:25 2007 +0100

Fix build with CONFIG_EDD disabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6.18-xen changeset:   76:6433fb4f88d6779073bb527e0ea13814206d3259
linux-2.6.18-xen date:        Thu Jun 21 22:37:49 2007 +0100

17 years agoAdded tag RELEASE-3.1.3 for changeset 4835d702ba6133849bfae64b783b755c5066c094
Keir Fraser [Thu, 31 Jan 2008 10:07:57 +0000 (10:07 +0000)]
Added tag RELEASE-3.1.3 for changeset 4835d702ba6133849bfae64b783b755c5066c094

17 years agoUpdate version to Xen 3.1.3 RELEASE-3.1.3
Keir Fraser [Thu, 31 Jan 2008 10:06:54 +0000 (10:06 +0000)]
Update version to Xen 3.1.3

17 years agoioemu: Fix IDE DMA thread race.
Keir Fraser [Thu, 31 Jan 2008 09:12:00 +0000 (09:12 +0000)]
ioemu: Fix IDE DMA thread race.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoAdded tag 3.1.3-rc3 for changeset 6953aed19f6b4aea44df316217ad628cb1d523f1
Keir Fraser [Tue, 29 Jan 2008 22:09:20 +0000 (22:09 +0000)]
Added tag 3.1.3-rc3 for changeset 6953aed19f6b4aea44df316217ad628cb1d523f1

17 years agoFix mis-merge of xen-unstable:16932. 3.1.3-rc3
Keir Fraser [Tue, 29 Jan 2008 22:09:09 +0000 (22:09 +0000)]
Fix mis-merge of xen-unstable:16932.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoAdded tag 3.1.3-rc3 for changeset 9966aa3edee0616bd47fb9eace5963ac8351f87a
Keir Fraser [Tue, 29 Jan 2008 15:31:40 +0000 (15:31 +0000)]
Added tag 3.1.3-rc3 for changeset 9966aa3edee0616bd47fb9eace5963ac8351f87a

17 years agoUpdate version to 3.1.3-rc3
Keir Fraser [Tue, 29 Jan 2008 15:31:31 +0000 (15:31 +0000)]
Update version to 3.1.3-rc3

17 years agoxend: Obey localtime config option for HVM guests as well as PV guests.
Keir Fraser [Tue, 29 Jan 2008 15:28:40 +0000 (15:28 +0000)]
xend: Obey localtime config option for HVM guests as well as PV guests.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16932:04e24b9dcc1649e86d3e94a81489dab9c6ec82bc
xen-unstable date:        Tue Jan 29 15:15:51 2008 +0000

17 years agox86: Fix shadow pinning logic (for PV live relo).
Keir Fraser [Tue, 29 Jan 2008 15:28:10 +0000 (15:28 +0000)]
x86: Fix shadow pinning logic (for PV live relo).
From: Tim Deegan <Tim.Deegan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16930:193afcdb85b211d72f940e086397490ce72f06e6
xen-unstable date:        Tue Jan 29 11:50:30 2008 +0000

17 years agox86: Fix HVM hypercall preemption causing guest crash.
Keir Fraser [Tue, 29 Jan 2008 15:27:44 +0000 (15:27 +0000)]
x86: Fix HVM hypercall preemption causing guest crash.
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
xen-unstable changeset:   16929:128f7bc0a277375571b4817fc65bfcd14e00a7ec
xen-unstable date:        Tue Jan 29 11:47:42 2008 +0000

17 years agoAdded tag 3.1.3-rc2 for changeset bfe37e6c2d0be9b06f2c192ba965597dc758c546
Keir Fraser [Mon, 28 Jan 2008 10:42:14 +0000 (10:42 +0000)]
Added tag 3.1.3-rc2 for changeset bfe37e6c2d0be9b06f2c192ba965597dc758c546

17 years agoUpdate version to 3.1.3-rc2 3.1.3-rc2
Keir Fraser [Mon, 28 Jan 2008 10:42:07 +0000 (10:42 +0000)]
Update version to 3.1.3-rc2

17 years ago[gntdev] Fix multiple-grant mapping logic
Keir Fraser [Mon, 28 Jan 2008 10:40:58 +0000 (10:40 +0000)]
[gntdev] Fix multiple-grant mapping logic
Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
linux-2.6.18-xen changeset:   399:6157dbf408cf9c50a658eb9fdacfc78ca72bd06a
linux-2.6.18-xen date:        Mon Jan 28 10:29:58 2008 +0000

17 years agoFix losetup -r flag when we specify 'w!' for the disk mode.
Keir Fraser [Mon, 28 Jan 2008 10:37:48 +0000 (10:37 +0000)]
Fix losetup -r flag when we specify 'w!' for the disk mode.
From: Zhigang Wang <zhigang.x.wang@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16880:78a29cf8476b6e6720edbfb4c89c3809be227ffe
xen-unstable date:        Fri Jan 25 13:22:52 2008 +0000

17 years agotools/examples/block better use of losetup -r
Keir Fraser [Thu, 24 Jan 2008 14:58:25 +0000 (14:58 +0000)]
tools/examples/block better use of losetup -r

Use losetup -r when the vbd is specified to be readonly, but only if
-r is supported (rather than always creating a writeable losetup
mapping if possible).

This was inspired by (but not derived from) a diff from the Fedora 8
patchset which uses -r iff the vbd is specified as readonly.  We need
to be cleverer upstream because not all systems have losetup -r.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   16642:643ab64d12d5ce57e5f1e08f85ab4bb7fbc136ae
xen-unstable date:        Wed Dec 19 15:05:15 2007 +0000

17 years agoEnable loopback disk image files on readonly nfs filesystem.
Keir Fraser [Thu, 24 Jan 2008 14:57:57 +0000 (14:57 +0000)]
Enable loopback disk image files on readonly nfs filesystem.

When we losetup a file on readonly nfs filesystem, it fails with:
# losetup /dev/loop7 /data/vm/xen_el5_i386_para/system.raw
/data/vm/xen_el5_i386_para/system.raw: Permission denied

New version of losetup has add a "-r" option for readonly loop, which
Linux kernel has supported for a long time. Some distribution (EL5
update, Fedora 8, etc.) have shipped it. This patch benefit this
option while doesn't break the old versions of losetup.

Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
xen-unstable changeset:   16330:fbe7ed173314723f80f105e7e60fddd0bed77e5b
xen-unstable date:        Wed Nov 07 09:22:31 2007 +0000

17 years agoioemu: fix xc_handle declaration
Keir Fraser [Thu, 24 Jan 2008 14:53:46 +0000 (14:53 +0000)]
ioemu: fix xc_handle declaration

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
xen-unstable changeset:   16865:019f5bd23ea5aae89bc4e39d49d7bb838333fcbc
xen-unstable date:        Wed Jan 23 18:03:52 2008 +0000

17 years agoioemu: fix phys_ram_addr parameter usage
Keir Fraser [Thu, 24 Jan 2008 14:53:24 +0000 (14:53 +0000)]
ioemu: fix phys_ram_addr parameter usage

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com
xen-unstable changeset:   16864:f98a26b5b3982cc517169d38551b946319b8fc65
xen-unstable date:        Wed Jan 23 18:03:25 2008 +0000

17 years agoioemu: cache the BlockDriverState pointer
Keir Fraser [Thu, 24 Jan 2008 14:52:57 +0000 (14:52 +0000)]
ioemu: cache the BlockDriverState pointer
This actually fixes a bug in the scsi case.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
xen-unstable changeset:   16863:6496ad18c3e286d03dc5f3b80588d06deec7c39f
xen-unstable date:        Wed Jan 23 18:02:48 2008 +0000

17 years agoblkback/blktap: Check for kthread_should_stop() in inner loop,
Keir Fraser [Tue, 22 Jan 2008 11:33:40 +0000 (11:33 +0000)]
blkback/blktap: Check for kthread_should_stop() in inner loop,
mdelaay() should be msleep(), and these changes belong in blktap as
well as blkback.
Based on comments and patches from Jan Beulich and Steven Smith.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
linux-2.6.18-xen changeset:   392:7070d34f251c3e0c411022a5d365aea9804114a7
linux-2.6.18-xen date:        Mon Jan 21 11:43:31 2008 +0000

blkback: Request-processing loop is unbounded and hence requires a
yield point. Also, bad request type is a good cause to sleep for a
short while as the frontend has probably gone mad.

Patch by Steven Smith <steven.smith@eu.citrix.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
linux-2.6.18-xen changeset:   391:77f831cbb91ddca3a7539fa9197d4abc2d2bfcf9
linux-2.6.18-xen date:        Fri Jan 18 16:52:25 2008 +0000

17 years agoSupport pselect/ppoll in ia32entry-xen.S.
Keir Fraser [Tue, 22 Jan 2008 11:32:49 +0000 (11:32 +0000)]
Support pselect/ppoll in ia32entry-xen.S.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
linux-2.6.18-xen changeset:   382:47916bd012c6a0a17a350a4247aa0dff9f42868f
linux-2.6.18-xen date:        Fri Jan 18 13:37:53 2008 +0000

17 years agoAvoid allocations causing swap activity on the resume path by allowing
Keir Fraser [Tue, 22 Jan 2008 11:32:23 +0000 (11:32 +0000)]
Avoid allocations causing swap activity on the resume path by allowing
such allocations to access the emergency pools otherwise a
save/restore/migration of a guest which is low on memory can
deadlock.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
linux-2.6.18-xen changeset:   377:e8b49cfbdac0c5ee680cd9ec3d693ed0e2d42432
linux-2.6.18-xen date:        Mon Jan 14 15:52:23 2008 +0000

17 years agoxend: On block-attach, remove device information when VmError occurs.
Keir Fraser [Tue, 22 Jan 2008 11:27:43 +0000 (11:27 +0000)]
xend: On block-attach, remove device information when VmError occurs.

I tested xm block-attach command with a wrong
parameter(file:). Naturally a command error occurred. Then I retested
xm block-attach command with a correct parameter(phy:). But a command
error occurred again. The second command error occurred because Xend
did not remove device information from self.info when the first
command error occurred.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
xen-unstable changeset:   16777:6f3fb3f86b68182bb61a661e81f346f653005852
xen-unstable date:        Tue Jan 22 09:51:49 2008 +0000

17 years agohvm, ioemu: Fix the ide/cdrom emulation error on FC7 guest.
Keir Fraser [Tue, 22 Jan 2008 11:27:18 +0000 (11:27 +0000)]
hvm, ioemu: Fix the ide/cdrom emulation error on FC7 guest.

The new libata-eh in the Linux kernel is throwing a fit over the QEMU
cdrom device for two reasons:

1) DRQ can be set with ERR_STAT set.  This is a violation of the ATAPI
state machine.

2) After a TEST_UNIT_READY ATAPI command is sent ERR_STAT is getting
   set
which is correct.  But, when the OS issues another ATAPI command
ERR_STAT is still set.  Which is bad since the next expected command
from the OS is REQUEST_SENSE to find out why ERR_STAT is set.

bug this fixes: https://bugzilla.novell.com/show_bug.cgi?id=3D291775

Signed-off-by: Brandon Philips <bphilips@suse.de>
Porting this qemu fix to xen.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
xen-unstable changeset:   16776:2af5fb3e34e54e96d0c58e0e4557ee1240df9ce8
xen-unstable date:        Tue Jan 22 09:50:06 2008 +0000

17 years agoxend: Handle unspecified timer_mode domain platform parameter.
Keir Fraser [Tue, 22 Jan 2008 11:26:45 +0000 (11:26 +0000)]
xend: Handle unspecified timer_mode domain platform parameter.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16764:3f26758bcc020c741fdae010f969115064b577c2
xen-unstable date:        Fri Jan 18 22:27:51 2008 +0000

17 years agoUpdate version to 3.1.3-rc2-pre
Keir Fraser [Tue, 22 Jan 2008 11:26:13 +0000 (11:26 +0000)]
Update version to 3.1.3-rc2-pre

17 years agoAdded tag 3.1.3-rc1 for changeset 222ac4a1e0ae77e666f7c9c1f329ef8bbf17f4f8
Keir Fraser [Fri, 18 Jan 2008 13:54:44 +0000 (13:54 +0000)]
Added tag 3.1.3-rc1 for changeset 222ac4a1e0ae77e666f7c9c1f329ef8bbf17f4f8

17 years agoUpdate version to 3.1.3-rc1 3.1.3-rc1
Keir Fraser [Fri, 18 Jan 2008 13:54:29 +0000 (13:54 +0000)]
Update version to 3.1.3-rc1

17 years agohvm: Allocate an unmapped guard page to separate ordinary low RAM
Keir Fraser [Fri, 18 Jan 2008 13:54:11 +0000 (13:54 +0000)]
hvm: Allocate an unmapped guard page to separate ordinary low RAM
from special pages (ioreq, xenstore, etc). This will stop some probe
functions (e.g., embedded in memtest) from stomping on the special
pages.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16728:be960a84e492c1baa0a2dfa76b1a770d0df5e433
xen-unstable date:        Thu Jan 17 12:59:10 2008 +0000

17 years agolibxen: Fix function prototype.
Keir Fraser [Fri, 18 Jan 2008 13:53:38 +0000 (13:53 +0000)]
libxen: Fix function prototype.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   16721:b953c358d0adc75f77cfa1991b5fc15da2b5b0a2
xen-unstable date:        Tue Jan 15 18:48:32 2008 +0000

17 years ago[IA64] Fix security vulnerability
Keir Fraser [Fri, 18 Jan 2008 13:53:12 +0000 (13:53 +0000)]
[IA64] Fix security vulnerability

DomU can map any other domain's memory.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen-unstable changeset:   16719:235bef53d5bd04b4ac3b0c443369fa09d5d99e48
xen-unstable date:        Tue Jan 15 07:07:01 2008 -0700

17 years agoUpdate to Linux 2.6.18.8.
Keir Fraser [Thu, 17 Jan 2008 15:05:38 +0000 (15:05 +0000)]
Update to Linux 2.6.18.8.
Signed-off-by: S.Caglar Onur <caglar@pardus.org.tr>
--HG--
rename : patches/linux-2.6.18/allow-i386-crash-kernels-to-handle-x86_64-dumps-fix.patch => patches/linux-2.6.18.8/allow-i386-crash-kernels-to-handle-x86_64-dumps-fix.patch
rename : patches/linux-2.6.18/allow-i386-crash-kernels-to-handle-x86_64-dumps.patch => patches/linux-2.6.18.8/allow-i386-crash-kernels-to-handle-x86_64-dumps.patch
rename : patches/linux-2.6.18/blktap-aio-16_03_06.patch => patches/linux-2.6.18.8/blktap-aio-16_03_06.patch
rename : patches/linux-2.6.18/fix-ide-cd-pio-mode.patch => patches/linux-2.6.18.8/fix-ide-cd-pio-mode.patch
rename : patches/linux-2.6.18/fixaddr-top.patch => patches/linux-2.6.18.8/fixaddr-top.patch
rename : patches/linux-2.6.18/git-3566561bfadffcb5dbc85d576be80c0dbf2cccc9.patch => patches/linux-2.6.18.8/git-3566561bfadffcb5dbc85d576be80c0dbf2cccc9.patch
rename : patches/linux-2.6.18/git-4bfaaef01a1badb9e8ffb0c0a37cd2379008d21f.patch => patches/linux-2.6.18.8/git-4bfaaef01a1badb9e8ffb0c0a37cd2379008d21f.patch
rename : patches/linux-2.6.18/git-5ee7737379b1d7f0c977c0f1661fbaf01a8d4721.patch => patches/linux-2.6.18.8/git-5ee7737379b1d7f0c977c0f1661fbaf01a8d4721.patch
rename : patches/linux-2.6.18/git-c06cb8b1c4d25e5b4d7a2d7c2462619de1e0dbc4.patch => patches/linux-2.6.18.8/git-c06cb8b1c4d25e5b4d7a2d7c2462619de1e0dbc4.patch
rename : patches/linux-2.6.18/git-dbaab49f92ff6ae6255762a948375e4036cbdbd2.patch => patches/linux-2.6.18.8/git-dbaab49f92ff6ae6255762a948375e4036cbdbd2.patch
rename : patches/linux-2.6.18/i386-mach-io-check-nmi.patch => patches/linux-2.6.18.8/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.18/linux-2.6.18-xen-375-748cd890ea7f => patches/linux-2.6.18.8/linux-2.6.18-xen-375-748cd890ea7f
rename : patches/linux-2.6.18/linux-2.6.18-xen-376-353802ec1caf => patches/linux-2.6.18.8/linux-2.6.18-xen-376-353802ec1caf
rename : patches/linux-2.6.18/linux-2.6.19-rc1-kexec-move_segment_code-i386.patch => patches/linux-2.6.18.8/linux-2.6.19-rc1-kexec-move_segment_code-i386.patch
rename : patches/linux-2.6.18/linux-2.6.19-rc1-kexec-move_segment_code-x86_64.patch => patches/linux-2.6.18.8/linux-2.6.19-rc1-kexec-move_segment_code-x86_64.patch
rename : patches/linux-2.6.18/net-csum.patch => patches/linux-2.6.18.8/net-csum.patch
rename : patches/linux-2.6.18/net-gso-5-rcv-mss.patch => patches/linux-2.6.18.8/net-gso-5-rcv-mss.patch
rename : patches/linux-2.6.18/pmd-shared.patch => patches/linux-2.6.18.8/pmd-shared.patch
rename : patches/linux-2.6.18/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch => patches/linux-2.6.18.8/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch
rename : patches/linux-2.6.18/series => patches/linux-2.6.18.8/series
rename : patches/linux-2.6.18/softlockup-no-idle-hz.patch => patches/linux-2.6.18.8/softlockup-no-idle-hz.patch
rename : patches/linux-2.6.18/x86-elfnote-as-preprocessor-macro.patch => patches/linux-2.6.18.8/x86-elfnote-as-preprocessor-macro.patch
rename : patches/linux-2.6.18/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.18.8/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch
rename : patches/linux-2.6.18/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.18.8/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch
rename : patches/linux-2.6.18/xen-hotplug.patch => patches/linux-2.6.18.8/xen-hotplug.patch
rename : patches/linux-2.6.18/xenoprof-generic.patch => patches/linux-2.6.18.8/xenoprof-generic.patch

17 years agoFix typo in 15598:d381e9278086085586.
Keir Fraser [Thu, 17 Jan 2008 14:35:38 +0000 (14:35 +0000)]
Fix typo in 15598:d381e9278086085586.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Remove broken and unnecessary numa code from smpboot.c.
Keir Fraser [Thu, 17 Jan 2008 14:00:54 +0000 (14:00 +0000)]
x86: Remove broken and unnecessary numa code from smpboot.c.
This was trampling on random memory when node==NUMA_NO_NODE.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   15246:4eb223694d0aa8dc6266621ead1eb590f1aa29cc
xen-unstable date:        Sun Jun 10 18:07:58 2007 +0100

17 years agoCleanup xenstore after console device teardown
Keir Fraser [Tue, 15 Jan 2008 11:19:14 +0000 (11:19 +0000)]
Cleanup xenstore after console device teardown

After the changes in 13616:b111908dd70b, DevController was leaking
xenstore entries every time we took down a console device, as there
was no equivalent to 'xenstore-rm -t' used in the hotplug scripts for
"real" devices. Implement the moral equivalent whenever removal is
forced.

Signed-off-by: John Levon <john.levon@sun.com>
17 years agovmx: Stupid typo in BUG_ON() stmt.
Keir Fraser [Tue, 15 Jan 2008 11:16:18 +0000 (11:16 +0000)]
vmx: Stupid typo in BUG_ON() stmt.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   15527:ff51ff907f8cce9d10296507e6c4c666cf603876
xen-unstable date:        Tue Jul 10 23:42:13 2007 +0100

17 years agohvm: Improve in-Xen PIO emulation to better handle string PIO
Keir Fraser [Sat, 12 Jan 2008 11:26:47 +0000 (11:26 +0000)]
hvm: Improve in-Xen PIO emulation to better handle string PIO
instructions.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16709:9862217f3c34
xen-unstable date:        Sat Jan 12 11:13:57 2008 +0000

17 years agosvm: Properly mask unsupported bits in CPUID_80000001_ECX.
Keir Fraser [Sat, 12 Jan 2008 09:38:25 +0000 (09:38 +0000)]
svm: Properly mask unsupported bits in CPUID_80000001_ECX.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16708:a30aabe3c84a
xen-unstable date:        Sat Jan 12 09:29:38 2008 +0000

17 years agoSync cpufeature.h with xen 3.2 branch.
Keir Fraser [Sat, 12 Jan 2008 09:37:57 +0000 (09:37 +0000)]
Sync cpufeature.h with xen 3.2 branch.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agovmx: Never use physical addresses above 4GB for VMCS state on i386.
Keir Fraser [Sat, 12 Jan 2008 09:35:06 +0000 (09:35 +0000)]
vmx: Never use physical addresses above 4GB for VMCS state on i386.

Thsi requires special allocation of the vlapic regs page, but does let
us get rid of some top-half writes to a few VMCS fields.

Assert a few more facts about the VMX_BASIC_MSR.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   15526:25a42f826a63
xen-unstable date:        Tue Jul 10 23:37:42 2007 +0100

17 years agox86_emulate: Near JMP (Grp5 /3) shoudl not write back to its operand.
Keir Fraser [Fri, 11 Jan 2008 11:08:52 +0000 (11:08 +0000)]
x86_emulate: Near JMP (Grp5 /3) shoudl not write back to its operand.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agohvm: hpet: Tidy up hpet_to_ns_limit calculation.
Keir Fraser [Fri, 11 Jan 2008 11:07:53 +0000 (11:07 +0000)]
hvm: hpet: Tidy up hpet_to_ns_limit calculation.
Suggested by Haitao Shan @ Intel.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16707:51aa2f884f6446b7e376a749ead8038359b70ec1
xen-unstable date:        Fri Jan 11 11:01:36 2008 +0000

17 years agovmxassist: Emulate CLTS.
Keir Fraser [Fri, 11 Jan 2008 11:07:11 +0000 (11:07 +0000)]
vmxassist: Emulate CLTS.
Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16706:f2b4779623d26e30ebd693a1cfccfe1162243191
xen-unstable date:        Fri Jan 11 10:59:48 2008 +0000

17 years agox86 hvm: hvm_maybe_deassert_evtchn_irq() needs to be called early in
Keir Fraser [Fri, 11 Jan 2008 11:06:22 +0000 (11:06 +0000)]
x86 hvm: hvm_maybe_deassert_evtchn_irq() needs to be called early in
vmexit handling, before IO-APIC can be EOIed or unmasked and resample
the fake INTx line.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16705:e4fd457a3dd5eebf059b49340bb7f3aea1239d8f
xen-unstable date:        Fri Jan 11 10:53:44 2008 +0000

17 years agox86_emulate: Certain opcodes are only valid with a memory operand.
Keir Fraser [Thu, 10 Jan 2008 22:58:05 +0000 (22:58 +0000)]
x86_emulate: Certain opcodes are only valid with a memory operand.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16703:c86025f569cb
xen-unstable date:        Thu Jan 10 22:52:40 2008 +0000

17 years agoFix network-bridge shell quoting.
Keir Fraser [Thu, 10 Jan 2008 15:31:27 +0000 (15:31 +0000)]
Fix network-bridge shell quoting.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   16702:850ec55df0dc9f831091155012bba0c613759470
xen-unstable date:        Thu Jan 10 15:30:46 2008 +0000

17 years agox86 hvm: Tolerate failure to complete INTACK cycle on an
Keir Fraser [Thu, 10 Jan 2008 11:54:59 +0000 (11:54 +0000)]
x86 hvm: Tolerate failure to complete INTACK cycle on an
interrupt. Failure can occur because we do not hold locks between
detecting a pending interrupt and acknowledging it. Satte can change
between these two points.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agohvm: Fix evtchn-to-fake-pci interrupt propagation.
Keir Fraser [Thu, 10 Jan 2008 11:49:19 +0000 (11:49 +0000)]
hvm: Fix evtchn-to-fake-pci interrupt propagation.

Previously the evtchn_upcall_pending flag would only ever be sampled
on VCPU0, possibly leading to long delays in deasserting the
fake-pci-device INTx line if the interrupt is actually delivered to
other than VCPU0.

Diagnosed by Ian Jackson <ian.jackson@eu.citrix.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16692:9865d5e82802fda2ac842c0c28a0833f2126551f
xen-unstable date:        Tue Jan 08 15:55:29 2008 +0000

17 years agox86_emulate: Correct RIP-relative addressing offset for SHLD/SHRD with
Keir Fraser [Thu, 10 Jan 2008 11:43:21 +0000 (11:43 +0000)]
x86_emulate: Correct RIP-relative addressing offset for SHLD/SHRD with
immediate byte third operand.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16696:b5b3e27f1af3f709a7795d407b567a7b4db533f0
xen-unstable date:        Wed Jan 09 10:11:31 2008 +0000

x86_emulate: Fix handling of RIP-relative addressing.
The handling of SHLD/SHRD introduced in 16696:b5b3e27f1af3f7 was
incorrect; thanks to Gary Grebus @ Virtual Iron for spotting it.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16699:7e400607cdd8aa810b96a832eaf8989f48dd6646
xen-unstable date:        Wed Jan 09 22:21:28 2008 +0000

17 years agoFix x86_emulate() handling of imul with immediate operands.
Keir Fraser [Thu, 10 Jan 2008 11:42:36 +0000 (11:42 +0000)]
Fix x86_emulate() handling of imul with immediate operands.

This fixes a repeatable crash in RHEL 4.2 ext2 filesystem during boot.

Signed-off-by: Gary Grebus <ggrebus@virtualiron.com>
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
xen-unstable changeset:   16695:4c1a0d2a318d5cd404f5411e31ba425f223a0e66
xen-unstable date:        Wed Jan 09 10:09:04 2008 +0000

17 years agox86: Fix a comment in get_page_type().
Keir Fraser [Thu, 10 Jan 2008 11:41:26 +0000 (11:41 +0000)]
x86: Fix a comment in get_page_type().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16694:15cfd1f8fa3897817baf7b6f8f4fffc738eb2690
xen-unstable date:        Tue Jan 08 16:45:08 2008 +0000

17 years agohvm: hpet: Clamp period to sane values to prevent excessive looping in
Keir Fraser [Thu, 10 Jan 2008 11:40:11 +0000 (11:40 +0000)]
hvm: hpet: Clamp period to sane values to prevent excessive looping in
hpet_timer_fn(), or excessive numbers of set_timer() callbacks.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16697:1b2be7cf0b7b4b639b7d6f027545930021ebe1e0
xen-unstable date:        Wed Jan 09 10:32:13 2008 +0000

17 years agohvm: hpet: Fix overflow when converting to nanoseconds.
Keir Fraser [Thu, 10 Jan 2008 11:39:23 +0000 (11:39 +0000)]
hvm: hpet: Fix overflow when converting to nanoseconds.

Currently in hpet_tick_to_ns, the approach is multiplying first, which
easily causes overflow when tick is quite large. The patch cannot
handle arbitratry large ticks duo to the precision requirement and
64bit's value range. But by optimize the equation, a larger ticks than
current code can be supported. Also an overflow check is added before
the calculation.

From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16693:9ff64d045e61e7db6844b3db473e660e8c7e0551
xen-unstable date:        Tue Jan 08 16:20:04 2008 +0000

17 years agohvm: time: Fixes to 'SYNC' (no_missed_ticks_pending) timer handling.
Keir Fraser [Thu, 10 Jan 2008 11:38:10 +0000 (11:38 +0000)]
hvm: time: Fixes to 'SYNC' (no_missed_ticks_pending) timer handling.
Based on a patch by Dave Winchell <dwinchell@virtualiron.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16690:01adaec882d4ea62aede17926716d122b084dd94
xen-unstable date:        Tue Jan 08 14:31:23 2008 +0000

17 years agohvm: hpet: Fix per-timer enable/disable.
Keir Fraser [Thu, 10 Jan 2008 11:37:32 +0000 (11:37 +0000)]
hvm: hpet: Fix per-timer enable/disable.

The enable/disable per timer interrupt bit is wrongly used as per
timer enable/disable. According to spec, comparator value should
constantly increasing when HPET is globally enabled, no matter
whether the timer interrupt is enabled or not.

From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16689:66db23ecd5628d87890abe0744ae3dc20b62bced
xen-unstable date:        Tue Jan 08 13:57:45 2008 +0000

17 years agoHandle netdev secondary addresses and labels
Keir Fraser [Thu, 10 Jan 2008 11:35:34 +0000 (11:35 +0000)]
Handle netdev secondary addresses and labels

Fix the network-bridge logic to correctly transfer secondary IP
address from $netdev to $bridge.

e.g. if you add an secondary address/label/alias with:

  $> ip addr add 172.31.0.200/24 dev eth0 label eth0:00

then, "ip addr show dev eth0" gives e.g.:

  inet 172.31.0.10/24 brd 172.31.0.255 scope global eth0
  inet 172.31.0.200/24 scope global secondary eth0:00

and transfer_addrs() tries to execute:

  ip addr add 172.31.0.10/24 brd 172.31.0.255 scope global dev
  tmpbridge
  ip addr add 172.31.0.200/24 scope global secondary dev tmpbridge:00

which causes the sript to fail because:

  1) The device tmpbridge:00 doesn't exist
  2) The "secondary" flag isn't valid

This patch fixes the sed commands to instead give:

  ip addr add 172.31.0.10/24 brd 172.31.0.255 scope global dev
  tmpbridge label tmpbridge
  ip addr add 172.31.0.200/24 scope global dev tmpbridge label
  tmpbridge:00

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
xen-unstable changeset:   16680:7b7700a30e5280d57ecb9a284ee943aa80ae37f0
xen-unstable date:        Tue Jan 08 09:43:44 2008 +0000

17 years agoHVM vif without bridge.
Keir Fraser [Thu, 10 Jan 2008 11:34:38 +0000 (11:34 +0000)]
HVM vif without bridge.
When using xen without a bridge but NAT or routing, HVM domains can't
boot, and qemu-dm-n.log contains:

config qemu network with xen bridge for  tap0 xenbr0
bridge xenbr0 does not exist!

That's because the qemu-ifup script always tries to add the vif to
a default-named xenbr0 bridge. On the contrary, PV domains just work
fine with the same configuration file except HVM parameters.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
xen-unstable changeset:   16679:60440a7e7a40c0cfe94f7abcbde82ea2c6e123fe
xen-unstable date:        Tue Jan 08 09:40:33 2008 +0000

17 years agoppoll/pselect x86/64 support.
Keir Fraser [Thu, 10 Jan 2008 11:32:19 +0000 (11:32 +0000)]
ppoll/pselect x86/64 support.

x86_64: Add ppoll/pselect syscalls (from upstream Linux)

Needed TIF_RESTORE_SIGMASK first

Signed-off-by: Andi Kleen <ak@suse.de>
linux-2.6.18-xen changeset:   376:353802ec1caf399143e48713a04cedd37a106347
linux-2.6.18-xen date:        Wed Jan 09 22:12:32 2008 +0000

x86_64: Add TIF_RESTORE_SIGMASK (from upstream Linux)

We need TIF_RESTORE_SIGMASK in order to support ppoll() and pselect()
system calls. This patch originally came from Andi, and was based
heavily on David Howells' implementation of same on i386. I fixed a
typo which was causing do_signal() to use the wrong signal mask.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andi Kleen <ak@suse.de>
linux-2.6.18-xen changeset:   375:748cd890ea7f56752311e519e80eece9d850c01a
linux-2.6.18-xen date:        Wed Jan 09 22:12:04 2008 +0000

17 years agoxen vtpm: Initialize the comms ring with zeroes.
Keir Fraser [Thu, 10 Jan 2008 11:28:03 +0000 (11:28 +0000)]
xen vtpm: Initialize the comms ring with zeroes.

Initialize the ring with zeroes on the backend side and on the
frontend set the 'unused' member to zeroes.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
linux-2.6.18-xen changeset:   374:fedc10fba9f1d5ec0c72dbcbca87e508222b4c48
linux-2.6.18-xen date:        Tue Jan 08 09:55:29 2008 +0000

17 years agovmx: Fix crash during domain destruction after apic-access cleanup patch.
Keir Fraser [Fri, 28 Dec 2007 16:00:43 +0000 (16:00 +0000)]
vmx: Fix crash during domain destruction after apic-access cleanup patch.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoRename uintN_t guest handles to uintN, to avoid nameclash with uintN_t
Keir Fraser [Fri, 28 Dec 2007 15:52:50 +0000 (15:52 +0000)]
Rename uintN_t guest handles to uintN, to avoid nameclash with uintN_t
macros during the handle definitions.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16674:ad0f20f5590a
xen-unstable date:        Fri Dec 28 15:44:51 2007 +0000

17 years agoIn C99 (7.19.6.2.10), the behavior of scanf("stuff... %n", ..., &n) is
Keir Fraser [Fri, 28 Dec 2007 15:47:10 +0000 (15:47 +0000)]
In C99 (7.19.6.2.10), the behavior of scanf("stuff... %n", ..., &n) is
said to be undefined if the value to be put is n can't fit.  I guess
we can safely consider that the same applies to printf.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
xen-unstable changeset:   16671:19f549449cb5
xen-unstable date:        Fri Dec 28 15:23:28 2007 +0000

17 years agovmx: Do not allow emulated accesses to the vlapic mmap'ed 'magic
Keir Fraser [Thu, 27 Dec 2007 22:57:41 +0000 (22:57 +0000)]
vmx: Do not allow emulated accesses to the vlapic mmap'ed 'magic
page'.

This is the equivalent of:
xen-unstable changeset:   16663:d5f0afb58589
xen-unstable date:        Thu Dec 27 12:03:02 2007 +0000

17 years agoSimplify APIC_ACCESS VMX support.
Keir Fraser [Thu, 27 Dec 2007 22:50:59 +0000 (22:50 +0000)]
Simplify APIC_ACCESS VMX support.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   15186:96a59a5ae656
xen-unstable date:        Wed May 30 17:01:26 2007 +0100

17 years agox86, hvm, rombios: INT13 LBA48 support for disks bigger than 128GB.
Keir Fraser [Thu, 27 Dec 2007 22:34:52 +0000 (22:34 +0000)]
x86, hvm, rombios: INT13 LBA48 support for disks bigger than 128GB.
The new limit should be 2TB.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
xen-unstable changeset:   16669:7fbc521b07a9
xen-unstable date:        Thu Dec 27 13:00:40 2007 +0000

17 years agoFix pygrub handling of many kernels
Keir Fraser [Thu, 27 Dec 2007 22:34:26 +0000 (22:34 +0000)]
Fix pygrub handling of many kernels

If there are a large number of kernel images configured in grub.conf
there will be too many to fit in the limited size pygrub display. This
patch fixes this so that the list of kernels scrolls as needed.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
xen-unstable changeset:   16668:50bd5d2c15cf
xen-unstable date:        Thu Dec 27 12:56:32 2007 +0000

17 years agoFix xend xenstore handling.
Keir Fraser [Thu, 27 Dec 2007 22:33:47 +0000 (22:33 +0000)]
Fix xend xenstore handling.

xend can get into a situation where two processes are attempting to
interact with the xenstore socket, with disastrous results. Fix the
two bad users of xstransact, add a big warning, and fix the destructor
so future mistakes will be detected earlier.

Signed-off-by: John Levon <john.levon@sun.com>
xen-unstable changeset:   16664:9fe92a88912b
xen-unstable date:        Thu Dec 27 12:27:34 2007 +0000

17 years agohvm: For functions which translate virtual addresses to machine
Keir Fraser [Thu, 27 Dec 2007 22:32:24 +0000 (22:32 +0000)]
hvm: For functions which translate virtual addresses to machine
addresses, page faults should only be raised when the gva->gfn
translation fails. These should be distinguished from gfn->mfn
translation failures.

The main effect of this is to change the behaviour of functions
derived from __hvm_copy(), which now returns a three-way enumeration,
and also can automatically inject #PF when the gva->gfn translation
fails.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16662:e818c24cec03
xen-unstable date:        Thu Dec 27 12:00:30 2007 +0000

17 years agohvm: Register fields CS,DS,ES,FS,GS,SS,etc. are all undefined during
Keir Fraser [Thu, 27 Dec 2007 21:55:38 +0000 (21:55 +0000)]
hvm: Register fields CS,DS,ES,FS,GS,SS,etc. are all undefined during
HVM execution as they are not saved/restore on vmexit/vmentry. To
prevent accidental usage of these fields, poison them with 16-bit
value 0xbeef (debug builds only).
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16660:2324110ef2c6
xen-unstable date:        Thu Dec 27 10:39:04 2007 +0000

17 years agohvm: More physaddrs in unsigned longs.
Keir Fraser [Thu, 27 Dec 2007 21:46:32 +0000 (21:46 +0000)]
hvm: More physaddrs in unsigned longs.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   16657:3f0f0bd3f1c1
xen-unstable date:        Fri Dec 21 21:59:50 2007 +0000

x86: Fix PAE build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16659:717f0dce76e7
xen-unstable date:        Sat Dec 22 10:27:26 2007 +0000

17 years agoxend: Clean up hvm_build Python wrapper. Python code can get/set hvm
Keir Fraser [Thu, 20 Dec 2007 14:57:03 +0000 (14:57 +0000)]
xend: Clean up hvm_build Python wrapper. Python code can get/set hvm
params directly.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16116:1f893d055c6f79d719199d6eac139165295713a0
xen-unstable date:        Tue Oct 16 10:27:55 2007 +0100