]> xenbits.xensource.com Git - people/vhanquez/xen.git/log
people/vhanquez/xen.git
16 years agoxc_ptrace: Allow gdbserver to connect to a guest before APs are
Keir Fraser [Thu, 16 Oct 2008 17:25:23 +0000 (18:25 +0100)]
xc_ptrace: Allow gdbserver to connect to a guest before APs are
brought online.

Signed-off-by: Kip Macy <kmacy@freebsd.org>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18565:8dc05a2b3beb
xen-unstable date:        Thu Oct 02 11:32:08 2008 +0100

16 years agoxend: Move some backend configuration info.
Keir Fraser [Thu, 16 Oct 2008 17:24:40 +0000 (18:24 +0100)]
xend: Move some backend configuration info.

This patch moves some dom0 variables and backend device
configuration from frontend directories to
/local/domain/<backdomid>/backend or /vm.

Also,
- /vm_path/<domid> is introduced, referencing the /vm path
- /vm_path/device/backend holds the backend device location,
  rather than storing it in the frontend directory

Signed-off-by: Pascal Bouchareine <pascal@gandi.net>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18562:616eea24aefa
xen-unstable date:        Wed Oct 01 13:35:39 2008 +0100

xend: Fixes after backend xenstore config changes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18563:ab19284c5070
xen-unstable date:        Wed Oct 01 14:07:17 2008 +0100

xend: Make only selected subdirs of /local/domain/<domid> writable by
the guest.

This protects critical data like
/local/domain/<domid>/console/{tty,limit}. It also means we can trust
.../vm, and hence do not need /vm_path. Various parts of the previous
two changesets disappear.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18564:60937c4c5a67
xen-unstable date:        Thu Oct 02 10:37:28 2008 +0100

xend: Fix typo _gatherDom -> gatherDom.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
xen-unstable changeset:   18579:1e37779bf884
xen-unstable date:        Thu Oct 09 10:06:50 2008 +0100

xend: Fix dev backend path construction.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
xen-unstable changeset:   18615:0c64c5fe261b
xen-unstable date:        Mon Oct 13 10:03:36 2008 +0100

16 years agoxc_save: use correct size when unmapping live p2m.
Keir Fraser [Thu, 16 Oct 2008 17:17:18 +0000 (18:17 +0100)]
xc_save: use correct size when unmapping live p2m.

Otherwise we unmap a larger region than was mapped when saving 32 bit
guest from 64 bit tools, leading to badness.

The equivalent change was made to the restore code in
18329:ca7dd77d5365

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   18558:ccf0205255e1
xen-unstable date:        Mon Sep 29 11:00:29 2008 +0100

16 years agox86: change _PAGE_GNTTAB
Keir Fraser [Thu, 16 Oct 2008 17:16:19 +0000 (18:16 +0100)]
x86: change _PAGE_GNTTAB

Since Linux started to use one of the 3 low available bits, _PAGE_IO
needed to be moved to a different one. Not remembering about
_PAGE_GNTTAB in debug hypervisors, I ended up assigning it to the same
bit, which made the kernel fail on the debug hypervisor. However,
rather than fixing the kernel it seems more appropriate for the
hypervisor to stay away from these bits, not the least because its
definition was anyway accompanied by a warning that this may be
incompatible with certain OSes.

While obviously the hypervisor has to use some bit (and it's therefore
unavoidable that there's some risk of collision), using one of the
high available bits seems to be the better choice over using one of
the three low ones. Since in 32-bit mode these bits are reserved, the
patch disables the functionality here. The only reasonable alternative
I would see is to disable the functionality by default, but add a
command line option to specify which bit to use.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   18538:7750906b06b3
xen-unstable date:        Wed Sep 24 10:23:51 2008 +0100

16 years agoxentop: Fix display of long domain names.
Keir Fraser [Thu, 16 Oct 2008 17:15:00 +0000 (18:15 +0100)]
xentop: Fix display of long domain names.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18522:ae24b533dc9d
xen-unstable date:        Mon Sep 22 14:04:27 2008 +0100

16 years agoxc_save/xc_restore: Fix wrong data type
Keir Fraser [Thu, 16 Oct 2008 17:14:23 +0000 (18:14 +0100)]
xc_save/xc_restore: Fix wrong data type

xc_interface_open() may return -1, but if we define xc_fd as unsigned
int, then -1 will be > 0.

Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18510:694b7daa353c
xen-unstable date:        Wed Sep 17 14:16:02 2008 +0100

16 years agoCheck the existence of serial port before using
Keir Fraser [Thu, 16 Oct 2008 17:12:57 +0000 (18:12 +0100)]
Check the existence of serial port before using

Signed-off-by: Huacai Chen <huacai.chen@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18473:982e6fce0e47
xen-unstable date:        Fri Sep 12 11:43:47 2008 +0100

16 years agovt-d: Set agaw properly for vt-d passthrough translation.
Keir Fraser [Wed, 8 Oct 2008 09:06:11 +0000 (10:06 +0100)]
vt-d: Set agaw properly for vt-d passthrough translation.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
16 years agoAdded tag RELEASE-3.2.2 for changeset dca3b5e459e3e50354d336d81bcc278b6f48b0c0
Keir Fraser [Wed, 17 Sep 2008 14:46:15 +0000 (15:46 +0100)]
Added tag RELEASE-3.2.2 for changeset dca3b5e459e3e50354d336d81bcc278b6f48b0c0

16 years agoUpdate Xen version for 3.2.2 RELEASE-3.2.2
Keir Fraser [Wed, 17 Sep 2008 14:46:05 +0000 (15:46 +0100)]
Update Xen version for 3.2.2

16 years agoxenstore: Fix a memory leak in 'xs_is_domain_introduced'.
Keir Fraser [Fri, 12 Sep 2008 10:06:40 +0000 (11:06 +0100)]
xenstore: Fix a memory leak in 'xs_is_domain_introduced'.

Signed-off-by: Konrad Rzeszutek <konrad@virtualiron.com>
xen-unstable changeset:   18469:346c073ed6a4f0debca36588039d649e2efd93c3
xen-unstable date:        Thu Sep 11 18:00:06 2008 +0100

16 years agoxendomains script: A few bug fixes.
Keir Fraser [Thu, 11 Sep 2008 15:02:20 +0000 (16:02 +0100)]
xendomains script: A few bug fixes.

Contributed-by: Artur Linhart <AL.LINUX@bcpraha.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   18465:01c8ccb551b0d4f860a4e78237de9b70baed48ba
xen-unstable date:        Thu Sep 11 15:16:11 2008 +0100

16 years agoioemu: Fix bug in map cache
Keir Fraser [Thu, 11 Sep 2008 15:01:59 +0000 (16:01 +0100)]
ioemu: Fix bug in map cache

This small patch fixes an issue leading to a crash (segfault, although
with earlier changesets I was seeing sigbus - not sure what changed)
in qemu-dm when the following conditions occur:

1. A valid mapping for a bucket on a low address exists

2. Immediately after accessing memory mapped in this bucket, an access
occurs to a high (beyond assigned ram) address beyond the 1GB limit
for 32bit map cache wrapping around to the previous bucket's entry
number.

3. The next call to map cache again accesses the low address.

In this scenario, the guest mem for the low bucket has been unmapped
by the remap_bucket caused by 2., but because the valid_mapping
bit-test fails, map_cache returns before last_address_index has been
updated. The subsequent call to map_cache therefore never remaps the
low, valid bucket and instead returns a vaddr pointing to memory that
has failed to get mapped.

Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
xen-unstable changeset:   18450:5a6f5b4b5fb3418502defc4c3fc3a8280dd98195
xen-unstable date:        Tue Sep 09 15:05:58 2008 +0100

16 years agoFix HVM guest's save/restore by ignoring the null cdrom string
Keir Fraser [Fri, 5 Sep 2008 11:41:38 +0000 (12:41 +0100)]
Fix HVM guest's save/restore by ignoring the null cdrom string

When we use qcow in hvm config file, like
disk=['tap:qcow:/img/qcow.img,hda,w',',hdc:cdrom,r'],
HVM guest restore would fail.
The patch fixes the issue by ignoring the null cdrom string.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
16 years agoUpdate Xen version for 3.2.2-rc5-pre
Keir Fraser [Wed, 3 Sep 2008 09:53:33 +0000 (10:53 +0100)]
Update Xen version for 3.2.2-rc5-pre

16 years agoAdded tag 3.2.2-rc4 for changeset 9e5d6995928e1ffc2fd84e4fdfc86d9e0cc8ab4a
Keir Fraser [Wed, 3 Sep 2008 09:53:15 +0000 (10:53 +0100)]
Added tag 3.2.2-rc4 for changeset 9e5d6995928e1ffc2fd84e4fdfc86d9e0cc8ab4a

16 years agoUpdate Xen version for 3.2.2-rc4 3.2.2-rc4
Keir Fraser [Wed, 3 Sep 2008 09:53:09 +0000 (10:53 +0100)]
Update Xen version for 3.2.2-rc4

16 years agotools/xenmon/Makefile: Move LDFLAGS after $<
Keir Fraser [Thu, 28 Aug 2008 10:58:12 +0000 (11:58 +0100)]
tools/xenmon/Makefile: Move LDFLAGS after $<

gcc expects libraries needed for object files to be specified after
the object. Linking usually does not fail, unless it is optimized (for
instance, using -Wl,-as-needed).

The related Gentoo bug is 135145 [ https://bugs.gentoo.org/135145 ].

From: Robert Buchholz <rbu@gentoo.org>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18386:ab8212bd5604f58635e2b8bc6ffec6eddd211cf9
xen-unstable date:        Wed Aug 27 15:02:38 2008 +0100

16 years agoFall back to a timer linked list when the timer heap overflows.
Keir Fraser [Thu, 28 Aug 2008 10:56:19 +0000 (11:56 +0100)]
Fall back to a timer linked list when the timer heap overflows.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18381:070688cdf62c7a1ed78404e5277ece18a9b88364
xen-unstable date:        Wed Aug 27 13:24:35 2008 +0100

16 years agoUse 'gcc -v 2>&1 | tail -1' to extract gcc version.
Keir Fraser [Thu, 28 Aug 2008 10:49:14 +0000 (11:49 +0100)]
Use 'gcc -v 2>&1 | tail -1' to extract gcc version.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18380:6c6bda7f09cde36fa875941d7202e77620fdc687
xen-unstable date:        Wed Aug 27 11:47:02 2008 +0100

16 years agox86: Assert in_irq() while processing guest-bound interrupts.
Keir Fraser [Thu, 28 Aug 2008 10:48:36 +0000 (11:48 +0100)]
x86: Assert in_irq() while processing guest-bound interrupts.

Actually a fair amount of infrastructure is onvolved these days, and
we'd like subsystems we call into know that we're in IRQ context so
they can handle that or BUG/ASSERT if appropriate.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18377:2986c11b7edf4b1242cace49e1b317a10560eada
xen-unstable date:        Wed Aug 27 10:11:33 2008 +0100

16 years agoUpdate Xen version for 3.2.2-rc4-pre
Keir Fraser [Fri, 22 Aug 2008 13:30:46 +0000 (14:30 +0100)]
Update Xen version for 3.2.2-rc4-pre

16 years agoAdded tag 3.2.2-rc3 for changeset 693b5255bb9c4e2234af03a52e79ed29494a3e9b
Keir Fraser [Fri, 22 Aug 2008 13:30:26 +0000 (14:30 +0100)]
Added tag 3.2.2-rc3 for changeset 693b5255bb9c4e2234af03a52e79ed29494a3e9b

16 years agoUpdate Xen version for 3.2.2-rc3 3.2.2-rc3
Keir Fraser [Fri, 22 Aug 2008 13:30:19 +0000 (14:30 +0100)]
Update Xen version for 3.2.2-rc3

16 years agoPV-on-HVM: unmask_evtchn() must always use hypercall.
Keir Fraser [Thu, 21 Aug 2008 08:53:08 +0000 (09:53 +0100)]
PV-on-HVM: unmask_evtchn() must always use hypercall.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18354:1ea9dd2c7331a7ac22e0debc749316840ce5fdca
xen-unstable date:        Thu Aug 21 09:51:46 2008 +0100

16 years agodomctl: ssidref is not initialized if !XSM_ENABLE
Keir Fraser [Wed, 20 Aug 2008 08:08:30 +0000 (09:08 +0100)]
domctl: ssidref is not initialized if !XSM_ENABLE

The ssidref in getdomaininfo() is not initialized when XSM_ENABLE is
not defined. So, xentop might display a wrong value of ssid.

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
xen-unstable changeset:   18346:56770e3eb76e123632962522d99b45a984b282c0
xen-unstable date:        Wed Aug 20 09:06:58 2008 +0100

16 years agox86: update ioport_quirks_tbl[] for the proliant DL7xx
Keir Fraser [Mon, 18 Aug 2008 09:49:07 +0000 (10:49 +0100)]
x86: update ioport_quirks_tbl[] for the proliant DL7xx

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   18336:9eb8bbfbaa064d6ba760d85a18e3d1553adb1d44
xen-unstable date:        Mon Aug 18 10:47:54 2008 +0100

16 years agovtd: only use pass_thru for Domain0 (if HW supports it).
Keir Fraser [Mon, 18 Aug 2008 09:46:25 +0000 (10:46 +0100)]
vtd: only use pass_thru for Domain0 (if HW supports it).

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
16 years agoFix restore crash with certain guest memory sizes
Keir Fraser [Thu, 14 Aug 2008 09:21:30 +0000 (10:21 +0100)]
Fix restore crash with certain guest memory sizes

This fixes a crash when restoring guests with certain memory sizes (eg
223MB).  The ROUNDUP in the call to memcpy, was the main offender, but
I didn't care for the inplace resizing of the p2m entries either.

Signed-off-by: Bruce Rogers <brogers@novell.com>
xen-unstable changeset:   18329:ca7dd77d53652aa55be27746540ec50cb9608ec4
xen-unstable date:        Thu Aug 14 10:18:08 2008 +0100

16 years agox86 mcheck: mce_disabled is not __initdata: it's referenced on S3 resume
Keir Fraser [Wed, 13 Aug 2008 09:02:07 +0000 (10:02 +0100)]
x86 mcheck: mce_disabled is not __initdata: it's referenced on S3 resume
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18316:08ff587400ba851fa420e2c550500c04c56bf44f
xen-unstable date:        Wed Aug 13 09:57:42 2008 +0100

16 years agox86: Update guest timestamps on frequency change.
Keir Fraser [Fri, 8 Aug 2008 11:09:50 +0000 (12:09 +0100)]
x86: Update guest timestamps on frequency change.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18267:c386106f9638e58fd0120d7e95205b56564416ab
xen-unstable date:        Fri Aug 08 12:08:09 2008 +0100

16 years agox86: Actually mdelay() in machine_restart().
Keir Fraser [Tue, 5 Aug 2008 08:26:22 +0000 (09:26 +0100)]
x86: Actually mdelay() in machine_restart().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18234:87300352440be551f6ac8832d1d697b081f06ea4
xen-unstable date:        Tue Aug 05 09:25:10 2008 +0100

16 years agoDelay 5 seconds on reboot *after* stopping all CPUs.
Keir Fraser [Mon, 4 Aug 2008 10:01:43 +0000 (11:01 +0100)]
Delay 5 seconds on reboot *after* stopping all CPUs.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18213:0c857419d354804ec4cf1548c4fd06bc4e26047e
xen-unstable date:        Mon Aug 04 10:59:22 2008 +0100

16 years agopv-on-hvm: Update for linux-2.6.18-xen.hg:623:2866e6af50
Keir Fraser [Thu, 31 Jul 2008 14:35:46 +0000 (15:35 +0100)]
pv-on-hvm: Update for linux-2.6.18-xen.hg:623:2866e6af50
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18199:39f2dfacbcadc44a55fcae0678ec0d2f81f4ba61
xen-unstable date:        Thu Jul 31 15:34:58 2008 +0100

16 years agoUpdate Xen version for 3.3.0-rc3-pre
Keir Fraser [Thu, 31 Jul 2008 10:56:17 +0000 (11:56 +0100)]
Update Xen version for 3.3.0-rc3-pre

16 years agoAdded tag 3.2.2-rc2 for changeset b5e9d7ce125518764d040662ab66bea0fd732584
Keir Fraser [Thu, 31 Jul 2008 10:55:56 +0000 (11:55 +0100)]
Added tag 3.2.2-rc2 for changeset b5e9d7ce125518764d040662ab66bea0fd732584

16 years agoUpdate Xen version for 3.2.2-rc2 3.2.2-rc2
Keir Fraser [Thu, 31 Jul 2008 10:55:49 +0000 (11:55 +0100)]
Update Xen version for 3.2.2-rc2

16 years agoevtchn: Avoid spurious event-channel notifications across unbind/bind.
Keir Fraser [Thu, 31 Jul 2008 10:24:23 +0000 (11:24 +0100)]
evtchn: Avoid spurious event-channel notifications across unbind/bind.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Huacai Chen <huacai.chen@intel.com>
xen-unstable changeset:   18182:482c16b55c28cd8dfc7b6dc93d0987f0b7bed42d
xen-unstable date:        Thu Jul 31 11:13:30 2008 +0100

16 years agogrant_table: Remove compat-shim BUG_ON() which can fail if
Keir Fraser [Wed, 30 Jul 2008 14:25:59 +0000 (15:25 +0100)]
grant_table: Remove compat-shim BUG_ON() which can fail if
GMFN==INVALID (~0UL).

Found by Diego Ongaro <diego.ongaro@citrix.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18177:9ee2e41a68a1fc05d7fd15f00d87ebd0e1818b93
xen-unstable date:        Wed Jul 30 15:25:09 2008 +0100

16 years agoHandle DRHDs with different supported AGAWs.
Keir Fraser [Tue, 29 Jul 2008 15:13:15 +0000 (16:13 +0100)]
Handle DRHDs with different supported AGAWs.

This changeset is back-ported from xen-unstable.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
The original description of the changeset is:

vtd: Various cleanups and fixes:
* Handle DRHDs with different supported AGAWs. To support this we
create page tables which always have 4 levels, and skip top levels
for units which support only 2 or 3 levels.
* Handle systems with mixed DRHD support for cache snooping. We must
pessimistically CLFLUSH if any DRHD does not support snooping.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 17755:ecd266cebcab648132d432899eabaecf8a168508
xen-unstable date: Fri May 30 15:06:08 2008 +0100

16 years agoUpdate Xen version for 3.2.2-rc2-pre
Keir Fraser [Fri, 25 Jul 2008 14:04:26 +0000 (15:04 +0100)]
Update Xen version for 3.2.2-rc2-pre

16 years agoAdded tag 3.2.2-rc1 for changeset 3c7ebd0b26aeb70772e932c2f359261a0a7b7285
Keir Fraser [Fri, 25 Jul 2008 14:03:53 +0000 (15:03 +0100)]
Added tag 3.2.2-rc1 for changeset 3c7ebd0b26aeb70772e932c2f359261a0a7b7285

16 years agoUpdate Xen version for 3.2.2-rc1 3.2.2-rc1
Keir Fraser [Fri, 25 Jul 2008 14:03:46 +0000 (15:03 +0100)]
Update Xen version for 3.2.2-rc1

16 years agovtd: During parsing DMAR table, if find RMRR is incorrect, return error.
Keir Fraser [Fri, 25 Jul 2008 13:04:17 +0000 (14:04 +0100)]
vtd: During parsing DMAR table, if find RMRR is incorrect, return error.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset: 18114:ba6be1571cc628298c5a0666f261b660fdcaeac0
xen-unstable date: Wed Jul 23 09:58:48 2008 +0100

16 years agovt-d: add timeout in the infinite loop.
Keir Fraser [Fri, 25 Jul 2008 13:03:59 +0000 (14:03 +0100)]
vt-d: add timeout in the infinite loop.
This changeset is back-ported from xen-unstable.
The original description of the changeset is:

vt-d: Fix a bug in addr_to_dma_page_maddr(), and add timeout in
infinite loop

In addr_to_dma_page_maddr(), pte should not be used after
unmap_vtd_domain_page(parent). In addition, timeout is added in some
infinite loops.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset: 17491:da261c25f160ae3cddea1a4e5d1b045cceb7e03b
xen-unstable date: Tue Apr 22 10:20:05 2008 +0100

Considering Xen 3.2, we have no bug in addr_to_dma_page(); for the
timeout, we still use the jiffies based method.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
16 years agovt-d: for 32-bit Xen, we disable VT-d table output on DMA page faults.
Keir Fraser [Fri, 25 Jul 2008 13:03:36 +0000 (14:03 +0100)]
vt-d: for 32-bit Xen, we disable VT-d table output on DMA page faults.

This changeset is back-ported from xen-unstable.
The original description of the changeset is:

vt-d: Disable VT-d table output on DMA page faults

Printing VT-d tables requires map_domain_page() which can not be
called from interrupt context (on x86_32).

Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
xen-unstable changeset: 18066:cec304746b360d0fccb2ab3944787bfb912902cb
xen-unstable date: Wed Jul 16 11:15:14 2008 +0100

Considering Xen 3.2, for 32-bit Xen, maddr_to_virt() can not be used
in print_vtd_entries() since the pages (except the pgd) are allocated
from domheap.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
16 years agovt-d: Disable VT-d if parsing ACPI DMAR fails
Keir Fraser [Fri, 18 Jul 2008 10:30:29 +0000 (11:30 +0100)]
vt-d: Disable VT-d if parsing ACPI DMAR fails

Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
xen-unstable changeset: 18051:e3ead65e75b2e03638c032566033417ed742cd2a
xen-unstable date: Mon Jul 14 15:20:35 2008 +0100

16 years agovt-d: Fix double spin_lock_irqsave().
Keir Fraser [Fri, 18 Jul 2008 10:30:12 +0000 (11:30 +0100)]
vt-d: Fix double spin_lock_irqsave().

The duplicate spin_lock_irqsave() flushes the original EFLAGS saved,
and thus disables local irqs permanently.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
16 years agoVT-d: flush iotlb of selective iommu when a domain's VT-d table is changed
Keir Fraser [Fri, 18 Jul 2008 10:29:53 +0000 (11:29 +0100)]
VT-d: flush iotlb of selective iommu when a domain's VT-d table is changed

When a domain's VT-d table is changed, only the iommus under which the
domain has assigned devices need to be flushed.

Signed-off-by: Yang, Xiaowei <xiaowei.yang@intel.com>
xen-unstable changeset: 17725:9a7a6f729d2c0352a772aa274454dee1c96faa5a
xen-unstable date: Mon May 26 08:25:36 2008 +0100

16 years agoVT-d: remove Xen and tboot range from dom0's VT-d table
Keir Fraser [Fri, 18 Jul 2008 10:29:29 +0000 (11:29 +0100)]
VT-d: remove Xen and tboot range from dom0's VT-d table

This a step forward to fix the security hole introduced by dom0's 1:1
mapping VT-d table: remove the critical code and data from it. The
more flexible solution is to update dom0's VT-d table on demand as
what will be done for other PV domains. However, there could bring a
performance issue even with software optimization. Iotlb flush of some
hardware is time-consuming.

Signed-off-by: Yang, Xiaowei <xiaowei.yang@intel.com>
xen-unstable changeset 17725:c0c0f4fa88509b6f5e4fa9bf0687c7a6df53eeb8
xen-unstable date: Mon May 26 08:24:55 2008 +0100

----------------------------------------------------------------------

Fix 17725:c0c0f4fa8850: use type paddr_t instead of unsigned long for
physcial memory address Otherwise, the address overflows on PAE system
with memory size > 4G.

Signed-off-by: Yang, Xiaowei <xiaowei.yang@intel.com>
xen-unstable changeset 17734:e265878e8f657ca532ebe98b5bac233f395f2814
xen-unstable date: Tue May 27 10:35:10 2008 +0100

16 years agoIntel VTD: Ignore USB RMRR for HVM guest
Keir Fraser [Fri, 18 Jul 2008 10:28:58 +0000 (11:28 +0100)]
Intel VTD: Ignore USB RMRR for HVM guest

USB controller RMRR (0xed000 - 0xeffff) conflicts with HVM guest bios
region. Setting identity mapping for it will cover the guest bios
region in p2m table. This causes system crash.

As VT-d spec says, USB controller RMRR is used in case of DMA
performed by a USB controller under BIOS SMM control for legacy
keyboard emulation. Whereas, current guest BIOS doesn't support
emulating stardand Keyboard/mouse, and it also doesn't support SMM
mode. Actually it is no chance to use USB controller RMRR now.

This patch ignores the USB controller RMRR for HVM guest.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset 17248:70f9a2110421cc6f4ce066eb80d4c639a28643bd
xen-unstable date: Wed Mar 19 10:22:49 2008 +0000

16 years agoxend: Replace stray tab-indent with space-indent
Keir Fraser [Wed, 2 Jul 2008 10:53:16 +0000 (11:53 +0100)]
xend: Replace stray tab-indent with space-indent

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
xen-unstable changeset:   17941:40e7329105fa47b2c2ee5d608e3061e527e07eeb
xen-unstable date:        Wed Jul 02 09:42:37 2008 +0100

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