]> xenbits.xensource.com Git - people/vhanquez/xen.git/log
people/vhanquez/xen.git
17 years agohvm: Fix mistake in timer cleanup.
Keir Fraser [Thu, 20 Dec 2007 10:25:52 +0000 (10:25 +0000)]
hvm: Fix mistake in timer cleanup.
Spotted by Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16601:2ebced8f8bafe196b5c6e7097d98d77e93e254af
xen-unstable date:        Thu Dec 13 09:29:21 2007 +0000

hvm: Reduce vpt.c dependencies on external timer details.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16600:4553bc1087d9f73e5c27f5511c1d4c724b4dbccf
xen-unstable date:        Wed Dec 12 15:41:20 2007 +0000

hvm: Fix destroy_periodic_time() to not race destruction of one-shot
timers.

This bug was tracked down by Dexuan Cui <dexuan.cui@intel.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16595:f2f7c92bf1c15206aa7072f6a4e470a132d528e2
xen-unstable date:        Wed Dec 12 11:08:21 2007 +0000

hvm: Split no_missed_tick_accounting into two modes:
 * no_missed_ticks_pending ('SYNC')
 * one_missed_tick_pending ('MIXED')

This is based on a patch by Dave Winchell <dwinchell@virtualiron.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16545:0f9b5ab59579e8b980e231bfd3fdf5ab8a74e005
xen-unstable date:        Thu Dec 06 11:56:51 2007 +0000

x86, hvm: Clean up periodic timer code a little. This leads naturally
to a no-missed-tick-accounting mode which is a combination of ticks
delivered 'off beat' immediately upon re-scheduling when ticks are
missed, then reverting to delivering ticks 'on beat' as usual.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16341:8ff5bb70136dbb8ae4a725400334f4bff3643ba8
xen-unstable date:        Thu Nov 08 10:33:18 2007 +0000

x86, hvm: Fix typo in no-missed-tick-accounting timer mode.
From: Dave Winchell <dwinchell@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16334:644e7577f6ee00f746a63a63ca16284cc31f9ee8
xen-unstable date:        Wed Nov 07 14:53:32 2007 +0000

x86, hvm: More fixes to no-missed-tick-accounting mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16315:070da619e65e87b69b2d99794840d84998fdf083
xen-unstable date:        Mon Nov 05 10:09:10 2007 +0000

hvm: Timer fixes:
 1. Do not record more than one pending interrupt in
 no-missed-tick-accounting mode. We do not stack up missed interrupts
 in this timer mode.
 2. Always record all missed ticks when we are in a
 missed-tick-accounting mode. Do not have a ceiling for this as it
 simply causes guests to lose track of wall time.
 3. General bits of cleanup and simplification.
From: Dave Winchell <dwinchell@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16312:838e77a41a3c53a54428e642cb0440a8a6f8912b
xen-unstable date:        Fri Nov 02 16:34:54 2007 +0000

x86, hvm: Fix 'no_missed_tick_accoutning' timer mode.
From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16277:eaa8014ef7796d267d6b9e9f05a64025b7b16118
xen-unstable date:        Wed Oct 31 09:14:49 2007 +0000

x86, hvm: New timer mode 'no missed-tick accounting'.
From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16274:44dde35cb2a663aef3fc27cc326766276cb393e8
xen-unstable date:        Tue Oct 30 16:11:47 2007 +0000

hvm, x86: Allow virtual timer mode to be specified.

In HVM config file:
timer_mode=0 # Default: virtual time is delayed when timer ticks are
             # missed dur to preemption
timer_mode=1 # Virtual time always equals wall time, even while missed
             # ticks are pending

From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16237:b5a2cbca39308bc28c0c27cc9fd5375e3b41ad13
xen-unstable date:        Fri Oct 26 09:56:54 2007 +0100

17 years agox86: AMD Fam10/11 adjustments
Keir Fraser [Wed, 19 Dec 2007 15:58:28 +0000 (15:58 +0000)]
x86: AMD Fam10/11 adjustments
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   16093:0d7d6804af2204dece108959f4fa40764bd2734f
xen-unstable date:        Thu Oct 11 12:11:54 2007 +0100

17 years ago[IA64] Fix vulnerability of copy_to_user in PAL emulation
Keir Fraser [Wed, 19 Dec 2007 09:56:28 +0000 (09:56 +0000)]
[IA64] Fix vulnerability of copy_to_user in PAL emulation

There is a security vulnerability in PAL emulation since alt-dtlb
miss handler of HVM absolutely inserts a identity-mapped TLB when
psr.vm=0.  HVM guest can access an arbitrary machine physical
memory with this security hole.  Actually windows 2008 destroys
the content of machine physical address 0x108000.

I think this patch is enough for normal usage.  Please see SDM
Vol2 11.10.2.1.3 "Making PAL Procedure Calls in Physical or
Virtual Mode".  If the caller has a responsibility of providing
DTR or DTC mapping, xencomm for PAL might be unnecessary.

I confirmed there is no problem in linux, windows 2003, windows
2008 with this patch.

As for PV domain, the same logic can't be used due to only one
vTLB. This patch only checks that the buffer never points VMM
address, that would avoid the vulnerability.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen-unstable changeset:   16622:e6069a715fd7ef15bb72f5c17e8e7db4e8128f32
xen-unstable date:        Fri Dec 14 10:25:03 2007 -0700

17 years agoxend: Prevent XenD touching externally managed bridges
Keir Fraser [Sat, 15 Dec 2007 19:03:44 +0000 (19:03 +0000)]
xend: Prevent XenD touching externally managed bridges

With current XenD 3.0.4 or later try the following:

    brctl addbr demo
    ifconfig demo up

    /etc/init.d/xend start
    /etc/init.d/xend stop

    ifconfig demo down
    brctl delbr demo

Now, start XenD again....

    /etc/init.d/xend start

And watch in horror as it re-creates your 'demo' bridge.

The problem is that the 'XendNetwork' class does not distinguish
between bridge devices that it is managing (ie those created via
XenAPI) and those which it does not manage (ie those created by OS
distro init scripts, or by apps like  libvirt).

While initially I thought I could just make XenD ignore
externally-managed bridges completely, it seems to needs to know about
them otherwise it can't hook up guest VIFs to them correctly. So the
attached patch adds a 'managed' flag to the XendNetwork
class. Externally managed bridges have this set to False. At startup
XenD will now only re-create bridge devices which have the 'managed'
flag set to 'True'  - ie those created via XenAPI.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
xen-unstable changeset:   16625:44a98411d230b3214be49b42e66d7c42e01ab59f
xen-unstable date:        Sat Dec 15 18:26:52 2007 +0000

17 years agox86: Fix e820 walk and allocator initialisation.
Keir Fraser [Sat, 15 Dec 2007 19:03:00 +0000 (19:03 +0000)]
x86: Fix e820 walk and allocator initialisation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16624:257ca4017b416b26120f4a271cf608a23cf23468
xen-unstable date:        Sat Dec 15 18:23:13 2007 +0000

17 years agoSVM: Treat the vlapic's tpr as the master copy and sync the vtpr to it
Keir Fraser [Fri, 14 Dec 2007 12:05:31 +0000 (12:05 +0000)]
SVM: Treat the vlapic's tpr as the master copy and sync the vtpr to it
before every vm entry.  This fixes HVM save/restore/migrate, as the
vtpr value was only being synced on guest TPR writes before.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   16618:966a6d3b74087474df337e00b31cbecf495b442a
xen-unstable date:        Fri Dec 14 11:50:24 2007 +0000

17 years agohvm: Remove duplicate assignment of __HYPERVISOR_grant_table_op in
Keir Fraser [Fri, 14 Dec 2007 11:58:37 +0000 (11:58 +0000)]
hvm: Remove duplicate assignment of __HYPERVISOR_grant_table_op in
hypercall demux tables.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16617:cb0ce96c02defc429ca09e1a33f972f2ee09a61b
xen-unstable date:        Fri Dec 14 11:39:02 2007 +0000

17 years agox86: When emulating PV RDMSR/WRMSR, only look at low 32 bits of RCX.
Keir Fraser [Fri, 14 Dec 2007 11:57:21 +0000 (11:57 +0000)]
x86: When emulating PV RDMSR/WRMSR, only look at low 32 bits of RCX.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This is based on part of:
xen-unstable changeset:   16616:136f80d219588b5e45a5d13e19dd51a2401504f5
xen-unstable date:        Fri Dec 14 11:37:02 2007 +0000

17 years agohvm: Remove guest-triggerable assertions from vlapic emulation.
Keir Fraser [Fri, 14 Dec 2007 11:55:51 +0000 (11:55 +0000)]
hvm: Remove guest-triggerable assertions from vlapic emulation.

Currently our VLAPIC will happily deliver interrupts on vectors <
16. This could be emulated better, but probably does not matter.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16615:3ee37b6279b76c58f49a056c44f413bf8cc030a9
xen-unstable date:        Fri Dec 14 10:48:18 2007 +0000

17 years agosvm: Greatly reduce total number of CR8 intercepts
Keir Fraser [Fri, 14 Dec 2007 11:52:01 +0000 (11:52 +0000)]
svm: Greatly reduce total number of CR8 intercepts

This patch reduces the number of CR8 intercept to a fraction of the
number of CR8 intercepts without.  First, CR8 read intercepts are
completely disabled since the SVM vTPR is kept kept in sync with the
HVM vLAPIC TPR.  Second, CR8 write intercepts are enabled and disabled
based upon certain conditions.  Most of the time, CR8 write intercepts
are disabled.  They are enabled only when there is a pending interrupt
that can't be delivered because of either the current ISR or TPR (aka
PPR) because this is the only time the TPR matters.

With this patch, the number of CR8 intercepts dropped from around
10,000,000 to around 6,000 during boot of Windows 2003 Server 64-bit
(this is a rough estimate).

Signed-off-by: Travis Betak <travis.betak@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   15844:924c153e0cf90e7c6f9033842d702d0fbc122d29
xen-unstable date:        Mon Sep 10 16:13:13 2007 +0100

17 years agoFix gdb debugging of hypervisor.
Keir Fraser [Wed, 12 Dec 2007 14:42:41 +0000 (14:42 +0000)]
Fix gdb debugging of hypervisor.

This patch:
  * enables the gdbstubs to properly access hypervisor memory;
  * prevents an assertion failure in __spurious_page_fault's call
    to map_domain_page if such accesses fail, by testing in_irq();
  * prints some additional helpful messages;
  * fixes the endianness of register transfers from the gdbstubs
    so that gdb is much less confused.
  * fixes the documentation in docs/misc/crashdb.txt

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   16596:514d450ad7295c16c5e4b6bf3716aac7bd838bd4
xen-unstable date:        Wed Dec 12 11:27:15 2007 +0000

17 years ago[HVM] Don't count "missed ticks" on one-shot timers.
Keir Fraser [Wed, 12 Dec 2007 14:41:39 +0000 (14:41 +0000)]
[HVM] Don't count "missed ticks" on one-shot timers.
It's not clear what it would mean, and it leads to division by zero.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
xen-unstable changeset:   15943:c0d1825f51899b329495efb2078dd15e0fb3b479
xen-unstable date:        Mon Sep 24 13:44:29 2007 +0100

hvm: Fix one-shot timers. Do not disable until the interrupt has been
latched by the target VCPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16125:b4278beaf3549f410a5a6086dbd8af93c495aeac
xen-unstable date:        Wed Oct 17 13:12:03 2007 +0100

hvm: Fix destroy_periodic_time() to not race destruction of one-shot
timers.

This bug was tracked down by Dexuan Cui <dexuan.cui@intel.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16595:f2f7c92bf1c15206aa7072f6a4e470a132d528e2
xen-unstable date:        Wed Dec 12 11:08:21 2007 +0000

17 years agohvm: Fix is_isa_irq_masked().
Keir Fraser [Wed, 12 Dec 2007 14:32:10 +0000 (14:32 +0000)]
hvm: Fix is_isa_irq_masked().

Incorrectly it was not checking whether the vlapic is masking the pic.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
xen-unstable changeset:   16594:686b75b31f3cc10453119dd23eac4e7ac3f9e9ad
xen-unstable date:        Wed Dec 12 10:40:02 2007 +0000

17 years agoMatch version naming in xen-unstable: 3.1.3-rc1-pre
Keir Fraser [Wed, 12 Dec 2007 14:30:35 +0000 (14:30 +0000)]
Match version naming in xen-unstable: 3.1.3-rc1-pre

17 years agoUpdate version tag to 3.1.3-rc1-devel (nearly ready for -rc1).
Keir Fraser [Sat, 8 Dec 2007 17:23:05 +0000 (17:23 +0000)]
Update version tag to 3.1.3-rc1-devel (nearly ready for -rc1).

17 years agox86: Respect e820 map even below 16MB.
Keir Fraser [Sat, 8 Dec 2007 17:20:02 +0000 (17:20 +0000)]
x86: Respect e820 map even below 16MB.

NB. Even with this patch, x86/32 still statically allocates the range
1MB-12MB. This can be changed if there really are platforms that need
stuff to persist in that range after the OS starts to boot.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16563:d4a3479e68ce
xen-unstable date:        Fri Dec 07 18:24:33 2007 +0000

17 years agox86: force DMI table to not be in E820 RAM region
Keir Fraser [Sat, 8 Dec 2007 17:18:06 +0000 (17:18 +0000)]
x86: force DMI table to not be in E820 RAM region

In order for Dom0 to be able to map the DMI table, it must not be in
E820 RAM; since some BIOS versions apparently fail to set the type
correctly for the page(s) containing this table, adjust it before
starting to consume memory.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   15964:80277ff19c9c
xen-unstable date:        Wed Sep 26 14:14:16 2007 +0100

17 years agox86: Fix management support on HP ProLiant systems.
Keir Fraser [Sat, 8 Dec 2007 17:07:56 +0000 (17:07 +0000)]
x86: Fix management support on HP ProLiant systems.

Adds support to allow host-platform-specific handling of I/O port
traps. Specifically adds support to handle an HP ProLiant I/O port in
a special way.

Signed-off-by: Mike Garrett <michael.garrett@hp.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16542:1936e6a79f85
xen-unstable date:        Thu Dec 06 11:23:04 2007 +0000

x86: Change proliant io emulation stub to use pushf/popf instead of pushfw/popfw.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16562:35890b260971
xen-unstable date:        Fri Dec 07 17:05:15 2007 +0000

17 years ago[IA64] Fix TLB insertion for subpaging
Keir Fraser [Fri, 7 Dec 2007 12:45:57 +0000 (12:45 +0000)]
[IA64] Fix TLB insertion for subpaging

Without this patch, Longhorn is sure to hang up.  .NET application
might hit this bug.  itc.i instruction is repeated forever, because
TLB entry with smaller page size is volatile.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen-unstable changeset: 16177:52d9f5028397081990791e633aa12e112bfe2677
xen-unstable date: Fri Oct 12 14:49:37 2007 -0600

17 years ago[IA64] Fix wrong insertion of TLB entry in region 0
Keir Fraser [Fri, 7 Dec 2007 12:45:37 +0000 (12:45 +0000)]
[IA64] Fix wrong insertion of TLB entry in region 0

On PV domain with metaphysical mode, emulation of itc.d in region 0
doesn't work well and inserts an wrong TC entry.
Because set_one_rr() doesn't set the machine region register.
i.e. metaphyisical_rr0 is used instead of guest's rr[0].

This bug causes Dom0/U crash when an application uses region 0.
Actually I met the crash when I was building open GFW (java uses
region 0).

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen-unstable changeset: 16042:2d1b8ae1548d139f9f8532c90a1e61fc199a3394
xen-unstable date: Mon Oct 01 09:57:50 2007 -0600

17 years agoxc_map_foreign_pages(), a convenient alternative to xc_map_foreign_batch()
Keir Fraser [Fri, 7 Dec 2007 00:55:00 +0000 (00:55 +0000)]
xc_map_foreign_pages(), a convenient alternative to xc_map_foreign_batch()

xc_map_foreign_batch() can succeed partially.  It is awkward to use
when you're only interested in complete success.  Provide new
xc_map_foreign_pages() convenience function for that kind of use.
Also convert two obvious calls to use it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
xen-unstable changeset:   15837:9071521d48646d247efafcf230ea0a4a2b6f0efa
xen-unstable date:        Fri Sep 07 11:39:10 2007 +0100

17 years agox86: Remove bogus variables on construct_dom0()
Keir Fraser [Thu, 6 Dec 2007 17:49:00 +0000 (17:49 +0000)]
x86: Remove bogus variables on construct_dom0()

The check for supervisor_mode_kernel feature bit was being done on the
dom0_features_{supported,required} variables, but they are always set
to zero.

The feature bits are stored on elf_dom_parms struct, not on those
variables.

From: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16553:b240698146a250d7f7cd5309325d743e9ec6f4d8
xen-unstable date:        Thu Dec 06 17:47:53 2007 +0000

17 years agolinux/x86: fix initial GDT setup
Keir Fraser [Thu, 6 Dec 2007 17:45:41 +0000 (17:45 +0000)]
linux/x86: fix initial GDT setup

cpu_gdt_init() can be static, can have its argument point to const,
and the number of descriptors should be calculated from one more than
the table's limit.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
linux-2.6.18-xen changeset:   349:d43906ea0e9c136e9ec28df30f94c225536d588c
linux-2.6.18-xen date:        Thu Dec 06 15:59:52 2007 +0000

17 years agoxen smpboot: Fix a merge oversight.
Keir Fraser [Thu, 6 Dec 2007 17:45:05 +0000 (17:45 +0000)]
xen smpboot: Fix a merge oversight.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
linux-2.6.18-xen changeset:   340:69bb553015ce4ef88e33bd296a3f1a38011c7fa3
linux-2.6.18-xen date:        Thu Dec 06 15:44:05 2007 +0000

17 years agoOn pirq enable/disable we fully unregister/reregister with Xen. This
Keir Fraser [Thu, 6 Dec 2007 17:44:35 +0000 (17:44 +0000)]
On pirq enable/disable we fully unregister/reregister with Xen. This
causes the underlying IRQ to be properly masked/unmasked, thus
avoiding deadlock scenarios if the IRQ is not EOIed.
Based on a patch by Chris Lalancette <clalance@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
linux-2.6.18-xen changeset:   313:51b2b0d0921c3aefb18e16a2eda68a5c3133e949
linux-2.6.18-xen date:        Wed Nov 21 09:41:11 2007 +0000

17 years agopvfb: PVFB frontend can send bogus screen updates
Keir Fraser [Thu, 6 Dec 2007 17:44:12 +0000 (17:44 +0000)]
pvfb: PVFB frontend can send bogus screen updates

The PVFB frontend can get confused and send a screen update to the
backend when the screen is actually clean.  Such an update asks for
the impossible rectangle (x1, x2, y1, y2) = (INT_MAX, 0, INT_MAX, 0).
Fix by setting the dirty flag in the obvious place: when the dirty
rectangle is grown.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
linux-2.6.18-xen changeset:   311:ca05cf1a9bdc2c7604b95fd085fa5abe067c969a
linux-2.6.18-xen date:        Fri Nov 16 16:55:46 2007 +0000

17 years ago32-on-64: Fix domain address-size clamping, implement
Keir Fraser [Thu, 6 Dec 2007 17:41:12 +0000 (17:41 +0000)]
32-on-64: Fix domain address-size clamping, implement
copy-on-grant-transfer, and eliminate 166GB memory limit for x86/64
Xen.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16548:cd5e1e76d0bc66440a04122baa27860f5d763b5b
xen-unstable date:        Thu Dec 06 13:39:19 2007 +0000

32-on-64: Fixes to previous changeset.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16549:baf90ee3c1dab65f4a386521be6e108920622866
xen-unstable date:        Thu Dec 06 13:56:00 2007 +0000

17 years agoxc ptrace: Fix a couple of bugs in page-table walking.
Keir Fraser [Thu, 6 Dec 2007 17:36:07 +0000 (17:36 +0000)]
xc ptrace: Fix a couple of bugs in page-table walking.
Signed-off-by: John Zulauf <john.zulauf@intel.com>
xen-unstable changeset:   16544:d7a0a73e5dca64466843a420a3975ecf665d4762
xen-unstable date:        Thu Dec 06 11:29:18 2007 +0000

17 years ago[XEN, 32on64]: Correct continuation translation for large
Keir Fraser [Thu, 6 Dec 2007 17:35:41 +0000 (17:35 +0000)]
[XEN, 32on64]: Correct continuation translation for large
compat_mmuext hypercalls.

At the point where we translate the continuation "nat_ops" points to
the beginning of the batch of "i" entries, therefore it must be
incremented by the number of entries processed "i - left". At the same
point "cmp_uops" points to the end of the batch of entries and must
therefore be decremented by "left".

The new count value has already been set by do_mmuext_op to "left" and
therefore it is correct to add "count - i" since that is the number of
entries that remain after this batch.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
xen-unstable changeset:   16543:46776e65e6796f7751a15649f275b78e848d7ed5
xen-unstable date:        Thu Dec 06 11:24:02 2007 +0000

17 years agoFix x86 build.
Keir Fraser [Thu, 6 Dec 2007 17:35:04 +0000 (17:35 +0000)]
Fix x86 build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agohvm: Initialize vlapic->timer_last_update.
Keir Fraser [Thu, 6 Dec 2007 17:34:47 +0000 (17:34 +0000)]
hvm: Initialize vlapic->timer_last_update.

Without the fix, before the first vlapic timer interrupt is injected,
the "vlapic->timer_last_update" in vlapic_get_tmcct()  is always 0,
causing a wrong value of counter_passed.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
xen-unstable changeset:   16536:89e7031e153c62b9ce223a58a7ba49df285784a7
xen-unstable date:        Wed Dec 05 14:01:39 2007 +0000

17 years agox86_64: Do not leak trampoline mapping into dom0's initial address
Keir Fraser [Thu, 6 Dec 2007 17:31:45 +0000 (17:31 +0000)]
x86_64: Do not leak trampoline mapping into dom0's initial address
space.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16535:c67d024fdd2d3527ccd08e513ca3ed3c9dcb4b68
xen-unstable date:        Wed Dec 05 13:49:19 2007 +0000

17 years agox86: Sync cpu/common.c with Linux 2.6.18.
Keir Fraser [Thu, 6 Dec 2007 17:31:08 +0000 (17:31 +0000)]
x86: Sync cpu/common.c with Linux 2.6.18.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16524:3dc3a5feeb6038546710d95cec0a3774a4f41157
xen-unstable date:        Wed Dec 05 09:56:17 2007 +0000

17 years agox86 domain builder: Propagate x86_compat return code.
Keir Fraser [Thu, 6 Dec 2007 17:30:40 +0000 (17:30 +0000)]
x86 domain builder: Propagate x86_compat return code.
Signed-off-by: Elizabeth Kon <eak@us.ibm.com>
xen-unstable changeset:   16523:9cc381efbc29105d0874b4c878ff11ffccedb98e
xen-unstable date:        Wed Dec 05 09:46:55 2007 +0000

17 years agoFix xenctl_cpumap_to_cpumask.
Keir Fraser [Thu, 6 Dec 2007 17:30:14 +0000 (17:30 +0000)]
Fix xenctl_cpumap_to_cpumask.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16519:62451388f63065af4aeff966a856b925b4cca052
xen-unstable date:        Tue Dec 04 11:52:10 2007 +0000

17 years agodocs: Fix interface manual to correctly reference
Keir Fraser [Thu, 6 Dec 2007 17:29:46 +0000 (17:29 +0000)]
docs: Fix interface manual to correctly reference
update_va_mapping_otherdomain.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16517:62717554d4cb72eac230b67054e844c18ab918d7
xen-unstable date:        Tue Dec 04 11:16:41 2007 +0000

17 years agox86: Move get_page/put_page out of header file, and only print on
Keir Fraser [Thu, 6 Dec 2007 17:29:12 +0000 (17:29 +0000)]
x86: Move get_page/put_page out of header file, and only print on
get_page() failure if the domain is not dying.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16492:8e3d42fdb8e784b947fbd998d9a6df0ebf771718
xen-unstable date:        Tue Dec 04 09:56:10 2007 +0000

17 years agohvm: Fix 2 type mismatches in vlapic.h and hpet.c for 32-bit build Xen
Keir Fraser [Thu, 6 Dec 2007 17:03:17 +0000 (17:03 +0000)]
hvm: Fix 2 type mismatches in vlapic.h and hpet.c for 32-bit build Xen

For 32-bit build of Xen:
1) the first mismatch (in hpet_read(), length is 4)  makes guest think
the HPET DM is buggy (we return 0 for HPET_CFG.COUNTER_CLK_PERIOD to
guest), so guest wouldn't use HPET at all.
2) the second one: if tmict is 62500000 and timer_divisor is 16
(Fedoar7's installer uses the values at some time), 10 * 62500000 * 16
= 0x2540BE400 -- it's too big to be held in uint32_t.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
xen-unstable changeset:   16486:c00f31f27de6eb69b4d79f7aa330b1e4aba6f45f
xen-unstable date:        Wed Nov 28 13:13:51 2007 +0000

17 years agohvm: Inject #UD for un-emulated instructions rather than crash guest
Keir Fraser [Thu, 6 Dec 2007 17:02:47 +0000 (17:02 +0000)]
hvm: Inject #UD for un-emulated instructions rather than crash guest

The CrashMe stress test (a process repeatedly forks child processes,
and
the child processes initialize a buffer with random numbers, then
treat
the buffer as code, and execute it) can crash 32-bit HVM RHEL5.1 guest
easily; this is because we haven't emulated all the instructions in
handle_mmio() yet.

The CrashMe process runs with root rights, and can access MMIO space
in
an unknown way ("strace -f" shows the random codes running at CPL=3D3
don't call mmap(), and don't open any special files in /dev/ "); the
gpa
may look like 0xa**** or  0xb****, or 0xfee0****. =20

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16485:c76a9aa12d2e37ed5c6c2a3562c755ec3828af8a
xen-unstable date:        Wed Nov 28 13:04:47 2007 +0000

17 years agoFix string length check for vsnprintf() in debugtrace_printk().
Keir Fraser [Thu, 6 Dec 2007 17:02:12 +0000 (17:02 +0000)]
Fix string length check for vsnprintf() in debugtrace_printk().
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset:   16484:bb31c9325d5f86629de342a6515c6f28b92cf782
xen-unstable date:        Wed Nov 28 12:50:24 2007 +0000

17 years agox86-64: access only 4 bytes a the reset vector location on smpboot.
Keir Fraser [Thu, 6 Dec 2007 17:01:46 +0000 (17:01 +0000)]
x86-64: access only 4 bytes a the reset vector location on smpboot.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   16422:db98e4676d3ffe4a609b29ddef4a8e08016e4a43
xen-unstable date:        Thu Nov 22 14:12:47 2007 +0000

17 years agoHeader dependency fix.
Keir Fraser [Thu, 6 Dec 2007 17:01:26 +0000 (17:01 +0000)]
Header dependency fix.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   16421:5b112010982382241d7a0777d34c13630cbd6d90
xen-unstable date:        Thu Nov 22 14:04:44 2007 +0000

17 years agolibxc: Minor clean up of xc_core, and fix for -fstrict-overflow.
Keir Fraser [Thu, 6 Dec 2007 17:00:58 +0000 (17:00 +0000)]
libxc: Minor clean up of xc_core, and fix for -fstrict-overflow.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen-unstable changeset:   16412:7186e9611d55dc5ab6fd9c6a8bd6e5c674be8c10
xen-unstable date:        Thu Nov 22 10:40:45 2007 +0000

17 years agohvm: Clean up CPUID 0x80000001 emulation. Filter out RDTSCP feature
Keir Fraser [Thu, 6 Dec 2007 17:00:21 +0000 (17:00 +0000)]
hvm: Clean up CPUID 0x80000001 emulation. Filter out RDTSCP feature
and emulate with #UD on AMD.
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
xen-unstable changeset:   16411:93d129d27f6998302874afba3367c9f28affa23e
xen-unstable date:        Thu Nov 22 10:33:10 2007 +0000

17 years agox86: Make IDT/GDT/LDT updates safe.
Keir Fraser [Thu, 6 Dec 2007 16:55:41 +0000 (16:55 +0000)]
x86: Make IDT/GDT/LDT updates safe.

This involves either determining that the entry will not be
read/written while the update takes place, or atomically making the
entry 'present', or doing the entire write atomically, as appropriate.

This issue raised, and original patch provided, by Jan Beulich.

Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
xen-unstable changeset:   16406:8c305873f2b80768a720b834e0bb1180af9d8988
xen-unstable date:        Wed Nov 21 11:38:51 2007 +0000

17 years agoi386: adjustment to segment fixup code.
Keir Fraser [Thu, 6 Dec 2007 16:53:20 +0000 (16:53 +0000)]
i386: adjustment to segment fixup code.

Clean up and support more instructions.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   16407:81aa410fa66242ce6f4b5781b64dc4fe896b4cfd
xen-unstable date:        Wed Nov 21 11:49:41 2007 +0000

17 years agohvm: Do not crash guest if it does an unaligned access to an HPET
Keir Fraser [Thu, 6 Dec 2007 16:50:45 +0000 (16:50 +0000)]
hvm: Do not crash guest if it does an unaligned access to an HPET
register. Some CrashMe test apaprently does this and we don't want
that to crash the domain it runs in.
From: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
xen-unstable changeset:   16404:ae6f4c7f15cbc2a7192c91e513682e3d13de9f4f
xen-unstable date:        Wed Nov 21 09:49:09 2007 +0000

17 years agox86, 32-on-64: Improve checking in vcpu_destroy_pagetables(). It *is*
Keir Fraser [Thu, 6 Dec 2007 16:50:13 +0000 (16:50 +0000)]
x86, 32-on-64: Improve checking in vcpu_destroy_pagetables(). It *is*
possible for 64-bit guest to have matching guest_table and
guest_table_user.
Original patch by John Levon <levon@movementarian.org>
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
xen-unstable changeset:   16401:f62e6c697eeb68a7a62f4beb87e85a68b91b3c6a
xen-unstable date:        Tue Nov 20 15:34:25 2007 +0000

17 years agosvm: Fix __update_guest_eip() to clear interrupt shadow.
Keir Fraser [Thu, 6 Dec 2007 16:49:41 +0000 (16:49 +0000)]
svm: Fix __update_guest_eip() to clear interrupt shadow.
Get rid of assertions about return value of get_instruction_length()
-- instead test in __update_guest_eip() and crash the domain.
Cache value of 'current' in svm_do_hlt().

The mismanagement of the interrupt shadow was found by Christoph
Egger of AMD.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16398:bc6aaa44e296c0d905daf57ebe268b32faa58376
xen-unstable date:        Tue Nov 20 15:05:36 2007 +0000

17 years agoxen: Domain0 builder should set start_info magic string to
Keir Fraser [Thu, 6 Dec 2007 16:36:45 +0000 (16:36 +0000)]
xen: Domain0 builder should set start_info magic string to
'xen-3.0-...' just like user-space builder for domUs.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16397:64fbef22f86a0fa74a31bf865ebed95aa5179fa6
xen-unstable date:        Tue Nov 20 14:35:36 2007 +0000

17 years agohvm: RTC emulation - RTC_UIE/RTC_SET fix
Keir Fraser [Thu, 6 Dec 2007 16:36:06 +0000 (16:36 +0000)]
hvm: RTC emulation - RTC_UIE/RTC_SET fix

This patch fixes a bug in the RTC code which appears to originate in
having written the emuated device following an incorrect
specification. VMware has (or had, at least, at the time we were still
testing on both VMWare and Xen) the same issue. In the current code,
when RTC_SET is set, RTC_UIE is cleared. This does not match the
behavior of real hardware, where the case is simply that no update
ended interrupts are sent as long as RTC_SET is set, but the UE ints
will resume as soon as RTC_SET is cleared and the clock update is
done. This little patch fixes this issue. In practicality, this means
OS/2 can now set the time without having the clock stop. I don't know
if any other guests have been affected by this issue.

From: Trolle Selander <trolle.selander@gmail.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16394:86e4b37a06ccc6c7c0ea75b5af9e6116b5d6a382
xen-unstable date:        Fri Nov 16 19:07:46 2007 +0000

17 years agox86: Clean up some files of inline asm, and fix
Keir Fraser [Thu, 6 Dec 2007 16:35:37 +0000 (16:35 +0000)]
x86: Clean up some files of inline asm, and fix
__copy_{to,from}_user_ll() for gcc 3.4 (asm output constraints all
need to be '=&').
Based on a patch by Jan Beulich.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16392:2052364cb456170a70ad5c8bfb876c95f7a9fe4a
xen-unstable date:        Fri Nov 16 17:59:34 2007 +0000

17 years agopvfb: PVFB SDL backend chokes on bogus screen updates
Keir Fraser [Thu, 6 Dec 2007 16:34:56 +0000 (16:34 +0000)]
pvfb: PVFB SDL backend chokes on bogus screen updates

Bogus screen update requests from buggy or malicous frontend make SDL
crash.  The VNC backend silently ignores them.  Catch and log them.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
xen-unstable changeset:   16386:614dad9f8fdcda21b5e0083cce3320b17bfcefdd
xen-unstable date:        Fri Nov 16 16:53:43 2007 +0000

17 years agoxend, xenapi: Strip characters from logs that XMLRPC layer cannot
Keir Fraser [Thu, 6 Dec 2007 16:29:08 +0000 (16:29 +0000)]
xend, xenapi: Strip characters from logs that XMLRPC layer cannot
handle.
From: Ian Jackson <ian.jackson@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16382:79d050b2b35e472c0874443ceccf31cd65103571
xen-unstable date:        Fri Nov 16 14:45:35 2007 +0000

17 years agox86: GDT reserved page should be a full page.
Keir Fraser [Thu, 6 Dec 2007 16:28:37 +0000 (16:28 +0000)]
x86: GDT reserved page should be a full page.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16376:6c544894b8b2d2329ad1aa991ae25ebf8e1764d3
xen-unstable date:        Tue Nov 13 19:21:00 2007 +0000

17 years agosvm: Intercept and disallow MONITOR/MWAIT.
Keir Fraser [Thu, 6 Dec 2007 16:28:00 +0000 (16:28 +0000)]
svm: Intercept and disallow MONITOR/MWAIT.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16366:837f83225153547109480d63b3386cb8f65b5274
xen-unstable date:        Fri Nov 09 12:08:37 2007 +0000

17 years agox86, hvm: Better handling of INVD/WBINVD on VMX and SVM.
Keir Fraser [Thu, 6 Dec 2007 16:26:58 +0000 (16:26 +0000)]
x86, hvm: Better handling of INVD/WBINVD on VMX and SVM.
Also better handling of MONITOR/MWAIT on VMX.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16365:fc8be8f3707bd1ffeab55efea5f9804fa570177e
xen-unstable date:        Fri Nov 09 12:05:27 2007 +0000

17 years agohvm: Only complain about short-period periodic tickers.
Keir Fraser [Thu, 6 Dec 2007 16:15:12 +0000 (16:15 +0000)]
hvm: Only complain about short-period periodic tickers.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   15610:ad1c6cf0baafe149c9fe03be3255b95ffef68a34
xen-unstable date:        Wed Jul 18 11:00:32 2007 +0100

17 years ago[Xend] Fix problem when destroying VMs using the Xen-API
Keir Fraser [Thu, 6 Dec 2007 16:14:32 +0000 (16:14 +0000)]
[Xend] Fix problem when destroying VMs using the Xen-API

When domains are destroyed/suspend-resume/migration using the Xen-API
things break due to the domid not having been reset. This patch fixes
this. This is the best place I found for fixing this problem. I could
not push this line into _stateSet() for the case of DOM_STATE_HALTED
and left a comment regarding this.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
xen-unstable changeset:   15587:00fabe66d79e46de1d1318fd545ddbde734a8137
xen-unstable date:        Fri Jul 13 13:43:29 2007 +0100

17 years agoAdded tag RELEASE-3.1.2 for changeset 771f9ddebb76a5cef99dbc6e7de5541f0a155852
Keir Fraser [Wed, 14 Nov 2007 23:35:43 +0000 (23:35 +0000)]
Added tag RELEASE-3.1.2 for changeset 771f9ddebb76a5cef99dbc6e7de5541f0a155852

17 years agoUpdate version string for 3.1.2 RELEASE-3.1.2
Keir Fraser [Wed, 14 Nov 2007 23:35:27 +0000 (23:35 +0000)]
Update version string for 3.1.2

17 years agoblkback: Sanity-check nr_segments parameter.
Keir Fraser [Thu, 8 Nov 2007 18:32:16 +0000 (18:32 +0000)]
blkback: Sanity-check nr_segments parameter.
From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
linux-2.6.18-xen changeset:   309:cf8b6cafa2f0a8ba698322786cc78ae28a1b0f60
linux-2.6.18-xen date:        Thu Nov 08 18:26:08 2007 +0000

17 years ago[PV-ON-HVM] Fix evtchn of unbind_from_irqhandler()
Keir Fraser [Tue, 6 Nov 2007 11:50:32 +0000 (11:50 +0000)]
[PV-ON-HVM] Fix evtchn of unbind_from_irqhandler()

When xm block-detach command was done on PV-ON-HVM, the response of
other disks was lost. It is because a wrong event channel was
invalidated when detaching it. Not the evtchn number but the irq
number is invalidated specifying it.

Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
xen-unstable changeset:   16326:6c218ca2db7ed41600ef9ed070b84038a6a602c4
xen-unstable date:        Tue Nov 06 11:49:15 2007 +0000

17 years agox86, hvm: Minor fix of hvm_set_pci_link_route().
Keir Fraser [Mon, 5 Nov 2007 10:17:35 +0000 (10:17 +0000)]
x86, hvm: Minor fix of hvm_set_pci_link_route().
Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset:   16316:28487ba2ea1eb9c83a1a6947ba3845da3edd9280
xen-unstable date:        Mon Nov 05 10:16:30 2007 +0000

17 years agox86, svm: Add hunk I missed from Jan's debug-register handling
Keir Fraser [Fri, 2 Nov 2007 16:08:28 +0000 (16:08 +0000)]
x86, svm: Add hunk I missed from Jan's debug-register handling
patch. We need to handle SVM debug-register read access intercepts.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16311:e11b24680480428275a78161b27752f906744dd5
xen-unstable date:        Fri Nov 02 16:06:06 2007 +0000

17 years agoAdded tag 3.1.2-rc2 for changeset aa8872ee899ebe2e814ee8c5f73789eb65f7ccf9
Keir Fraser [Fri, 2 Nov 2007 09:15:39 +0000 (09:15 +0000)]
Added tag 3.1.2-rc2 for changeset aa8872ee899ebe2e814ee8c5f73789eb65f7ccf9

17 years agoUpdate version string for 3.1.2-rc2 3.1.2-rc2
Keir Fraser [Fri, 2 Nov 2007 09:15:25 +0000 (09:15 +0000)]
Update version string for 3.1.2-rc2

17 years agoFix use-after-free in xenconsoled.
Keir Fraser [Thu, 1 Nov 2007 16:35:59 +0000 (16:35 +0000)]
Fix use-after-free in xenconsoled.

shutdown_domain() MUST NOT call cleanup_domain(), just flagging them
as dead is enough.  cleanup_domains() for dead domains is called by
the main loop in handle_io() in a safe way already.

shutdown_domain() calling cleanup_domain() too leads struct domain
being accessed after freeing and to a double-free.

Fixed by simply dropping the cleanup_domain() call and by making the
functions called by the main loop in handle_io() ignore dead domains.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
xen-unstable changeset:   16289:2462265f09ae310d7c8e8b194ce9e01430cb9071
xen-unstable date:        Thu Nov 01 16:34:43 2007 +0000

17 years agox86: Fix various problems with debug-register handling.
Keir Fraser [Thu, 1 Nov 2007 16:26:38 +0000 (16:26 +0000)]
x86: Fix various problems with debug-register handling.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16287:338f3c34e65605d9beb96176ef1a71c1262dbf14
xen-unstable date:        Thu Nov 01 16:16:25 2007 +0000

17 years agoxenperf: Fix typo in mlock() invocation.
Keir Fraser [Wed, 31 Oct 2007 16:22:12 +0000 (16:22 +0000)]
xenperf: Fix typo in mlock() invocation.
Signed-off-by: Stephen Wilson <stephen.wilson@amd.com>
xen-unstable changeset:   16281:3191627e5ad6c0a1e8805a179f2906ae79a8b901
xen-unstable date:        Wed Oct 31 16:21:18 2007 +0000

17 years agox86, hvm: Flush local TLB after any change to linear pagetable
Keir Fraser [Tue, 30 Oct 2007 16:20:20 +0000 (16:20 +0000)]
x86, hvm: Flush local TLB after any change to linear pagetable
mapping.

This was not needed when vmenter/vmexit always had the side effect of
flushing host TLBs.

But, with SVM ASIDs, it is possible to:
 (1) Update CR3 update,
 (2) vmenter the guest, and
 (3) and vmexit due to a page fault
all without an intervening host TLB flush.

Then the page fault code could use the linear pagetable
to read a top-level shadow page table entry.

But, without this change, it would fetch the wrong value
due to a stale TLB.

Signed-off-by: Robert Phillips <rphillips@virtualiron.com>
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
xen-unstable changeset:   16275:9379c83e14b5b0a9ab2fe627ed786a8abded0d38
xen-unstable date:        Tue Oct 30 16:15:17 2007 +0000

17 years agox86: GDTR must be reset after using real-mode BIOS services. Some
Keir Fraser [Thu, 25 Oct 2007 08:46:36 +0000 (09:46 +0100)]
x86: GDTR must be reset after using real-mode BIOS services. Some
BIOSes clobber GDTR. While we're here reset IDTR too, although it's
not really necessary.
Signed-off-by: John Byrne <john.l.byrne@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16215:0f86492f1a8c44dd723cae0ebe3af9f2a737dea5
xen-unstable date:        Thu Oct 25 09:43:42 2007 +0100

17 years agoAdded tag 3.1.2-rc1 for changeset 3855356c701d623daf2e8bef13dd4471fa9b3c91
Keir Fraser [Tue, 23 Oct 2007 13:50:57 +0000 (14:50 +0100)]
Added tag 3.1.2-rc1 for changeset 3855356c701d623daf2e8bef13dd4471fa9b3c91

17 years agoUpdate version string for 3.1.2-rc1 3.1.2-rc1
Keir Fraser [Tue, 23 Oct 2007 13:50:42 +0000 (14:50 +0100)]
Update version string for 3.1.2-rc1

17 years agoxenmon: Fix security vulnerability CVE-2007-3919.
Keir Fraser [Tue, 23 Oct 2007 08:28:11 +0000 (09:28 +0100)]
xenmon: Fix security vulnerability CVE-2007-3919.

The xenbaked daemon and xenmon utility communicate via a mmap'ed
shared file. Since this file is located in /tmp, unprivileged users
can cause arbitrary files to be truncated by creating a symlink from
the well-known /tmp filename to e.g., /etc/passwd.

The fix is to place the shared file in a directory to which only root
should have access (in this case /var/run/).

This bug was reported, and the fix suggested, by Steve Kemp
<skx@debian.org>. Thanks!

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16157:b28ae5f00553ea053bd4e4576634d8ea49e77bc3
xen-unstable date:        Tue Oct 23 09:26:43 2007 +0100

17 years agoAvoid passing uninitialised ACPI tables to dom0 when checksums fail.
Keir Fraser [Sat, 20 Oct 2007 08:36:31 +0000 (09:36 +0100)]
Avoid passing uninitialised ACPI tables to dom0 when checksums fail.

If during boot, ACPI checksum failures disable ACPI support in Xen,
pass 'acpi=off' to the domain 0 kernel to avoid a fatal page fault
as domain 0 attempts to access the uninitialized ACPI tables.

Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Steve Ofsthun <sofsthun@virtualiron.com>
xen-unstable changeset:   16144:975811798ffe
xen-unstable date:        Fri Oct 19 17:47:12 2007 +0100

17 years agox86: Fix EFLAGS adjustment for emulated instructions.
Keir Fraser [Sat, 20 Oct 2007 08:36:07 +0000 (09:36 +0100)]
x86: Fix EFLAGS adjustment for emulated instructions.
Issue flagged by David Lively <dlively@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16143:959b4b92b6bf
xen-unstable date:        Fri Oct 19 17:44:20 2007 +0100

17 years agoFix ptep_get_and_clear() on init_mm pte that is not mapped into
Keir Fraser [Fri, 19 Oct 2007 08:45:09 +0000 (09:45 +0100)]
Fix ptep_get_and_clear() on init_mm pte that is not mapped into
current address space.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6.18-xen changeset:   265:7837d0ec57bce4578c17018ca1ef1ded64fe1dd3
linux-2.6.18-xen date:        Thu Oct 18 16:18:48 2007 +0100

Fix ptep_get_and_clear(): atomic operation required on user ptes to
get correct snapshot of A/D bits.

Error pointed out by Jan Beulich.

Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6.18-xen changeset:   266:8302e7fad91e9620ef5160c4b54d22d7b97666c8
linux-2.6.18-xen date:        Fri Oct 19 09:21:05 2007 +0100

17 years agoxfs: eagerly remove vmap mappings to avoid upsetting Xen
Keir Fraser [Fri, 19 Oct 2007 08:43:46 +0000 (09:43 +0100)]
xfs: eagerly remove vmap mappings to avoid upsetting Xen
XFS leaves stray mappings around when it vmaps memory to make it
virtually contigious.  This upsets Xen if one of those pages is being
recycled into a pagetable, since it finds an extra writable mapping of
the page.

This patch solves the problem in a brute force way, by making XFS
always eagerly unmap its mappings.  David Chinner says this shouldn't
have any performance impact on filesystems with default block sizes;
it will only affect filesystems with large block sizes.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Acked-by: David Chinner <dgc@sgi.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: XFS masters <xfs-masters@oss.sgi.com>
Cc: Stable kernel <stable@kernel.org>
Cc: Morten Bogeskov <xen-users@morten.bogeskov.dk>
Cc: Mark Williamson <mark.williamson@cl.cam.ac.uk>
linux-2.6.18-xen changeset:   263:9bf1ddd0f6bf57684c5b0307a43ea381c45f5147
linux-2.6.18-xen date:        Wed Oct 17 09:24:03 2007 +0100

17 years agoAdd fs/xfs/linux-2.6/xfs_buf.c to Linux sparse tree.
Keir Fraser [Fri, 19 Oct 2007 08:42:42 +0000 (09:42 +0100)]
Add fs/xfs/linux-2.6/xfs_buf.c to Linux sparse tree.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agolibxc: Avoid overflow in xc_domain_dumpcore_via_callback().
Keir Fraser [Thu, 18 Oct 2007 13:40:03 +0000 (14:40 +0100)]
libxc: Avoid overflow in xc_domain_dumpcore_via_callback().
nr_pages*PAGE_SIZE can overflow a 32-bit long.
From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16111:c19c51317eebe8e852dd4ad90ca19880397fa3b4
xen-unstable date:        Mon Oct 15 12:20:43 2007 +0100

17 years agox86: Fix writable-pagetable cmpxchg path to properly adjust PTE (i.e.,
Keir Fraser [Thu, 18 Oct 2007 08:59:20 +0000 (09:59 +0100)]
x86: Fix writable-pagetable cmpxchg path to properly adjust PTE (i.e.,
set _PAGE_GLOBAL for x86/64 guest user mappings).
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16129:2173fe77dcd216dc278a43f59430915a5b53180d
xen-unstable date:        Thu Oct 18 09:59:20 2007 +0100

17 years agox86: Reduce logging about get_page_type() failures.
Keir Fraser [Wed, 17 Oct 2007 10:17:53 +0000 (11:17 +0100)]
x86: Reduce logging about get_page_type() failures.

We shouldn't log if the cause could be a recursive-mapping attempt --
we expect a get_page_type() failure in that case.

Based on a patch maintained for NetBSD.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16124:d994e6d3136de94f50aeb86c4a060ee06ecfbf6d
xen-unstable date:        Wed Oct 17 11:17:53 2007 +0100

17 years agoFix xenstore unwatch with node name starting with "@"
Keir Fraser [Wed, 17 Oct 2007 09:02:49 +0000 (10:02 +0100)]
Fix xenstore unwatch with node name starting with "@"
Watch node starting with "@" should not be canonicalized.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
xen-unstable changeset:   16122:86bd91e90eec5da1dce9f25cd101a7034dec67cc
xen-unstable date:        Wed Oct 17 10:02:49 2007 +0100

17 years agominios: Fix get_current() inline asm.
Keir Fraser [Tue, 16 Oct 2007 08:30:20 +0000 (09:30 +0100)]
minios: Fix get_current() inline asm.
From: Samuel Thibault <samuel.thibault@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16114:d915111f8246bacfda168effafade68e1262e7cb
xen-unstable date:        Tue Oct 16 09:30:20 2007 +0100

17 years agoioemu: Add keymap definitions to the Dutch Belgium keymap file.
Keir Fraser [Mon, 15 Oct 2007 13:03:08 +0000 (14:03 +0100)]
ioemu: Add keymap definitions to the Dutch Belgium keymap file.
Signed-off-by: Pat Campbell <plc@novell.com>
xen-unstable changeset:   16113:07c8b97ee1afcd3bfe6ee122bea36c29d2d4ebcd
xen-unstable date:        Mon Oct 15 14:03:08 2007 +0100

17 years agoxend: Fix file resouce leak on resume of suspended managed domains.
Keir Fraser [Fri, 12 Oct 2007 13:30:41 +0000 (14:30 +0100)]
xend: Fix file resouce leak on resume of suspended managed domains.

When a suspended managed domain is resumed, the checkpoint file is
removed, but xend retains a reference to the removed file. This
represents a resource leak. Fixed by ensuring that the file reference
is closed correctly.

Signed-off-by: Gary Pennington <gary.pennington@sun.com>
xen-unstable changeset:   16106:628f8ec692a0153af03a81b04f41b9edfcca7aad
xen-unstable date:        Fri Oct 12 14:30:41 2007 +0100

17 years agox86: Fix time-scale calculation to avoid #DE fault.
Keir Fraser [Thu, 11 Oct 2007 18:23:40 +0000 (19:23 +0100)]
x86: Fix time-scale calculation to avoid #DE fault.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16098:f6a06b2eefc5931a9cd9ec71baec94d67fe06909
xen-unstable date:        Thu Oct 11 19:23:40 2007 +0100

17 years agox86: Fix emulation of DIV instruction. Never actually used currently,
Keir Fraser [Thu, 11 Oct 2007 18:18:12 +0000 (19:18 +0100)]
x86: Fix emulation of DIV instruction. Never actually used currently,
but this will avoid a #DE in Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16097:d5531095d06b5e4513e891b89fd3085311490304
xen-unstable date:        Thu Oct 11 19:18:12 2007 +0100

17 years agoMore static shadow functions.
Keir Fraser [Thu, 11 Oct 2007 09:21:08 +0000 (10:21 +0100)]
More static shadow functions.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   16091:19a843def5fdd3853b0b5372c512a5c623954ae7
xen-unstable date:        Thu Oct 11 10:21:08 2007 +0100

17 years agoShadow code printing adjustments.
Keir Fraser [Thu, 11 Oct 2007 09:20:45 +0000 (10:20 +0100)]
Shadow code printing adjustments.

Messages prior to BUG() should always be displayed, not just when
DEBUG_TRACE_DUMP is defined (which by default it isn't). Convert them
from SHADOW_PRINTK() to SHADOW_ERROR().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   16090:8d51b80fcb6f002f53a5ab293f1ab87384837397
xen-unstable date:        Thu Oct 11 10:20:45 2007 +0100

17 years agoDo not include compile.h directly -- use version.h indirection functions.
Keir Fraser [Thu, 11 Oct 2007 09:02:07 +0000 (10:02 +0100)]
Do not include compile.h directly -- use version.h indirection functions.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16089:ab5b615867ee7913ae6f0afe49f7a5e8ad20ea94
xen-unstable date:        Thu Oct 11 10:02:07 2007 +0100

17 years agox86/64: Do not clobber %r11 (user rflags) on syscall from guest
Keir Fraser [Wed, 17 Oct 2007 08:57:02 +0000 (09:57 +0100)]
x86/64: Do not clobber %r11 (user rflags) on syscall from guest
userspace to guest kernel. The flags are saved on the guest kernel
stack anyway, but some guests rely on %r11 instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   16110:c918a68617c9d562fb697165ea6ddbe665b92aae
xen-unstable date:        Mon Oct 15 12:13:41 2007 +0100

17 years agoFix IA64 build
Keir Fraser [Wed, 17 Oct 2007 08:56:34 +0000 (09:56 +0100)]
Fix IA64 build
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
xen-unstable changeset:   15630:66db6b98f0720c08524754fc2364b126ef5cd2ab
xen-unstable date:        Fri Jul 20 14:10:40 2007 +0100

17 years agoRemove old RELEASE-3.1.1 tag from hgtags list.
Keir Fraser [Thu, 11 Oct 2007 09:12:07 +0000 (10:12 +0100)]
Remove old RELEASE-3.1.1 tag from hgtags list.

17 years agoAdded tag RELEASE-3.1.1 for changeset 38adb57319a796e85d33063a9a13367f1c763941
Keir Fraser [Thu, 11 Oct 2007 07:15:43 +0000 (08:15 +0100)]
Added tag RELEASE-3.1.1 for changeset 38adb57319a796e85d33063a9a13367f1c763941

17 years agohvm: Fix migration of 64-bit guests by permitting EFER_LMA to be set RELEASE-3.1.1
Keir Fraser [Thu, 11 Oct 2007 07:15:26 +0000 (08:15 +0100)]
hvm: Fix migration of 64-bit guests by permitting EFER_LMA to be set
in restored VCPU context.
Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Robert Phillips <rphillips@virtualiron.com>
xen-unstable changeset:   16087:960a05895a4ac0e9b2e93281b8de57dca568f08a
xen-unstable date:        Thu Oct 11 08:14:11 2007 +0100

17 years agoAdded tag RELEASE-3.1.1 for changeset 617fcd5cc08cfefbfe4c0e2a5724ef75a5940e3a
Keir Fraser [Wed, 10 Oct 2007 10:30:05 +0000 (11:30 +0100)]
Added tag RELEASE-3.1.1 for changeset 617fcd5cc08cfefbfe4c0e2a5724ef75a5940e3a

17 years agoUpdate version string for 3.1.1
Keir Fraser [Wed, 10 Oct 2007 10:29:45 +0000 (11:29 +0100)]
Update version string for 3.1.1

17 years ago[XEN] Shadow: fix locking in error path.
Keir Fraser [Mon, 8 Oct 2007 09:59:44 +0000 (10:59 +0100)]
[XEN] Shadow: fix locking in error path.
Signed-off-by: TIm Deegan <Tim.Deegan@xensource.com>
xen-unstable changeset:   16076:0c2535407828d6473a2b5730155c66e76f9a0512
xen-unstable date:        Mon Oct 08 09:40:49 2007 +0100