]> xenbits.xensource.com Git - people/vhanquez/xen.git/log
people/vhanquez/xen.git
15 years agox86 hvm: Fix guest boot on AMD K8 machine 3.2-testing
Keir Fraser [Thu, 1 Oct 2009 11:33:00 +0000 (12:33 +0100)]
x86 hvm: Fix guest boot on AMD K8 machine

A bug has been introduced in Xen 3.2.2 (and still reproducable with
Xen 3.2.3) which causes the guest to freeze at boot and xen floods the
console with this message:
(XEN) platform.c:1049:d6 handle_mmio: failed to get instruction
(XEN) instrlen.c:252:d6 Cannot read from address 802eb001 (eip
802eb001, mode=2)

The problem is reproducible on AMD K8 machines.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
16 years agoAdded tag RELEASE-3.2.3 for changeset 5d8d9403a7d166614a8c47ead949ca0893650751
Keir Fraser [Mon, 5 Jan 2009 11:11:53 +0000 (11:11 +0000)]
Added tag RELEASE-3.2.3 for changeset 5d8d9403a7d166614a8c47ead949ca0893650751

16 years agoUpdate Xen version for 3.2.3 RELEASE-3.2.3
Keir Fraser [Mon, 5 Jan 2009 11:11:45 +0000 (11:11 +0000)]
Update Xen version for 3.2.3

16 years agoAdded tag 3.2.3-rc4 for changeset 3c96a21a35b3d644cebcb8c56e61d2eed20ec803
Keir Fraser [Fri, 19 Dec 2008 15:15:34 +0000 (15:15 +0000)]
Added tag 3.2.3-rc4 for changeset 3c96a21a35b3d644cebcb8c56e61d2eed20ec803

16 years agoUpdate Xen version to 3.2.3-rc4 3.2.3-rc4
Keir Fraser [Fri, 19 Dec 2008 15:15:27 +0000 (15:15 +0000)]
Update Xen version to 3.2.3-rc4

16 years agoxend: Actually restrict a domU's access to xenstore when we mean to --
Keir Fraser [Fri, 19 Dec 2008 15:15:03 +0000 (15:15 +0000)]
xend: Actually restrict a domU's access to xenstore when we mean to --
this means that in some cases it cannot be owner of its own xenstore
nodes.

This bug was pointed out by Daniel Berrange at Red Hat. This patch is
my own more generic fix that automatically covers a range of callers
(albeit the patch is arguably a bit of a hack ;-).

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18933:8c35da364ab39605839869d8eb0ac9b831c370f0
xen-unstable date:        Thu Dec 18 17:18:28 2008 +0000

16 years agoAdded tag 3.2.3-rc3 for changeset 2611a0ccaea8a2d59f7c763bd57cde15a73239d0
Keir Fraser [Wed, 17 Dec 2008 13:53:24 +0000 (13:53 +0000)]
Added tag 3.2.3-rc3 for changeset 2611a0ccaea8a2d59f7c763bd57cde15a73239d0

16 years agoUpdate Xen version for 3.2.3-rc3 3.2.3-rc3
Keir Fraser [Wed, 17 Dec 2008 13:53:17 +0000 (13:53 +0000)]
Update Xen version for 3.2.3-rc3

16 years agox86: freeze non-current vCPUs of dom0 before entering S5
Keir Fraser [Tue, 16 Dec 2008 15:23:03 +0000 (15:23 +0000)]
x86: freeze non-current vCPUs of dom0 before entering S5

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   18800:db7a713071fe69b40d279d6322a059e084f73e63
xen-unstable date:        Thu Nov 20 14:21:17 2008 +0000

16 years agoFix race between scheduler and CPUs being offlined
Keir Fraser [Tue, 16 Dec 2008 15:20:48 +0000 (15:20 +0000)]
Fix race between scheduler and CPUs being offlined

Since the credit scheduler depends on cpu_core_map and cpu_sibling_map
to be populated for all CPUs marked online in cpu_online_map
(otherwise csched_cpu_pick() can get into an endless loop due to
nxt_idlers being empty and hence no bit being cleared from cpus),
sibling info must be cleared *after* removing a CPU from cpu_online_map.

But that is only reducing the original race window - since the
clearing of the CPU maps happens on the dying CPU while the scheduler
runs on an active one (generally CPU0), the scheduler must also be
enabled to deal with the potential of finding empty nxt_idlers. While
this change alone would suffice to fix the race, clearing the maps in
proper order still seems like a reasonable thing to do.

Note that this is *not* applicable to 3.3 or -unstable, since there
scheduling doesn't happen anymore while CPUs are being brought down.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
16 years agovmx: Do not disable real EFER.NXE even when disabled by guest.
Keir Fraser [Tue, 16 Dec 2008 13:29:00 +0000 (13:29 +0000)]
vmx: Do not disable real EFER.NXE even when disabled by guest.

We must not disable EFER.NXE in host mode since shadow code relies on
accessing shadow mappings with NX set.

We do not want to write EFER on every vmentry/vmexit if we can avoid
it, since it will be somewhat slow.

Finally, we don't believe that any guest relies on NX really being
disabled when EFER.NXE is cleared.

This given, it makes sense to ignore the guest's setting of EFER.NXE.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18922:c3df4b8ea2fc2e86ecf4de97cf3f5516cac8eade
xen-unstable date:        Tue Dec 16 11:54:11 2008 +0000

16 years agoxentop: Fix fprintf() build failure.
Keir Fraser [Tue, 16 Dec 2008 13:28:12 +0000 (13:28 +0000)]
xentop: Fix fprintf() build failure.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18912:68b76ad4faf7086455a7d93b0b666cdeba24fe87
xen-unstable date:        Thu Dec 11 22:32:20 2008 +0000

16 years agoUpdate Xen version for 3.2.3-rc3-pre
Keir Fraser [Mon, 15 Dec 2008 13:29:24 +0000 (13:29 +0000)]
Update Xen version for 3.2.3-rc3-pre

16 years agoAdded tag 3.2.3-rc2 for changeset 8bb01a01dca569d3b6a45d5b118d47cf34064c2c
Keir Fraser [Mon, 15 Dec 2008 13:28:56 +0000 (13:28 +0000)]
Added tag 3.2.3-rc2 for changeset 8bb01a01dca569d3b6a45d5b118d47cf34064c2c

16 years agoUpdate Xen version for 3.2.3-rc2 3.2.3-rc2
Keir Fraser [Mon, 15 Dec 2008 13:28:46 +0000 (13:28 +0000)]
Update Xen version for 3.2.3-rc2

16 years agovga: Only vga_endboot() if vga_init() completed.
Keir Fraser [Thu, 11 Dec 2008 13:37:04 +0000 (13:37 +0000)]
vga: Only vga_endboot() if vga_init() completed.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18908:33ae75b60de289bb72d8480dddea55dd07c032ab
xen-unstable date:        Thu Dec 11 13:09:59 2008 +0000

16 years agoFix BUILD_BUG_ON()
Keir Fraser [Thu, 11 Dec 2008 13:36:45 +0000 (13:36 +0000)]
Fix BUILD_BUG_ON()

As was noticed on the Linux side, using an array here isn't
appropriate
if the condition is not a compile time constant - gcc allows such
arrays, and hence the intended effect of producing a compiler error is
not achieved in that case. Bit field widths do not know similar
language extensions, and hence always produce a compiler error.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   18899:1419a73316e1d75d3e5d7c1530ac6ae7e7bc7fb4
xen-unstable date:        Thu Dec 11 11:19:01 2008 +0000

16 years agolibxc: Fix memory leak in zlib usage
Keir Fraser [Wed, 10 Dec 2008 14:35:38 +0000 (14:35 +0000)]
libxc: Fix memory leak in zlib usage

Any call to inflate() must be followed by inflateEnd(), otherwise the
internal zlib state is leaked.

Signed-off-by: Kevin Wolf <kwolf@suse.de>
xen-unstable changeset:   18892:b73f3646a17fa5fb9fa8edd0a5a4d70dd3353c15
xen-unstable date:        Wed Dec 10 13:14:13 2008 +0000

16 years agovga: Clear the screen when relinquishing VGA to dom0.
Keir Fraser [Wed, 10 Dec 2008 14:34:25 +0000 (14:34 +0000)]
vga: Clear the screen when relinquishing VGA to dom0.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18872:5e066dc410ac872c8976ae4db17891ed1dc5e00e
xen-unstable date:        Fri Dec 05 11:37:20 2008 +0000

vga: Fix screen clear at end of Xen bootstrap.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18890:5535efd8e01141f840f9a8cbc31a9b3a4c9d49e9
xen-unstable date:        Tue Dec 09 13:23:15 2008 +0000

16 years agoFix existence check for MMIO-mapped 16550 UARTs
Keir Fraser [Wed, 10 Dec 2008 14:33:28 +0000 (14:33 +0000)]
Fix existence check for MMIO-mapped 16550 UARTs

Changeset 982e6fce0e47 added an existence test for UARTs.
Unfortunately, the existence test happens before MMIO UARTs are
ioremapped, therefore it may not be probing where it thinks it's
probing.  Rather than moving more code around, I think it's probably
safe to assume the arch code knows what it's doing if it passes in an
MMIO UART.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
xen-unstable changeset:   18861:cb289056b5233b6a7799633cefdae41a91f8e071
xen-unstable date:        Thu Dec 04 11:36:18 2008 +0000

16 years agoUpdate Xen version for 3.2.3-rc2-pre
Keir Fraser [Mon, 1 Dec 2008 11:35:19 +0000 (11:35 +0000)]
Update Xen version for 3.2.3-rc2-pre

16 years agoAdded tag 3.2.3-rc1 for changeset a4197c6aef4aa66c4e272e72fca1238ecdcfb906
Keir Fraser [Mon, 1 Dec 2008 11:34:47 +0000 (11:34 +0000)]
Added tag 3.2.3-rc1 for changeset a4197c6aef4aa66c4e272e72fca1238ecdcfb906

16 years agoUpdate Xen version for 3.2.3-rc1 3.2.3-rc1
Keir Fraser [Mon, 1 Dec 2008 11:34:21 +0000 (11:34 +0000)]
Update Xen version for 3.2.3-rc1

16 years agoAvoid warn_unused_result build failure on fgets().
Keir Fraser [Thu, 27 Nov 2008 13:10:52 +0000 (13:10 +0000)]
Avoid warn_unused_result build failure on fgets().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18839:8d5474a5c66bff3cea07998cafb30817e5b7970c
xen-unstable date:        Thu Nov 27 12:43:25 2008 +0000

16 years agoxen: Fix gcc 4.3 build failure.
Keir Fraser [Thu, 27 Nov 2008 13:10:25 +0000 (13:10 +0000)]
xen: Fix gcc 4.3 build failure.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18811:4ccee1299bc7feab06a95495e2086d04d1b6e960
xen-unstable date:        Wed Nov 26 11:07:44 2008 +0000

16 years agox86_emulate: Fix backport of movnti emulation.
Keir Fraser [Fri, 21 Nov 2008 11:28:20 +0000 (11:28 +0000)]
x86_emulate: Fix backport of movnti emulation.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-3.3-testing changeset:   18497:9ad637d845a5eb24a2eb868d8f26a9df54109a82
xen-3.3-testing date:        Fri Nov 21 11:25:43 2008 +0000

16 years agox86, vmx realmode: Stack manipulation on interrupt/exception injection
Keir Fraser [Tue, 18 Nov 2008 11:43:03 +0000 (11:43 +0000)]
x86, vmx realmode: Stack manipulation on interrupt/exception injection
should respect SS size, not CS size.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18761:832efb028a1dc72fb52edc11c958fd19f8542e48
xen-unstable date:        Fri Nov 07 17:06:21 2008 +0000

vmx: Fix realmode exception delivery to correctly check stack pointer size.

Bug tracked down by Tim Deegan <tim.deegan@citrix.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18766:92d0e13b0ea365f019116450910bb0f3819c109c
xen-unstable date:        Tue Nov 11 11:10:59 2008 +0000

16 years agox86: fix a typo
Keir Fraser [Tue, 18 Nov 2008 11:39:30 +0000 (11:39 +0000)]
x86: fix a typo

Signed-off-by Kevin Tian <kevin.tian@intel.com>
xen-unstable changeset:   18755:1e437b5b418a1c47c96f8c65442bc63ab35f671c
xen-unstable date:        Wed Nov 05 10:26:19 2008 +0000

16 years agox86: Fix GRANT_PTE_FLAGS.
Keir Fraser [Tue, 4 Nov 2008 13:15:11 +0000 (13:15 +0000)]
x86: Fix GRANT_PTE_FLAGS.

Since page table entries created through e.g. GNTTABOP_map_grant_ref
are being passed through adjust_guest_l1e(), they must not generally
get _PAGE_USER set - this will be taken care of by adjust_guest_l1e(),
and it will ensure that these don't get _PAGE_GLOBAL set
inadvertently.

Due to the implied security aspect here (_PAGE_GLOBAL getting set on
kernel pages for x86-64), I'd like to ask that this also be applied to
older maintained branches.

At the same time, set _PAGE_NX for pte-s created for grants (as long
as hardware supports it), since it should be only data pages that
remote
domains are being given access to.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   18748:4ec25db9326a7e7f64a8471cbfd7b5852484757c
xen-unstable date:        Mon Nov 03 10:32:54 2008 +0000

16 years agoserial: Fix IRQ enable/disable in tx interrupt handler.
Keir Fraser [Tue, 4 Nov 2008 13:14:45 +0000 (13:14 +0000)]
serial: Fix IRQ enable/disable in tx interrupt handler.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18717:9e47e72fd03ec78378b46aa30633ced686838c6f
xen-unstable date:        Mon Oct 27 11:27:31 2008 +0000

16 years agox86: relax restrictions on reserved bits in L3 for 32on64 x86 guests
Keir Fraser [Tue, 4 Nov 2008 13:14:23 +0000 (13:14 +0000)]
x86: relax restrictions on reserved bits in L3 for 32on64 x86 guests

A 32on64 guest cannot copy an existing pinned L3 entry to use as a new
L3 because COMPAT_L3_DISALLOW_MASK contains bits which are added to L3
entries by adjust_guest_l3e (U/S & R/W) or by the hardware (A & D).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   18714:3ff349c7aeb77a0a66a53dd409751e3574a4742b
xen-unstable date:        Mon Oct 27 10:08:48 2008 +0000

16 years agoUpdate Xen version to 3.2.3-rc1-pre
Keir Fraser [Tue, 21 Oct 2008 11:10:34 +0000 (12:10 +0100)]
Update Xen version to 3.2.3-rc1-pre

16 years agotimer: No dynamic memory allocation with IRQs disabled.
Keir Fraser [Tue, 21 Oct 2008 11:09:26 +0000 (12:09 +0100)]
timer: No dynamic memory allocation with IRQs disabled.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18671:ecdbcd27490facb15dbffb5b8591d73503708f72
xen-unstable date:        Tue Oct 21 11:39:57 2008 +0100

16 years agox86: Avoid dynamic memory allocation during AP startup.
Keir Fraser [Tue, 21 Oct 2008 11:08:14 +0000 (12:08 +0100)]
x86: Avoid dynamic memory allocation during AP startup.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18670:3ba06e8098cb3a5583dc5d38fc4f7138348bf897
xen-unstable date:        Tue Oct 21 11:39:22 2008 +0100

16 years agopv-on-hvm: Avoid rwlock livelock on save/restore.
Keir Fraser [Tue, 21 Oct 2008 11:07:51 +0000 (12:07 +0100)]
pv-on-hvm: Avoid rwlock livelock on save/restore.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18669:459f7ca6cf2abefab955945cd2c3eeace10be2a9
xen-unstable date:        Tue Oct 21 10:04:40 2008 +0100

16 years agox86: Add TLB flushing to HAP p2m changes
Keir Fraser [Tue, 21 Oct 2008 11:07:22 +0000 (12:07 +0100)]
x86: Add TLB flushing to HAP p2m changes

Removing an MFN from the p2m requires it to be flushed from the
guest's TLBs on HAP, like we do when we're using shadows.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   18660:f4dab783b58b41f2c67a66d6d095887faec3c296
xen-unstable date:        Mon Oct 20 16:49:25 2008 +0100

16 years agovmx: avoid taking locks with irqs disabled
Keir Fraser [Tue, 21 Oct 2008 11:06:53 +0000 (12:06 +0100)]
vmx: avoid taking locks with irqs disabled

Shuffle the bits of the vmexit handler that run with EFLAGS.IF == 0 up
to the top.  Otherwise we end up calling spin_lock() with interrupts
disabled, which can deadlock against the time-synchronization
rendezvous code.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   18658:824892134573b05573ca1945757bb2a99e220a02
xen-unstable date:        Mon Oct 20 15:31:54 2008 +0100

16 years agox86: add movnti emulation
Keir Fraser [Tue, 21 Oct 2008 11:06:23 +0000 (12:06 +0100)]
x86: add movnti emulation

Linux added the use of movnti for copying from user to kernel space in
certain cases, and as per reports we got this may happen with the
destination being in MMIO.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   18657:c4be040bef6faa4a1eae4ce71636cc1ae88a9f35
xen-unstable date:        Mon Oct 20 15:22:58 2008 +0100

16 years agoFix SCHEDOP_poll to avoid wakeup-waiting race on interrupt delivery.
Keir Fraser [Thu, 16 Oct 2008 17:55:05 +0000 (18:55 +0100)]
Fix SCHEDOP_poll to avoid wakeup-waiting race on interrupt delivery.

Race found by Jan Beulich.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18640:dc61548aa479
xen-unstable date:        Thu Oct 16 18:36:43 2008 +0100

16 years agovmx: Update RIP past INT3 instruction on INT3 vmexit.
Keir Fraser [Thu, 16 Oct 2008 17:27:37 +0000 (18:27 +0100)]
vmx: Update RIP past INT3 instruction on INT3 vmexit.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18593:cafbd83e2258
xen-unstable date:        Fri Oct 10 10:11:34 2008 +0100

16 years agovmx:update DR6 on TRAP_debug VM exits.
Keir Fraser [Thu, 16 Oct 2008 17:27:17 +0000 (18:27 +0100)]
vmx:update DR6 on TRAP_debug VM exits.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen-unstable changeset:   18592:583e45983aaa
xen-unstable date:        Fri Oct 10 10:06:49 2008 +0100

16 years agox86/mm: Use l1e_get_pfn() in destroy_grant_pte_mapping().
Keir Fraser [Thu, 16 Oct 2008 17:26:50 +0000 (18:26 +0100)]
x86/mm: Use l1e_get_pfn() in destroy_grant_pte_mapping().

On x86_64 system, (pte >> PAGE_SHIFT) is not always equal to page
frame number because high bits (63:52) of pte may be used as
flags. This patch corrects the conversion and errors as below
disappear when applied.
    (XEN) mm.c:3074:d0 PTE entry 200000a2ec6167 for address a1f09958
    doesn't match frame a2ec6

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
xen-unstable changeset:   18580:d1e57d593614
xen-unstable date:        Thu Oct 09 10:15:30 2008 +0100

16 years agox86: Define __per_cpu_shift label to help kdump/crashdump.
Keir Fraser [Thu, 16 Oct 2008 17:26:15 +0000 (18:26 +0100)]
x86: Define __per_cpu_shift label to help kdump/crashdump.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   18576:5e4e234d58be
xen-unstable date:        Wed Oct 08 13:11:06 2008 +0100

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