]> xenbits.xensource.com Git - xen.git/log
xen.git
14 years agoxl: default timer_mode to 1
Keir Fraser [Fri, 16 Jul 2010 13:01:25 +0000 (14:01 +0100)]
xl: default timer_mode to 1

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset:   21794:843978ef0dee
xen-unstable date:        Wed Jul 14 16:31:59 2010 +0100

14 years agotools/hotplug: locking.sh script: fix lock directory remains on error bug
Keir Fraser [Fri, 16 Jul 2010 13:01:02 +0000 (14:01 +0100)]
tools/hotplug: locking.sh script: fix lock directory remains on error bug

_release_lock should be used instead of release_lock.
sigerr is introduced so that it can be redefined by
xen-hotplug-common.sh to a version which writes error status to
xenstore.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen-unstable changeset:   21738:473c170bca8d
xen-unstable date:        Tue Jul 06 13:10:14 2010 +0100

14 years agotools/pygrub: Fix a typo handling device specs with no partition part
Keir Fraser [Fri, 16 Jul 2010 13:00:36 +0000 (14:00 +0100)]
tools/pygrub: Fix a typo handling device specs with no partition part

pygrub: fix a typo that causes exceptions when looking at device
specifications that don't have a partition part (e.g. (hd0)).

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21733:f35512e244ff
xen-unstable date:        Fri Jul 02 17:56:05 2010 +0100

14 years agox86: allow the MSI-X table to reside beyond 4G even on 32-bit systems
Keir Fraser [Thu, 15 Jul 2010 08:49:45 +0000 (09:49 +0100)]
x86: allow the MSI-X table to reside beyond 4G even on 32-bit systems

Underlying interfaces allow this, and unduly (and silently) truncating
addresses doesn't seem nice.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21779:08b2222ff505
xen-unstable date:        Mon Jul 12 10:43:57 2010 +0100

14 years agox86: prevent simultaneous use of MSI and MSI-X
Keir Fraser [Thu, 15 Jul 2010 08:49:22 +0000 (09:49 +0100)]
x86: prevent simultaneous use of MSI and MSI-X

This matches similar checks done in Linux, since no good can come from
a domain trying to enable both MSI and MSI-X on the same device at the
same time.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21778:421f6c63b220
xen-unstable date:        Mon Jul 12 10:43:34 2010 +0100

14 years agox86: fix a benign typo
Keir Fraser [Thu, 15 Jul 2010 08:49:00 +0000 (09:49 +0100)]
x86: fix a benign typo

Just to avoid confusing readers - no functional change.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21777:a63e4c2d9ae4
xen-unstable date:        Mon Jul 12 10:43:10 2010 +0100

14 years agoiommu: Remove pointless iommu=pv boot option.
Keir Fraser [Thu, 15 Jul 2010 08:48:12 +0000 (09:48 +0100)]
iommu: Remove pointless iommu=pv boot option.

Allow devices to always be passed through to PV domains, just as they
can be to HVM domains.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21770:510c797ee115
xen-unstable date:        Fri Jul 09 15:39:35 2010 +0100

14 years agox2APIC: improve enabling logic
Keir Fraser [Thu, 15 Jul 2010 09:43:50 +0000 (10:43 +0100)]
x2APIC: improve enabling logic

This patch masks PIC and IOAPIC RTE's before x2APIC enabling, unmask
and restore them after x2APIC enabling. It also really enables
interrupt remapping before x2APIC enabling instead of just checking
interrupt remapping setting. This patch also handles all x2APIC
configuration including BIOS settings and command line
settings. Especially, it handles that BIOS hands over in x2APIC mode
(when there is apic id > 255). It checks if x2APIC is already enabled
by BIOS. If already enabled, it will disable interrupt remapping and
queued invalidation first, then enable them again.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset:   21718:34f612ed4184
xen-unstable date:        Mon Jul 05 08:31:29 2010 +0100

14 years agox2APIC/VT-d: improve interrupt remapping and queued invalidation enabling and disabling
Keir Fraser [Thu, 15 Jul 2010 09:43:19 +0000 (10:43 +0100)]
x2APIC/VT-d: improve interrupt remapping and queued invalidation enabling and disabling

x2APIC depends on interrupt remapping, so interrupt remapping needs to
be enabled before x2APIC. Usually x2APIC is not enabled
(x2apic_enabled=0) when enable interrupt remapping, although x2APIC
will be enabled later. So it needs to pass a parameter to set
interrupt mode in intremap_enable, instead of checking
x2apic_enable. This patch adds a parameter "eim" to intremap_enable to
achieve it.  Interrupt remapping and queued invalidation are already
enabled when enable x2apic, so it needn't to enable them again when
setup iommu. This patch checks if interrupt remapping and queued
invalidation are already enable or not, and won't enable them if
already enabled. It does the similar in disabling, that's to say don't
disable them if already disabled.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset:   21717:176956d1d2fd
xen-unstable date:        Mon Jul 05 08:30:25 2010 +0100

14 years agox2APIC/VT-d: allocate iommu when create a drhd
Keir Fraser [Thu, 15 Jul 2010 09:42:38 +0000 (10:42 +0100)]
x2APIC/VT-d: allocate iommu when create a drhd

A drhd is created when parse ACPI DMAR table, but drhd->iommu is not
allocated until iommu setup. But iommu is needed by x2APIC which will
enable interrupt remapping before iommu setup. This patch allocates
iommu when create drhd. And then drhd->ecap can be removed because
it's the same as iommu->ecap.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset:   21716:64a80813978f
xen-unstable date:        Mon Jul 05 08:29:10 2010 +0100

14 years agoMakefile: Serialise stubdom build after tools
Keir Fraser [Fri, 9 Jul 2010 11:44:53 +0000 (12:44 +0100)]
Makefile: Serialise stubdom build after tools

Currently "make stubdom" on its own fails because it depends on files
being installed by the results of "make tools".  This also means that
in some circumstances a parallel "make tools stubdom" (or "make all")
can fail due to races.  So make "make stubdom" depend on "make tools"
having completed first.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   21760:84719437205c
xen-unstable date:        Fri Jul 09 12:22:52 2010 +0100

14 years agoxen: allow HVM save/restore from different cpus
Keir Fraser [Fri, 9 Jul 2010 11:44:33 +0000 (12:44 +0100)]
xen: allow HVM save/restore from different cpus

The hardware CPUID-levelling features level the feature flags but
don't change the CPU family/model/stepping.  Relax the HVM restore
check on family/model/stepping to printk but not veto the load, so
that VMs can be migrated between machines that have been
CPUID-levelled.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21759:8b2453940dac
xen-unstable date:        Fri Jul 09 12:22:35 2010 +0100

14 years agoxen: allow HVM save/restore from different changesets
Keir Fraser [Fri, 9 Jul 2010 11:44:14 +0000 (12:44 +0100)]
xen: allow HVM save/restore from different changesets

Allow HVM save/restore from different changesets of Xen.  The HVM save
records are supposed to be backwards compatible; XenServer
live-migrates between versions of Xen during upgrades.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21758:8afa0bb43c45
xen-unstable date:        Fri Jul 09 12:22:00 2010 +0100

14 years agomce: Replace BUG() with a console warning in the MCE handler.
Keir Fraser [Fri, 9 Jul 2010 11:43:52 +0000 (12:43 +0100)]
mce: Replace BUG() with a console warning in the MCE handler.

If the hardware reports corrected errors that we didn't see through
the status MSRs, complain on the console but don't BUG() the machine.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21757:50cf787b70eb
xen-unstable date:        Fri Jul 09 12:21:31 2010 +0100

14 years agoxl: Fix help message.
Keir Fraser [Fri, 9 Jul 2010 11:41:16 +0000 (12:41 +0100)]
xl: Fix help message.

From: Gianni Tedesco <gianni.tedesco@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
14 years agoxend: Continue domain building even if memshr extensions are not
Keir Fraser [Thu, 8 Jul 2010 09:03:47 +0000 (10:03 +0100)]
xend: Continue domain building even if memshr extensions are not
present in the hypervisor.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21751:a7a680442b73
xen-unstable date:        Thu Jul 08 09:56:10 2010 +0100

14 years agoxen: make the shadow allocation hypercalls include the p2m memory
Keir Fraser [Thu, 8 Jul 2010 09:03:25 +0000 (10:03 +0100)]
xen: make the shadow allocation hypercalls include the p2m memory
in the total shadow allocation. This makes the effect of allocation
changes consistent regardless of p2m activity on boot.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21750:92ac9536ac5a
xen-unstable date:        Thu Jul 08 09:52:51 2010 +0100

14 years agoxen: use s_time_t for periodic timer deadlines.
Keir Fraser [Thu, 8 Jul 2010 09:03:03 +0000 (10:03 +0100)]
xen: use s_time_t for periodic timer deadlines.

Otherwise vcpu_periodic_timer_work() can think the next timer is in
the future (and re-issue it unchanged) while timer_softirq_action()
thinks it's in the past (and fires it immediately), leading to
livelock.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21749:db35740574a5
xen-unstable date:        Thu Jul 08 09:52:34 2010 +0100

14 years agorombios: wait 30s after a failed boot
Keir Fraser [Thu, 8 Jul 2010 09:02:33 +0000 (10:02 +0100)]
rombios: wait 30s after a failed boot

Prevents waiting forever for a keypress that may never come if boot is
unattended.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21746:3073d3d61a6b
xen-unstable date:        Thu Jul 08 09:46:09 2010 +0100

14 years agox86/cpufreq: check array index before use
Keir Fraser [Thu, 8 Jul 2010 09:02:05 +0000 (10:02 +0100)]
x86/cpufreq: check array index before use

... rather than after.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21744:df63728e1680
xen-unstable date:        Thu Jul 08 09:44:46 2010 +0100

14 years agohgignore: Add _xl_paths.h to ignore list.
Keir Fraser [Thu, 8 Jul 2010 08:59:16 +0000 (09:59 +0100)]
hgignore: Add _xl_paths.h to ignore list.

14 years agoxl: Fix cmdline parsing after backport changeset.
Keir Fraser [Thu, 8 Jul 2010 08:58:04 +0000 (09:58 +0100)]
xl: Fix cmdline parsing after backport changeset.

From: Gianni Tedesco <gianni.tedesco@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
14 years agotools/libxl: allow setting of timer_mode, hpet and vpt_align parameters
Keir Fraser [Tue, 6 Jul 2010 17:43:50 +0000 (18:43 +0100)]
tools/libxl: allow setting of timer_mode, hpet and vpt_align parameters

Implement parsing for timer_mode, hpet and vpt_align parameters.

These are all HVM only parameters and hpet/vpt_align are boolean so
change types and place in hvm union accordingly. Also HPET is x86 only
on principle so make this compile-time conditional on arch as-is
viridian.

Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
xen-unstable changeset:   21739:da46b25cf17d
xen-unstable date:        Tue Jul 06 16:55:49 2010 +0100

14 years agox86: eliminate unused "quad_local_to_mp_bus_id"
Keir Fraser [Tue, 6 Jul 2010 15:57:07 +0000 (16:57 +0100)]
x86: eliminate unused "quad_local_to_mp_bus_id"

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21722:1864c12977f6
xen-unstable date:        Tue Jul 06 16:55:02 2010 +0100

14 years agorombios: pause for a keypress after a failed boot
Keir Fraser [Tue, 6 Jul 2010 15:56:47 +0000 (16:56 +0100)]
rombios: pause for a keypress after a failed boot

rombios: inform the user and pause for a keypress after a failed boot
rather than powering off immediately.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21720:a1008ce01820
xen-unstable date:        Tue Jul 06 16:49:59 2010 +0100

14 years agolibxl: Backported stuff from unstable
Keir Fraser [Tue, 6 Jul 2010 15:49:01 +0000 (16:49 +0100)]
libxl: Backported stuff from unstable

Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
14 years agoVT-d: No need to emulate WBINVD when force snooping feature available
Keir Fraser [Mon, 5 Jul 2010 11:11:38 +0000 (12:11 +0100)]
VT-d: No need to emulate WBINVD when force snooping feature available

There is no cache coherency issue if VT-d engine's force snooping
feature available.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
xen-unstable changeset:   21715:70ac5171a48f
xen-unstable date:        Mon Jul 05 08:28:08 2010 +0100

14 years agotrace: insert compiler memory barriers
Keir Fraser [Mon, 5 Jul 2010 11:11:17 +0000 (12:11 +0100)]
trace: insert compiler memory barriers

This is to ensure fields shared writably with Dom0 get read only once
for any consistency checking followed by actual calculations.

I realized there was another multiple-read issue, a fix for which is
also included (which at once simplifies __insert_record()).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21713:9074d50d0935
xen-unstable date:        Mon Jul 05 08:24:18 2010 +0100

14 years agoAMD OSVW (OS Visible Workaround) for Xen
Keir Fraser [Mon, 5 Jul 2010 11:10:52 +0000 (12:10 +0100)]
AMD OSVW (OS Visible Workaround) for Xen

This path enables AMD OSVW (OS Visible Workaround) feature for
Xen. New AMD errata will have a OSVW id assigned in the future. OS is
supposed to check OSVW status MSR to find out whether CPU has a
specific erratum. Legacy errata are also supported in this patch:
traditional family/model/stepping approach will be used if OSVW
feature isn't applicable.  This patch is adapted from Hans Rosenfeld's
patch submitted to Linux kernel.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Hans Rosenfeld <hands.rosenfeld@amd.com>
Acked-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21712:f483b5ce7be2
xen-unstable date:        Fri Jul 02 19:04:57 2010 +0100

14 years agotrace: fix security issues
Keir Fraser [Fri, 2 Jul 2010 21:04:32 +0000 (22:04 +0100)]
trace: fix security issues

After getting a report of 3.2.3's xenmon crashing Xen (as it turned
out this was because c/s 17000 was backported to that tree without
also applying c/s 17515), I figured that the hypervisor shouldn't rely
on any specific state of the actual trace buffer (as it is shared
writable with Dom0)

[GWD: Volatile quantifiers have been taken out and moved to another
patch]

To make clear what purpose specific variables have and/or where they
got loaded from, the patch also changes the type of some of them to be
explicitly u32/s32, and removes pointless assertions (like checking an
unsigned variable to be >= 0).

I also took the prototype adjustment of __trace_var() as an
opportunity to simplify the TRACE_xD() macros. Similar simplification
could be done on the (quite numerous) direct callers of the function.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen-unstable changeset:   21706:ae68758f8862
xen-unstable date:        Fri Jul 02 18:56:34 2010 +0100

14 years agotrace: adjust printk()s
Keir Fraser [Fri, 2 Jul 2010 21:04:07 +0000 (22:04 +0100)]
trace: adjust printk()s

They should be lower level or rate limited.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen-unstable changeset:   21705:19f4d637a52b
xen-unstable date:        Fri Jul 02 18:53:37 2010 +0100

14 years agotrace: improve check_tbuf_size()
Keir Fraser [Fri, 2 Jul 2010 21:03:43 +0000 (22:03 +0100)]
trace: improve check_tbuf_size()

It didn't consider the case of the incoming size not allowing for the
2*data_size range for t_buf->{prod,cons}

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen-unstable changeset:   21704:1390e2ab45c7
xen-unstable date:        Fri Jul 02 18:53:10 2010 +0100

14 years agotrace: Fix T_INFO_FIRST_OFFSET calculation
Keir Fraser [Fri, 2 Jul 2010 21:02:31 +0000 (22:02 +0100)]
trace: Fix T_INFO_FIRST_OFFSET calculation

This wasn't defined correctly, thus allowing in the
num_online_cpus() == NR_CPUS case to pass a corrupted MFN to
Dom0.

Reported-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen-unstable changeset:   21703:2f3a68a0b55b
xen-unstable date:        Fri Jul 02 18:52:45 2010 +0100

14 years agox86 shadow: Fix x86_32 build.
Keir Fraser [Fri, 2 Jul 2010 18:18:37 +0000 (19:18 +0100)]
x86 shadow: Fix x86_32 build.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21649:74fa38447ad9
xen-unstable date:        Tue Jun 22 07:19:16 2010 +0100

14 years agox86 hvm: implement HVMOP_pagetable_dying
Keir Fraser [Fri, 2 Jul 2010 18:17:36 +0000 (19:17 +0100)]
x86 hvm: implement HVMOP_pagetable_dying

This patch implements HVMOP_pagetable_dying: an hypercall for
guests to notify Xen that a pagetable is about to be destroyed so that
Xen can use it as a hint to unshadow the pagetable soon and unhook the
top-level user-mode shadow entries right away.

Gianluca Guida is the original author of this patch.

Signed-off-by: Gianluca Guida <glguida@gmail.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset:   21647:cfba1560054a
xen-unstable date:        Mon Jun 21 19:18:27 2010 +0100

14 years agox86 hvm: implement vector callback for evtchn delivery
Keir Fraser [Fri, 2 Jul 2010 18:14:25 +0000 (19:14 +0100)]
x86 hvm: implement vector callback for evtchn delivery

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21449:10ad9b50b4ca
xen-unstable date:        Tue May 25 11:28:58 2010 +0100

14 years agox86: TSC handling cleanups (version 2)
Keir Fraser [Fri, 2 Jul 2010 18:14:00 +0000 (19:14 +0100)]
x86: TSC handling cleanups (version 2)

"I am removing the tsc_scaled variable that is never actually used
because when tsc needs to be scaled vtsc is 1.  I am also making this
more explicit in tsc_set_info.  I am also removing hvm_domain.gtsc_khz
that is a duplicate of d->arch.tsc_khz.  I am using scale_delta(delta,
&d->arch.ns_to_vtsc) to scale the tsc value before returning it to the
guest like in the pv case.  I added a feature flag to specify that the
pvclock algorithm is safe to be used in an HVM guest so that the guest
can now use it without hanging."

Version 2 fixes a bug which breaks PV domU time.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset:   21445:c1ed00d49534
xen-unstable date:        Sat May 22 06:31:47 2010 +0100

14 years agox86: Export timer hypercalls to HVM guests too
Keir Fraser [Fri, 2 Jul 2010 18:12:41 +0000 (19:12 +0100)]
x86: Export timer hypercalls to HVM guests too

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset:   21341:3289dac49af4
xen-unstable date:        Tue May 11 08:36:30 2010 +0100

14 years agoxenpaging: Fix 32-bit build after fixed-width type changes.
Keir Fraser [Wed, 30 Jun 2010 21:14:40 +0000 (22:14 +0100)]
xenpaging: Fix 32-bit build after fixed-width type changes.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21701:aecf092da748
xen-unstable date:        Wed Jun 30 22:12:54 2010 +0100

14 years agoFix #GPF injection into compat guests in vm86 code
Keir Fraser [Wed, 30 Jun 2010 17:24:55 +0000 (18:24 +0100)]
Fix #GPF injection into compat guests in vm86 code

not to let the guest disable interrupts in the real EFLAGS.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com
xen-unstable changeset:   21700:fae04060a4f4
xen-unstable date:        Wed Jun 30 18:12:43 2010 +0100

14 years agoUse gfn_to_mfn_query() rather then gfn_to_mfn() when changing P2M types
Keir Fraser [Wed, 30 Jun 2010 17:24:32 +0000 (18:24 +0100)]
Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing P2M types

Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing
P2M types since we do not really want to force a PoD allocation
as a side effect.

Signed-off-by: Paul Durrant <Paul.Durrant@citrix.com>
xen-unstable changeset:   21699:7cda3ad44c6d
xen-unstable date:        Wed Jun 30 18:11:42 2010 +0100

14 years agox86: fix an off-by-one pirq range check
Keir Fraser [Wed, 30 Jun 2010 17:24:08 +0000 (18:24 +0100)]
x86: fix an off-by-one pirq range check

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21698:81d6471ff123
xen-unstable date:        Wed Jun 30 18:11:09 2010 +0100

14 years agotrace: share t_info pages only in read-only mode
Keir Fraser [Wed, 30 Jun 2010 17:23:43 +0000 (18:23 +0100)]
trace: share t_info pages only in read-only mode

There's no need to share writably the t_info pages (Dom0 only wants
[and needs] to read it)

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen-unstable changeset:   21695:c5f3fe17374c
xen-unstable date:        Tue Jun 29 18:18:42 2010 +0100

14 years agoUse fixed-width types in the memory event interface
Keir Fraser [Wed, 30 Jun 2010 17:23:19 +0000 (18:23 +0100)]
Use fixed-width types in the memory event interface

Set the types in the public memory_event header file to use
fixed-sized and self-aligned fields rather than "unsigned long".  AIUI
this feature only works with 64-bit hypervisors but I think this
change will be necessary to use 32-on-64 dom0 tools.

This breaks compatibility with older builds of the tools, but I can't
see any way to avoid it short of __attribute__((__packed__)).

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Acked-by: Patrick Colp <pjcolp@cs.ubc.ca>
xen-unstable changeset:   21694:2a3a5979e3f1
xen-unstable date:        Tue Jun 29 18:17:44 2010 +0100

14 years agox86: Only build memory-event features on 64-bit Xen
Keir Fraser [Wed, 30 Jun 2010 17:22:56 +0000 (18:22 +0100)]
x86: Only build memory-event features on 64-bit Xen

32-bit Xen doesn't have enough p2m types to support them.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21693:6b5a5bfaf357
xen-unstable date:        Tue Jun 29 18:16:41 2010 +0100

14 years agoxentrace: restrict trace buffer MFNs
Keir Fraser [Wed, 30 Jun 2010 17:20:11 +0000 (18:20 +0100)]
xentrace: restrict trace buffer MFNs

Since they're being passed to Dom0 using an array of uint32_t, they
must be representable as 32-bit quantities, and hence the buffer
allocation must specify an upper address boundary.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen-unstable changeset:   21682:7e46fdbe8a11
xen-unstable date:        Mon Jun 28 16:27:56 2010 +0100

14 years agotmem: skip special case in alloc_heap_pages() if tmem holds no pages
Keir Fraser [Wed, 30 Jun 2010 17:19:35 +0000 (18:19 +0100)]
tmem: skip special case in alloc_heap_pages() if tmem holds no pages
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen-unstable changeset:   21658:c362e793f0a0
xen-unstable date:        Wed Jun 23 23:23:22 2010 +0100

14 years agoRemus: fix missing import in device.py
Keir Fraser [Tue, 22 Jun 2010 06:31:14 +0000 (07:31 +0100)]
Remus: fix missing import in device.py

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21335:689c145fcc2a
xen-unstable date:        Mon May 10 09:25:46 2010 +0100

14 years agoRemus: use IFB for net buffer on newer kernels
Keir Fraser [Tue, 22 Jun 2010 06:30:29 +0000 (07:30 +0100)]
Remus: use IFB for net buffer on newer kernels

IMQ does not work with ebtables on 2.6.31, and IFB is not a
third-party patch.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21244:0f403a63ef6b
xen-unstable date:        Tue May 04 09:36:05 2010 +0100

14 years agoRemus: add file locking and modprobe utility functions
Keir Fraser [Tue, 22 Jun 2010 06:29:59 +0000 (07:29 +0100)]
Remus: add file locking and modprobe utility functions

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21243:ca9519f09563
xen-unstable date:        Tue May 04 09:35:42 2010 +0100

14 years agoRemus: include device name in vif objects
Keir Fraser [Tue, 22 Jun 2010 06:29:26 +0000 (07:29 +0100)]
Remus: include device name in vif objects

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21242:e1482f91b235
xen-unstable date:        Tue May 04 09:35:18 2010 +0100

14 years agoRemus: fix VM stringification
Keir Fraser [Tue, 22 Jun 2010 06:28:47 +0000 (07:28 +0100)]
Remus: fix VM stringification

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21241:d6bd61a5a0fc
xen-unstable date:        Tue May 04 09:34:50 2010 +0100

14 years agoRemus: move device handling into its own module
Keir Fraser [Tue, 22 Jun 2010 06:28:11 +0000 (07:28 +0100)]
Remus: move device handling into its own module

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21240:321dddf767e2
xen-unstable date:        Tue May 04 09:34:23 2010 +0100

14 years agoRemus: remove obsolete code
Keir Fraser [Tue, 22 Jun 2010 06:25:45 +0000 (07:25 +0100)]
Remus: remove obsolete code

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21239:8559e324941f
xen-unstable date:        Tue May 04 09:31:13 2010 +0100

14 years agoRemus: python netlink fixes
Keir Fraser [Tue, 22 Jun 2010 06:25:14 +0000 (07:25 +0100)]
Remus: python netlink fixes

Fix deprecation warning in Qdisc class under python 2.6.
Fix rtattr length and padding (rta_len is unaligned).
Null-terminate qdisc name in rtnl messages.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21238:99a85cb72c9f
xen-unstable date:        Tue May 04 09:30:53 2010 +0100

14 years agoRemus: fix alignment bug in python rtnl library
Keir Fraser [Tue, 22 Jun 2010 06:24:27 +0000 (07:24 +0100)]
Remus: fix alignment bug in python rtnl library

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21175:acba53182435
xen-unstable date:        Thu Apr 15 08:42:40 2010 +0100

14 years agoRemus: make ebt_imq and sch_queue compatible with pvops
Keir Fraser [Tue, 22 Jun 2010 06:24:04 +0000 (07:24 +0100)]
Remus: make ebt_imq and sch_queue compatible with pvops

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
xen-unstable changeset:   21174:373daaeb636e
xen-unstable date:        Thu Apr 15 08:42:08 2010 +0100

14 years agoEnable tmem functionality for PV on HVM guests. Guest kernel
Keir Fraser [Mon, 21 Jun 2010 18:20:15 +0000 (19:20 +0100)]
Enable tmem functionality for PV on HVM guests.  Guest kernel
must still be tmem-enabled to use this functionality (e.g.
won't work for Windows), but upstream Linux tmem (aka
cleancache and frontswap) patches apply cleanly on top
of PV on HVM patches.

Also, fix up some ASSERTS and code used only when bad guest
mfns are passed to tmem.  Previous code could crash Xen
if a buggy/malicious guest passes bad gmfns.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen-unstable changeset:   21648:72c6228b5f0f
xen-unstable date:        Mon Jun 21 19:19:25 2010 +0100

14 years agoUpdate Xen version to 4.0.1-rc4-pre
Keir Fraser [Mon, 21 Jun 2010 18:13:46 +0000 (19:13 +0100)]
Update Xen version to 4.0.1-rc4-pre

14 years agoAdded signature for changeset 52804b8177bf
Keir Fraser [Mon, 21 Jun 2010 17:43:24 +0000 (18:43 +0100)]
Added signature for changeset 52804b8177bf

14 years agoAdded tag 4.0.1-rc3 for changeset 52804b8177bf
Keir Fraser [Mon, 21 Jun 2010 17:43:07 +0000 (18:43 +0100)]
Added tag 4.0.1-rc3 for changeset 52804b8177bf

14 years agoUpdate Xen version to 4.0.1-rc3 4.0.1-rc3
Keir Fraser [Mon, 21 Jun 2010 17:43:01 +0000 (18:43 +0100)]
Update Xen version to 4.0.1-rc3

14 years agovmx: Fix bug in VMX VPMU fixed function PMC offset
Keir Fraser [Mon, 21 Jun 2010 09:03:11 +0000 (10:03 +0100)]
vmx: Fix bug in VMX VPMU fixed function PMC offset

This is a minor fix to the calculation of bit-width of fixed function
perfmon counters in Intel processors.  Bits 5-12 of edx register
should be calculated as (edx & 0x1fe0) >>5 instead of using 0x1f70.

From: "John, Jaiber J" <jaiber.j.john@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21643:31708477f0a9
xen-unstable date:        Mon Jun 21 09:59:10 2010 +0100

14 years agox86: return value of domain_pirq_to_irq() is signed
Keir Fraser [Fri, 18 Jun 2010 13:24:05 +0000 (14:24 +0100)]
x86: return value of domain_pirq_to_irq() is signed

That value can, for forcibly unbound PIRQs, validly be negative, and
for the respective check to catch those cases (and prevent using these
negative values as array index), the respective variables must be of
signed type.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   21620:b0f7f710f512
xen-unstable date:        Tue Jun 15 13:21:03 2010 +0100

14 years agoVMX: enforce INVVPID checking
Keir Fraser [Tue, 15 Jun 2010 10:31:43 +0000 (11:31 +0100)]
VMX: enforce INVVPID checking

Escalate to use a wider context invalidation if the requested context
invalidation is not supported.

Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21598:a822156d9fbb
xen-unstable date:        Fri Jun 11 09:34:58 2010 +0100

14 years agoVMX: rewrite ept_change_entry_type_global in a recursive way
Keir Fraser [Tue, 15 Jun 2010 10:31:19 +0000 (11:31 +0100)]
VMX: rewrite ept_change_entry_type_global in a recursive way

Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21594:6d35ded36a79
xen-unstable date:        Thu Jun 10 22:11:26 2010 +0100

14 years agoVMX: enforce invept checking
Keir Fraser [Tue, 15 Jun 2010 10:30:57 +0000 (11:30 +0100)]
VMX: enforce invept checking

Escalate to use all context invalidation if single context
invalidation is not supported.

Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21592:9db8fc1ca2ef
xen-unstable date:        Thu Jun 10 17:30:23 2010 +0100

14 years agoVMX: enforce EPT paging structure memory type and page-walk length check.
Keir Fraser [Tue, 15 Jun 2010 10:30:37 +0000 (11:30 +0100)]
VMX: enforce EPT paging structure memory type and page-walk length check.

Also use a macro to get EPT walk length.

Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21591:def12332b19c
xen-unstable date:        Thu Jun 10 11:18:02 2010 +0100

14 years agoVMX: remove an unused EPT macro.
Keir Fraser [Tue, 15 Jun 2010 10:30:08 +0000 (11:30 +0100)]
VMX: remove an unused EPT macro.

Signed-off-by: Xin Li <xin.li@intel.com>
xen-unstable changeset:   21581:d58f053669a6
xen-unstable date:        Thu Jun 10 08:24:48 2010 +0100

14 years agoRevert 21190:d6470041aa2e (xen-unstable 21541:7ff0e885b5c3).
Keir Fraser [Tue, 15 Jun 2010 10:29:31 +0000 (11:29 +0100)]
Revert 21190:d6470041aa2e (xen-unstable 21541:7ff0e885b5c3).

Caused regressions in Intel's RC2 testing when parsing domain config
files.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
14 years agosvm: use msr safe for erratum 383
Keir Fraser [Fri, 11 Jun 2010 13:04:36 +0000 (14:04 +0100)]
svm: use msr safe for erratum 383

Make erratum 383 use msr safe variants to work on top of KVM.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset:   21602:f086edac7f92
xen-unstable date:        Fri Jun 11 13:57:52 2010 +0100

14 years agogrant iommu: Correctly handle multiple mappings of same MFN.
Keir Fraser [Fri, 11 Jun 2010 13:01:23 +0000 (14:01 +0100)]
grant iommu: Correctly handle multiple mappings of same MFN.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21597:2e38205b0d73
xen-unstable date:        Fri Jun 11 09:31:14 2010 +0100

14 years agotmem: Fix domain lifecycle synchronisation.
Keir Fraser [Fri, 11 Jun 2010 13:01:02 +0000 (14:01 +0100)]
tmem: Fix domain lifecycle synchronisation.

Obtaining a domain reference count is neither necessary nor
sufficient. Instead we simply check whether a domain is already dying
when it first becomes a client of tmem. If it is not then we will
correctly clean up later via tmem_destroy() called from domain_kill().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21596:04e81a65d27e
xen-unstable date:        Thu Jun 10 22:39:52 2010 +0100

14 years agoTmem: fix domain refcount leak by returning to simpler model
Keir Fraser [Fri, 11 Jun 2010 13:00:36 +0000 (14:00 +0100)]
Tmem: fix domain refcount leak by returning to simpler model
which claims a ref once when the tmem client is first associated
with the domain, and puts it once when the tmem client is
destroyed.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen-unstable changeset:   21595:39657b168068
xen-unstable date:        Thu Jun 10 22:12:36 2010 +0100

14 years agox86 hvm: Fix build error with some GCC versions.
Keir Fraser [Thu, 10 Jun 2010 09:19:26 +0000 (10:19 +0100)]
x86 hvm: Fix build error with some GCC versions.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21590:1bfab8704f32
xen-unstable date:        Thu Jun 10 10:18:00 2010 +0100

14 years agoUpdate Xen version to 4.0.1-rc3-pre
Keir Fraser [Thu, 10 Jun 2010 09:19:09 +0000 (10:19 +0100)]
Update Xen version to 4.0.1-rc3-pre

14 years agoAdded signature for changeset 3d6f1d6cb404
Keir Fraser [Thu, 10 Jun 2010 09:13:14 +0000 (10:13 +0100)]
Added signature for changeset 3d6f1d6cb404

14 years agoAdded tag 4.0.1-rc2 for changeset 3d6f1d6cb404
Keir Fraser [Thu, 10 Jun 2010 09:12:47 +0000 (10:12 +0100)]
Added tag 4.0.1-rc2 for changeset 3d6f1d6cb404

14 years agoUpdate Xen version to 4.0.1-rc2 4.0.1-rc2
Keir Fraser [Thu, 10 Jun 2010 09:11:02 +0000 (10:11 +0100)]
Update Xen version to 4.0.1-rc2

14 years agoxc_domain_restore: Remove static variable 'completed'
Keir Fraser [Thu, 10 Jun 2010 09:04:43 +0000 (10:04 +0100)]
xc_domain_restore: Remove static variable 'completed'

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21589:b311acfb2742
xen-unstable date:        Thu Jun 10 09:43:49 2010 +0100

14 years agoxc_domain_restore: Revert 20126:442bc6f82cf3, 19639:205b1badbcfd
Keir Fraser [Thu, 10 Jun 2010 08:59:56 +0000 (09:59 +0100)]
xc_domain_restore: Revert 20126:442bc6f82cf3, 19639:205b1badbcfd

This disables superpage restore support, but should gain us acceptable
performance when restoring a domain using a pv_ops dom0 kernel. This
is because single-page allocations will be batched rather than issued
singly.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21588:6c3d8aec202d
xen-unstable date:        Thu Jun 10 09:35:16 2010 +0100

14 years agohgignore: Modify *.d line to avoid fale trigger on tools/hotplug/Linux/init.d/
Keir Fraser [Thu, 10 Jun 2010 08:51:16 +0000 (09:51 +0100)]
hgignore: Modify *.d line to avoid fale trigger on tools/hotplug/Linux/init.d/

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21551:3b64bf19ecc2
xen-unstable date:        Mon Jun 07 17:14:09 2010 +0100

14 years agox86: Force !in_irq() in machine_restart().
Keir Fraser [Thu, 10 Jun 2010 08:50:35 +0000 (09:50 +0100)]
x86: Force !in_irq() in machine_restart().

Various function we may call assert this fact. We just want to restart
the system.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21550:cb75117829a6
xen-unstable date:        Mon Jun 07 16:41:19 2010 +0100

14 years agoxend: A few blktap2 fixes
Keir Fraser [Thu, 10 Jun 2010 08:50:02 +0000 (09:50 +0100)]
xend: A few blktap2 fixes

1. Bug fix for error: "Error: Device /dev/xvdp (51952, tap2) is
already connected." (xenstore does not clean after DomU stoped)
2. Bug fix for error: "File 'vhd:/path/.../disk.img' doesn't exist."
(not correct parsing)
3. Bug fix for error: "Error: Device 51952 not connected" (in config
file for DomU we should be use prefix "tap2:tapdisk:xxx" for devices
from (aio, ram, qcow, vhd, remus) or "tap:tapdisk:xxx" for devices
from (sync, vmdk, qcow2, ioemu))
4. Bug fix for error: "Disk is not accessible" (if use 'tap2'-device
type, then '/dev/xpvd' may not be accessible immediately after its
creation)

Signed-off-by: eXeC001er <execooler@gmail.com>
xen-unstable changeset:   21541:7ff0e885b5c3
xen-unstable date:        Mon Jun 07 07:19:43 2010 +0100

14 years agoblktap2: a little fix to xen-hotplug-cleanup
Keir Fraser [Mon, 7 Jun 2010 06:24:02 +0000 (07:24 +0100)]
blktap2: a little fix to xen-hotplug-cleanup

Signed-off-by: James (Song Wei) <jsong@novell.com>
xen-unstable changeset:   21129:bf74d9c31674
xen-unstable date:        Mon Apr 12 07:23:21 2010 +0100

14 years agonotify_via_xen_event_channel() takes explicit domain parameter.
Keir Fraser [Fri, 4 Jun 2010 09:50:55 +0000 (10:50 +0100)]
notify_via_xen_event_channel() takes explicit domain parameter.

Also remove pointless tasklet from mem_event notify path.

Signed-off-by: John Byrne <john.l.byrne@hp.com>
xen-unstable changeset:   21527:936f4c08eaef
xen-unstable date:        Fri Jun 04 10:25:45 2010 +0100

14 years agoAdd a safety valve to the HVM RTC model for big time jumps
Keir Fraser [Fri, 4 Jun 2010 09:50:28 +0000 (10:50 +0100)]
Add a safety valve to the HVM RTC model for big time jumps

If xen's time leaps forward by a large amount, the RTC will try to
model a tick for every second that it thinks has passed.  This can
livelock a CPU with a series of timer requests each of which fires
immediately and requests the next one.

This patch treats a delay of more than a day between ticks as a
special case, abandoning the attempt to catch up.  That should be good
enough to avoid livelock but doesn't fix the underlying time problem.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21515:1b6c9732436b
xen-unstable date:        Fri Jun 04 10:05:42 2010 +0100

14 years agox86: Suppress warnings about spurious pagefaults
Keir Fraser [Fri, 4 Jun 2010 09:50:01 +0000 (10:50 +0100)]
x86: Suppress warnings about spurious pagefaults

RHEL4 guests take a fair number of spurious pagefaults on Nehalem; no
need to report each one of them at XENLOG_WARNING.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21514:88932ba626fe
xen-unstable date:        Fri Jun 04 10:04:30 2010 +0100

14 years agox86: Quieten the warning about paging domctls called on domains with no vcpus
Keir Fraser [Fri, 4 Jun 2010 09:49:43 +0000 (10:49 +0100)]
x86: Quieten the warning about paging domctls called on domains with no vcpus

Xapi tends to trigger this a lot by looking up the shadow memory
allocation of domains that aren't quite built yet.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21513:99761f54183d
xen-unstable date:        Fri Jun 04 10:02:51 2010 +0100

14 years agoQuieten console warning about incomplete PAE PTE writes
Keir Fraser [Fri, 4 Jun 2010 09:49:19 +0000 (10:49 +0100)]
Quieten console warning about incomplete PAE PTE writes

Older (<4.6) RHEL kernels clear PAE pagetable entries without taking
care to write the bottom half first, often enough to make it annoying.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21512:407265984d6a
xen-unstable date:        Fri Jun 04 10:01:15 2010 +0100

14 years agoAllow domains to set a shutdown code without actually shutting down
Keir Fraser [Fri, 4 Jun 2010 09:49:00 +0000 (10:49 +0100)]
Allow domains to set a shutdown code without actually shutting down

Useful for Windows guests, since the PV drivers are notified that
the domain is about to crash just before the crash dump gets written.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21510:2dffb2585516
xen-unstable date:        Fri Jun 04 09:33:11 2010 +0100

14 years agolibxc: Remove obsolete xc_find_device_number() declaration.
Keir Fraser [Fri, 4 Jun 2010 09:47:26 +0000 (10:47 +0100)]
libxc: Remove obsolete xc_find_device_number() declaration.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21528:d4a91417a023
xen-unstable date:        Fri Jun 04 10:46:32 2010 +0100

tools: assume that special Xen devices have been created by the platform

Remove all the magic surrounding the special Xen devices in Linux
specific code whereby we attempt to figure out what the correct
major:minor number is and check the the existing device has these
numbers etc. In 2010 we really should be able to trust that the
platform has created the devices correctly or provide correct
configuration settings such that they are without resorting to tearing
down the platform configured state and rebuilding it.

tools/hotplug/Linux/xen-backend.rules already contains the necessary
udev rules to create /dev/xen/evtchn and friends in the correct place.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   21507:a3bdee5a20da
xen-unstable date:        Wed Jun 02 10:54:32 2010 +0100

14 years agox86 mtrr: Fix set_mtrr() race against cpu_online_map changes.
Keir Fraser [Fri, 4 Jun 2010 09:42:30 +0000 (10:42 +0100)]
x86 mtrr: Fix set_mtrr() race against cpu_online_map changes.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21499:2f765c9825b2
xen-unstable date:        Tue Jun 01 10:40:06 2010 +0100

14 years agoxend: PoD check should be for HVM domain only.
Keir Fraser [Fri, 4 Jun 2010 09:39:46 +0000 (10:39 +0100)]
xend: PoD check should be for HVM domain only.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
xen-unstable changeset:   21496:f6a4d7eccaad
xen-unstable date:        Tue Jun 01 07:05:22 2010 +0100

14 years agoxen: update_runstate_area for 32 bit PV on HVM guests
Keir Fraser [Fri, 4 Jun 2010 09:39:24 +0000 (10:39 +0100)]
xen: update_runstate_area for 32 bit PV on HVM guests

The current implementation of update_runstate_area is unable to handle
32 bit PV on HVM guests because the check is_pv_32on64_domain doesn't
cover that case. This patch fixes it.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset:   21493:144603cc8cb6
xen-unstable date:        Tue Jun 01 06:45:44 2010 +0100

14 years agox86: Fix guest-pointer-array memmove in __pirq_guest_unbind().
Keir Fraser [Fri, 4 Jun 2010 09:39:03 +0000 (10:39 +0100)]
x86: Fix guest-pointer-array memmove in __pirq_guest_unbind().

Thanks to Alex Zeffert for finding this.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21492:96917cf25bf3
xen-unstable date:        Fri May 28 10:54:07 2010 +0100

14 years agoiommu: Map correct permissions in IOMMU on grant read-only map request.
Keir Fraser [Fri, 4 Jun 2010 09:38:21 +0000 (10:38 +0100)]
iommu: Map correct permissions in IOMMU on grant read-only map request.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21476:69a8e9b6961f
xen-unstable date:        Fri May 28 09:08:00 2010 +0100

iommu: Specify access permissions to iommu_map_page().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21475:9ee5c292b112
xen-unstable date:        Fri May 28 08:48:50 2010 +0100

14 years agoxenconsoled: Discard guest console data in bigger chunks
Keir Fraser [Fri, 4 Jun 2010 09:36:53 +0000 (10:36 +0100)]
xenconsoled: Discard guest console data in bigger chunks

Discard guest console data in bigger chunks so that there are fewer
discontinuities in the console data.  Also avoid discarding data if
space is available at the front of the buffer by reclaiming that
space.

Patch from: Christian Limpach <Christian.Limpach@citrix.com>
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21464:83a3f9556a05
xen-unstable date:        Thu May 27 08:21:24 2010 +0100

14 years agoxenstore: Make sure that libxs reports an error if xenstored drops
Keir Fraser [Fri, 4 Jun 2010 09:36:29 +0000 (10:36 +0100)]
xenstore: Make sure that libxs reports an error if xenstored drops
the connection, rather than getting stuck forever.

Patch from: Steven Smith <steven.smith@eu.citrix.com>
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21463:5be2d2a7f445
xen-unstable date:        Thu May 27 08:20:26 2010 +0100

14 years agoxenctx: Add --kernel-start option, to set the user/kernel split
Keir Fraser [Fri, 4 Jun 2010 09:35:16 +0000 (10:35 +0100)]
xenctx: Add --kernel-start option, to set the user/kernel split

Used when displaying stack traces.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21462:22ecd7178608
xen-unstable date:        Thu May 27 08:19:47 2010 +0100