]> xenbits.xensource.com Git - people/vhanquez/xen.git/log
people/vhanquez/xen.git
18 years ago[LINUX][BLK] front: More care over device teardown.
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Jun 2006 10:44:09 +0000 (11:44 +0100)]
[LINUX][BLK] front: More care over device teardown.
 1. We must ensure gnttab callbacks are disabled and all work
    flushed before tearing down device state. A new gnttab interface
    call is added for this purpose.
 2. blkif_free() must check for a request_queue before deref'ing it.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10346:5552bc2c3716e9e0f57dbba80f61332b895a0f2a
xen-unstable date:        Wed Jun 14 11:19:53 2006 +0100

18 years ago[TOOLS] Fix PAE save/restore/migrate: we must flush
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Jun 2006 16:38:16 +0000 (17:38 +0100)]
[TOOLS] Fix PAE save/restore/migrate: we must flush
all pending 'mmu updates' before moving page directories
below 4GB.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10345:b0ba792f393520a4262aa06f5ab2395efa1a32c2
xen-unstable date:        Tue Jun 13 17:30:30 2006 +0100

18 years ago[LINUX] Eliminates a deadlock and reduce (sometimes significantly) the time
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Jun 2006 14:58:40 +0000 (15:58 +0100)]
[LINUX] Eliminates a deadlock and reduce (sometimes significantly) the time
interrupts are off during context switch.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   10343:2fea03842f404f96955763caf803a29481953750
xen-unstable date:        Tue Jun 13 15:56:28 2006 +0100

18 years ago[LINUX] Fix blkfront driver to check connection status to backend in
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Jun 2006 14:35:26 +0000 (15:35 +0100)]
[LINUX] Fix blkfront driver to check connection status to backend in
all critical circumstances.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10336:91d2f2258c563100d5294fe12fd9fbe56870b213
xen-unstable date:        Tue Jun 13 15:13:29 2006 +0100

[LINUX] A better way to stop blkdev request handling in blkfront
driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10340:88d867661599a0aa05ec81d75ac6954146d269a9
xen-unstable date:        Tue Jun 13 15:33:10 2006 +0100

18 years ago[LINUX] Export some tlb-flush functions to modules, which are
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Jun 2006 13:11:13 +0000 (14:11 +0100)]
[LINUX] Export some tlb-flush functions to modules, which are
directly accessible via macros in tlbflush.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10334:ac5e98c1c46692083ca76a1cb4ad66c5bc37e9d5
xen-unstable date:        Tue Jun 13 14:08:37 2006 +0100

18 years agoInitialize the entire hypercall page when running a ring0 kernel
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Jun 2006 10:33:14 +0000 (11:33 +0100)]
Initialize the entire hypercall page when running a ring0 kernel

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
xen-unstable changeset:   10329:bb89ec7765c75321bb7ed0dca20e6c044da4d13c
xen-unstable date:        Mon Jun 12 18:23:42 2006 +0100

18 years ago[XEN] Fix compatibility with future guests which may try to
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Jun 2006 10:32:16 +0000 (11:32 +0100)]
[XEN] Fix compatibility with future guests which may try to
use hypercalls >= NR_hypercalls. These must fail with ENOSYS,
but the current strategy of masking off the high-order bits of
the hypercall number means we instead map those hypercalls onto
lower-numbered hypercalls with unpredictable results. This patch
replaces masking with an explicit compare-and-jump.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10332:833d05bdb4a49591928624517d0f496822a05c97
xen-unstable date:        Tue Jun 13 11:28:20 2006 +0100

18 years ago[LINUX] Fix interaction between idle loop and RCU subsystem.
kaf24@firebug.cl.cam.ac.uk [Mon, 12 Jun 2006 13:18:52 +0000 (14:18 +0100)]
[LINUX] Fix interaction between idle loop and RCU subsystem.

There is a problem with the current implementation of stop_hz_timer in
arch/i386/kernel/time-xen.c where the hz timer can be stopped on a CPU
which has RCU callbacks pending.

This patch backports a new RCU API created to fix this problem for the
s390 implementation of stop_hz_timer and also updates the time-xen.c
implementation of stop_hz_timer to call the new API.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
xen-unstable changeset:   10327:c230dbe793d623d67ca1d486c0c1a8db5c7cab94
xen-unstable date:        Mon Jun 12 14:17:05 2006 +0100

18 years agoFix code which finds the default interface if there are static routes.
cl349@firebug.cl.cam.ac.uk [Sun, 11 Jun 2006 19:34:23 +0000 (20:34 +0100)]
Fix code which finds the default interface if there are static routes.
The current code will break if there are multiple scope global routes
since the "ip route list default" command doesn't use "default" as a
filter, and will output multiple devices which breaks the rest of the
script.
Also make the vif/xenbr/eth naming consistent, i.e. if your default
network interface is eth1, you get vif1 and xenbr1.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
18 years ago[XEN] Fix SCHEDOP_poll to work even when event channels are
kaf24@firebug.cl.cam.ac.uk [Sun, 11 Jun 2006 18:28:57 +0000 (19:28 +0100)]
[XEN] Fix SCHEDOP_poll to work even when event channels are
not bound to the polling VCPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10319:aced0ee216aa474c7883efa56eb918d4fe7d6098
xen-unstable date:        Sun Jun 11 19:23:31 2006 +0100

18 years ago[LINUX] Fix IRQ SMP affinity logic for event channels.
kaf24@firebug.cl.cam.ac.uk [Sun, 11 Jun 2006 09:10:59 +0000 (10:10 +0100)]
[LINUX] Fix IRQ SMP affinity logic for event channels.
The logic now mimics native x86 behaviour: a request to change
affinity via /proc is held until the next interrupt on that
event channel. So /proc/irq/n/smp_affinity may not change
immediately!
Other notes:
 1. CPU-specific interrupts silently ignore requests to change
    affinity. For example, resched0, timer0, callfunc0, ...
 2. Reading smp_affinity always returns a cpumask containing
    a single cpu. An event channel can only be bound to a single
    cpu at a time. Neither Xen nor XenLinux implement IRQ
    balancing: requires a user-space balancing daemon.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10317:be05097d5d69925a72405201140df8da4c1cfa5c
xen-unstable date:        Sun Jun 11 09:54:35 2006 +0100

18 years ago[XEN] VCPU operation register_runstate should work even when
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 16:06:09 +0000 (17:06 +0100)]
[XEN] VCPU operation register_runstate should work even when
called from non-local VCPU. Necessary as Linux always calls
this operation from VCPU0 during secondary-VCPU bringup.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10314:b8e8b6aad8c8c38d8277c5188e548c64049299f0
xen-unstable date:        Fri Jun  9 17:05:09 2006 +0100

18 years ago[LINUX][X86/64] Initialise pages outside initial allocation so that
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 15:20:36 +0000 (16:20 +0100)]
[LINUX][X86/64] Initialise pages outside initial allocation so that
they are picked up by the balloon driver.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10310:4df81d20a9a1a8dfbe47d1b5697122559d7b6cc9
xen-unstable date:        Fri Jun  9 16:18:40 2006 +0100

18 years ago[XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen
kaf24@firebug.cl.cam.ac.uk [Fri, 9 Jun 2006 13:50:44 +0000 (14:50 +0100)]
[XEN] IOPL is ignored for VM86 mode port accesses. Fix Xen
emulation to match native behaviour.
Signed-off-by: Jan Beulich <jbeulich@novel..com>
xen-unstable changeset:   10309:5a0ed6c476732da229c3307ea5357cdd196e5462
xen-unstable date:        Fri Jun  9 14:29:00 2006 +0100

18 years ago[LINUX] swiotlb allocates multiple smaller contiguous DMA regions,
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Jun 2006 15:52:34 +0000 (16:52 +0100)]
[LINUX] swiotlb allocates multiple smaller contiguous DMA regions,
rather than a single big one.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10301:2db7b3627da4d38134ba0cfd740ce3ee73c3865e
xen-unstable date:        Thu Jun  8 16:48:23 2006 +0100

18 years ago[LINUX] Only trigger unhandled irq path if irq is not shared across
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Jun 2006 09:21:34 +0000 (10:21 +0100)]
[LINUX] Only trigger unhandled irq path if irq is not shared across
multiple guests (another guest may have handled the interrupt).
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10298:6fb0d5ad63d74ef272d1f1754b9eabd83000577e
xen-unstable date:        Thu Jun  8 10:11:04 2006 +0100

18 years ago[TOOLS] Fix domain builder to carefully check that mapped memory area
kaf24@firebug.cl.cam.ac.uk [Thu, 8 Jun 2006 08:57:53 +0000 (09:57 +0100)]
[TOOLS] Fix domain builder to carefully check that mapped memory area
does not overflow and wrap to zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10297:8c64169a05d3fda5d0b3792edd7beaea18c2ab83
xen-unstable date:        Thu Jun  8 09:52:04 2006 +0100

18 years agoExtended PHYSDEVOP_irq_status_query to obtain sharing status
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 14:51:19 +0000 (15:51 +0100)]
Extended PHYSDEVOP_irq_status_query to obtain sharing status
(bound to multiple guests?).
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10295:1a500cc4fcd5648ce52d782be30948ed9a3e28d9
xen-unstable date:        Wed Jun  7 15:46:05 2006 +0100

18 years ago[HVM][MMIO] Emulate more instructions: or/and/xor with byte width,
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 13:24:14 +0000 (14:24 +0100)]
[HVM][MMIO] Emulate more instructions: or/and/xor with byte width,
and load string (LODS) instructions.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Yunfeng zhao <yunfeng.zhao@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
xen-unstable changeset:   10292:7d37df6c324721647d5d6c930af09101f1165e23
xen-unstable date:        Wed Jun  7 14:20:29 2006 +0100

[HVM][MMIO] Support decode of 0x83 opcode (or imm8,m32/64').
This instruction is used by both WinXP during an SMP installation and by
Sun Solaris.  With this patch Sun Solaris UP is able to boot.  Windows
SMP gets a bit further but still has issues.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Travis Betak <tbetak.woller@amd.com>
xen-unstable changeset:   10293:2049467adee349ad576e8afee5de77e23d8928d8
xen-unstable date:        Wed Jun  7 14:21:49 2006 +0100

18 years agoReset Cirrus device model `VRAM' whenever a VGA/SVGA mode switch occurs.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 13:17:26 +0000 (14:17 +0100)]
Reset Cirrus device model `VRAM' whenever a VGA/SVGA mode switch occurs.

If you change the video resolution on a Windows XP guest such that it uses
fewer bytes of VRAM (either by using fewer bytes per pixel or by lowering the
resolution) then some window backgrounds will become corrupted.  This happens
because the Windows XP Cirrus Logic driver assumes that VRAM is initialized
to 0xff whenever the video mode switches between VGA and SVGA.

Signed-off-by: Donald.D.Dugger@intel.com
xen-unstable changeset:   9966:25da74e2f8fbf3664fb793c1fb9cde26a485292a
xen-unstable date:        Wed May 10 16:05:24 2006 +0100

[HVM][DM] Cleaner way of clearing VGA memory on mode changes (thanks to
Fabrice Bellard on the QEMU project). This patch clears the
memory in the BIOS call rather than when the Cirrus Logic register changes,
which more closely matches what happens on the real hardware.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
xen-unstable changeset:   10291:2fd2fd4b7c6a93e80b107dab9241d5790ba12f6f
xen-unstable date:        Wed Jun  7 14:13:22 2006 +0100

18 years ago[LINUX][X86/64] Support IO-port permissions bitmaps (ioperm() syscall).
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 12:39:07 +0000 (13:39 +0100)]
[LINUX][X86/64] Support IO-port permissions bitmaps (ioperm() syscall).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   10288:28128dafbe03758434bc947002758edf60a2747e
xen-unstable date:        Wed Jun  7 13:38:08 2006 +0100

18 years agox86/64 Linux: destroy entire init memory mapping beyond kernel image.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Jun 2006 10:25:31 +0000 (11:25 +0100)]
x86/64 Linux: destroy entire init memory mapping beyond kernel image.
Avoids overlap with modules mapping area.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   10287:ec903b8e6612eba5c90451fcb1bbb25d34cd88e4
xen-unstable date:        Wed Jun  7 11:24:44 2006 +0100

18 years agoUse explicitly-sized types in the dom0_ops and privcmd structures.
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Jun 2006 09:45:21 +0000 (10:45 +0100)]
Use explicitly-sized types in the dom0_ops and privcmd structures.
As discussed previously, the these operations are not performance-sensitive, so
the additional cache footprint shouldn't be an issue.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Backported to 3.0-testing as this is a dom0 interface breaker (also breaks
old libxenctrl and any other app/lib that executes hypercalls -- will need
recompiling).
xen-unstable changeset:   10277:c191c649cdb387e7ec573d218c9581c639c87700
xen-unstable date:        Tue Jun  6 10:25:59 2006 +0100

18 years ago[NET] front: Turn grant-ref error into a fatal bug. That's the best we
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Jun 2006 07:23:49 +0000 (08:23 +0100)]
[NET] front: Turn grant-ref error into a fatal bug. That's the best we
can do until we have a backend driver recovery method.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10275:3913a119477de17cf123991c113828437d7ba471
xen-unstable date:        Tue Jun 06 08:21:31 2006 +0100

18 years ago[X86EMUL] Mark MOV instruction as not needing writeback.
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Jun 2006 07:17:49 +0000 (08:17 +0100)]
[X86EMUL] Mark MOV instruction as not needing writeback.
Fix the test harness for x86/64 -- map emulated addresses
to low 4GB of address space.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10274:89d7acdd8951342c1d75a5485f732f8164e5ccb1
xen-unstable date:        Tue Jun 06 08:05:13 2006 +0100

18 years agoChange the x86_emulate() interface to pack all context arguments
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Jun 2006 07:16:56 +0000 (08:16 +0100)]
Change the x86_emulate() interface to pack all context arguments
into a context structure. This context can then be handed to
callback operations.
Based on an original patch from Mats Petersson <mats.petersson@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10159:41de9cd7971b565dd3286ce499a6b8063f6d686c
xen-unstable date:        Thu May 25 15:52:38 2006 +0100

Fix x86/64 build after previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10161:f4f4dd936103d5478f88346f917ba68d5cd32e4f
xen-unstable date:        Thu May 25 16:00:09 2006 +0100

18 years ago[HVM][VMX] Interrupts must be kept disabled when entering Xen for
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 16:20:48 +0000 (17:20 +0100)]
[HVM][VMX] Interrupts must be kept disabled when entering Xen for
external interrupt processing. Remove code that immediately
reenabled interrupt delivery on VMEXIT.
Signed-off-by: Seteven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10273:5e3827f7a93a96a1d043cb0e523a0f821830af94
xen-unstable date:        Mon Jun  5 17:17:27 2006 +0100

18 years ago[NET] back: fix synchronisation of access to deallocation buffer ring.
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 14:15:45 +0000 (15:15 +0100)]
[NET] back: fix synchronisation of access to deallocation buffer ring.
Must ensure ring is written to before producer index is incremented.
Bug diagnosed by Ky Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10268:9f50b8c2de0ad641d7795613edc35d78240dab8c
xen-unstable date:        Mon Jun  5 15:14:58 2006 +0100

18 years agoSupport extended-info in saved guest images generated by latest -unstable tools.
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Jun 2006 09:44:07 +0000 (10:44 +0100)]
Support extended-info in saved guest images generated by latest -unstable tools.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LINUX] Simply shared_info mapping code. Always use a fixmap.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 18:16:34 +0000 (19:16 +0100)]
[LINUX] Simply shared_info mapping code. Always use a fixmap.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10265:c9e6255cb44a2ec123b7bec9c9447697c747a5f3
xen-unstable date:        Fri Jun  2 19:14:44 2006 +0100

18 years ago[LINUX][X86_64] Destroy initial page-table mappings to avoid overlap with modules.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 17:09:58 +0000 (18:09 +0100)]
[LINUX][X86_64] Destroy initial page-table mappings to avoid overlap with modules.

The temporary mappings needed to set up the 1:1 mappings must be torn
down after use; otherwise they may trigger the
WARN_ON() in vmap_pte_range() (namely if the chunk allocated to hold
kernel and initial page tables gets close to or
exceeds 128Mb, or if a sufficiently high mem= argument causes the
static allocations to grow beyond 128Mb, which in
either case means these mappings extend into the modules area).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   10264:40331b1545d2de761b3d4d2777ff9349eceb5c1a
xen-unstable date:        Fri Jun 02 18:06:50 2006 +0100

18 years agoA few put_cpu() calls were missed when adding CONFIG_X86_NO_TSS.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 12:37:07 +0000 (13:37 +0100)]
A few put_cpu() calls were missed when adding CONFIG_X86_NO_TSS.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   10261:90a8ab269afe539f87ee4e50607a88ccfbccf3fe
xen-unstable date:        Fri Jun  2 13:36:29 2006 +0100

18 years agoUse halt() instead of asm("hlt").
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 11:16:13 +0000 (12:16 +0100)]
Use halt() instead of asm("hlt").
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   10259:8425df2203c9b0b7eac8c7061801c643133b8c9b
xen-unstable date:        Fri Jun  2 12:14:27 2006 +0100

18 years agoAdd backing support for HDIO_GETGEO ioctl to blkfront.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 11:15:49 +0000 (12:15 +0100)]
Add backing support for HDIO_GETGEO ioctl to blkfront.
Inspired by an earlier patch from Charles Coffing.
Signed-Off-By: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   10258:bcc2c9ea60d83e26940985d0e840d101e260ee57
xen-unstable date:        Fri Jun  2 12:13:34 2006 +0100

18 years ago[PAE] Chaneg interface for accessing %cr3 so that extra bits (>4GB) for PAE pgdirs
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 11:00:25 +0000 (12:00 +0100)]
[PAE] Chaneg interface for accessing %cr3 so that extra bits (>4GB) for PAE pgdirs
are placed in low-order bits of %cr3. Guests who understand this interface change
publish the fact by setting the option 'PAE=yes[extended-cr3]' in their __xen_guest
section.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10257:b198bbfeec10579b539455eeb41b4daaed53c546
xen-unstable date:        Fri Jun  2 11:46:24 2006 +0100

18 years ago[HVM] Fix a problem when destroying a Windows guest.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Jun 2006 08:38:34 +0000 (09:38 +0100)]
[HVM] Fix a problem when destroying a Windows guest.
From: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   10256:1f619b6adbc6ab6ce566b8661b6c2bbf355f502a
xen-unstable date:        Fri Jun  2 09:36:28 2006 +0100

18 years ago[LINUX] Fix cpu_possible_map initialisation.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 18:17:22 +0000 (19:17 +0100)]
[LINUX] Fix cpu_possible_map initialisation.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10248:7f219d68e6849b873fbd76e9a30b5ba297acbcea
xen-unstable date:        Thu Jun  1 19:14:42 2006 +0100

18 years agoFix dummy domains (DOM_IO and DOM_XEN) creation so that
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 15:42:40 +0000 (16:42 +0100)]
Fix dummy domains (DOM_IO and DOM_XEN) creation so that
list heads are initialised.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10242:ab627e9da8fb7be385f4e713ac184c275aba7c7c
xen-unstable date:        Thu Jun 01 16:39:42 2006 +0100

18 years agoFix negation of unsigned quantities in the Xen x86 emulator.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 15:33:38 +0000 (16:33 +0100)]
Fix negation of unsigned quantities in the Xen x86 emulator.
This fixes the problems left behind by c/s 10171. Again pointed
out by Jan Beulich; and again different from his suggested patch.
Hopefully this one will be less embarrassing.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10241:2dd8e7c4472897a86cac635b6982fa55f1ab6e07
xen-unstable date:        Thu Jun 01 16:31:37 2006 +0100

18 years agoFix map_pages_to_xen() when deallocating l1 page tables.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 10:05:13 +0000 (11:05 +0100)]
Fix map_pages_to_xen() when deallocating l1 page tables.
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
xen-unstable changeset:   10238:2a0208b33c3075d770ffaa647137432efd3b8eb9
xen-unstable date:        Thu Jun 01 11:04:06 2006 +0100

18 years ago[HVM] Fix set_guest_back_ptr to ignore empty PTEs.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 10:00:13 +0000 (11:00 +0100)]
[HVM] Fix set_guest_back_ptr to ignore empty PTEs.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10237:121ec8b952d33a358e6c6ab65493e0b47e56781d
xen-unstable date:        Thu Jun 01 10:50:33 2006 +0100

18 years agoFix MMU_NORMAL_PT_UPDATE when passed a page that is no longer of type page-table.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Jun 2006 09:59:50 +0000 (10:59 +0100)]
Fix MMU_NORMAL_PT_UPDATE when passed a page that is no longer of type page-table.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10236:09d9d6e7b9851cfb2206395ced55b4769e164b4a
xen-unstable date:        Thu Jun 01 10:34:21 2006 +0100

18 years ago[SVM] Fix virtualization of the CPUID NX bit, and clean up other CPUID bits.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:34:05 +0000 (07:34 +0100)]
[SVM] Fix virtualization of the CPUID NX bit, and clean up other CPUID bits.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
xen-unstable changeset:   10190:e5de45e2edaf8d7947d70666b9772315e68cebb0
xen-unstable date:        Wed May 31 07:28:43 2006 +0100

18 years ago[HVM][AMD] Support HVM SMP guests on AMD Pacifica hardware (svm platform).
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:33:28 +0000 (07:33 +0100)]
[HVM][AMD] Support HVM SMP guests on AMD Pacifica hardware (svm platform).
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
xen-unstable changeset:   10180:e0ec3587a2f03d14e55862311f0a0be9f833d6c0
xen-unstable date:        Tue May 30 12:32:07 2006 +0100

18 years ago[HVM] Fix a bug in the emulation of the xchg instruction.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:32:55 +0000 (07:32 +0100)]
[HVM] Fix a bug in the emulation of the xchg instruction.

This bug has prevented us from booting fully virtualized SMP guests
that write to the APIC using the xchg instruction (when
CONFIG_X86_GOOD_APIC is not set). On 32 bit platforms, sles 10 kernels
are built without CONFIG_x86_GOOD_APIC not set and hence we have had
problems booting fully virtualized SMP sles 10 guests.

Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
xen-unstable changeset:   10179:5be9e927533d94ed1389f8926d51c65849133556
xen-unstable date:        Tue May 30 12:30:47 2006 +0100

18 years ago[HVM] Fix shadow mode to not corrupt frame 0's page_info struct.
kaf24@firebug.cl.cam.ac.uk [Wed, 31 May 2006 06:32:04 +0000 (07:32 +0100)]
[HVM] Fix shadow mode to not corrupt frame 0's page_info struct.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
xen-unstable changeset:   10189:ec1e371ec3208f771595da6c82baae4cd9a441f5
xen-unstable date:        Wed May 31 07:25:59 2006 +0100

18 years agoFix infinite recursion loop in get_page_type() error path.
kaf24@firebug.cl.cam.ac.uk [Tue, 30 May 2006 17:14:05 +0000 (18:14 +0100)]
Fix infinite recursion loop in get_page_type() error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10183:c43080e63545c2c9ba101fd8864b5aacc5d666e2
xen-unstable date:        Tue May 30 18:11:34 2006 +0100

18 years agoRemove bogus inline asm of unused function memchr().
kaf24@firebug.cl.cam.ac.uk [Fri, 26 May 2006 12:55:33 +0000 (13:55 +0100)]
Remove bogus inline asm of unused function memchr().
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10172:3ed325fa395bb75f846b29bd3fa571ffc03eb5e4
xen-unstable date:        Fri May 26 13:53:49 2006 +0100

18 years agoCast to a signed type before negating if we really want the result to be negative.
kaf24@firebug.cl.cam.ac.uk [Fri, 26 May 2006 12:55:03 +0000 (13:55 +0100)]
Cast to a signed type before negating if we really want the result to be negative.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10171:2dc7c271270055b8df6b063141a05dc0c92298b2
xen-unstable date:        Fri May 26 13:49:29 2006 +0100

18 years agoAdded tag RELEASE-3.0.2-3 for changeset 5a47baf9b70103b9f2a48ff24bddb30dbc5c5041
jbulpin@bridport.uk.xensource.com [Fri, 26 May 2006 08:23:33 +0000 (09:23 +0100)]
Added tag RELEASE-3.0.2-3 for changeset 5a47baf9b70103b9f2a48ff24bddb30dbc5c5041

18 years ago[XEND] Wait sufficient time for memory to balloon out before creating a new domain.
kaf24@firebug.cl.cam.ac.uk [Thu, 25 May 2006 20:41:59 +0000 (21:41 +0100)]
[XEND] Wait sufficient time for memory to balloon out before creating a new domain.

On the ES7000 when Dom0 boots up with all of system memory and you try
to bring up a DomU with more than 2GB of memory, xend times out before
the memory is freed causing the domain not to be created. This patch
increases the timeout depending on the amount of memory that needs to be
freed. It also places a cap on the sleep time so that it does not grow
without a limit. This fixes bug# 650

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D650

Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>
xen-unstable changeset:   10165:93db1b536f383ee93359080097b0870ea3add01a
xen-unstable date:        Thu May 25 21:41:04 2006 +0100

18 years agoFix VMEXIT tracing.
kaf24@firebug.cl.cam.ac.uk [Thu, 25 May 2006 20:20:02 +0000 (21:20 +0100)]
Fix VMEXIT tracing.
Signed-off-by: Bruce Rogers <brogers@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10163:218daa547e8afdd3a327df6402cef1af8ae54f2c
xen-unstable date:        Thu May 25 21:18:55 2006 +0100

18 years agoBump the version to 3.0.2-3 RELEASE-3.0.2-3
jbulpin@bridport.uk.xensource.com [Thu, 25 May 2006 11:04:50 +0000 (12:04 +0100)]
Bump the version to 3.0.2-3

Signed-off-by: James Bulpin <james@xensource.com>
18 years agoFix IDE CD-drive PIO mode.
cl349@firebug.cl.cam.ac.uk [Wed, 24 May 2006 18:46:22 +0000 (19:46 +0100)]
Fix IDE CD-drive PIO mode.
CD drives in PIO mode don't work under Xen because of a change in Linux
between 2.6.12 and 2.6.16, as a result of the following thread:
http://lists.parisc-linux.org/pipermail/parisc-linux/2005-August/027197.html

The change breaks systems which have highmem and a swiotlb because the
ide-cd driver doesn't use the swiotlb, resulting in read/writes to/from
highmem pages in PIO mode not working any longer.  Xen kernels usually have
both highmem and a swiotlb.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
xen-unstable changeset: 10151:ad33b3882867f6ab4466383129aa3827c64508d3
xen-unstable date: Wed May 24 19:41:47 2006 +0100

18 years agoRemove unnecessary x86-specific mapping code from privcmd interface.
kaf24@firebug.cl.cam.ac.uk [Wed, 24 May 2006 14:02:57 +0000 (15:02 +0100)]
Remove unnecessary x86-specific mapping code from privcmd interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10150:2436cc71de508f409b957e9eb24c1f34b1ab615d
xen-unstable date:        Wed May 24 14:49:24 2006 +0100

18 years agoRemove broken inline-asm string functions from Xen/x86. The
kaf24@firebug.cl.cam.ac.uk [Wed, 24 May 2006 10:54:00 +0000 (11:54 +0100)]
Remove broken inline-asm string functions from Xen/x86. The
generic implementations in string.c are quite sufficient.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10144:1345b20cca565950c0209971a0a71d19498cc765
xen-unstable date:        Wed May 24 11:52:25 2006 +0100

18 years agoSeveral page allocations, done in the hypervisor when starting an HVM
kaf24@firebug.cl.cam.ac.uk [Fri, 19 May 2006 15:14:54 +0000 (16:14 +0100)]
Several page allocations, done in the hypervisor when starting an HVM
domain, are not checked.  This can cause the physical machine to crash
when starting the HVM domain during low-memory conditions.

Kudos to Charles Arnold for catching the problem with
shadow_direct_map_init.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
xen-unstable changeset:   10042:d714f923b7cfff705dcf9aae30a06709340059aa
xen-unstable date:        Fri May 19 16:10:52 2006 +0100

18 years agoRemove i386/x8664 differences in vmx reg store/load routines.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 May 2006 16:24:16 +0000 (17:24 +0100)]
Remove i386/x8664 differences in vmx reg store/load routines.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9912:72d1cf383c679e1db24c92c7d89d7816b947eabe
xen-unstable date:        Tue May  2 17:17:15 2006 +0100

18 years agoEnsure segment bases are consistent with their
kaf24@firebug.cl.cam.ac.uk [Thu, 18 May 2006 15:07:49 +0000 (16:07 +0100)]
Ensure segment bases are consistent with their
selectors for VMX guests in VM86 mode.
Signed-off-by: David Lively <dlively@virtualiron.com>
xen-unstable changeset:   9915:e1409c2ace46afd67b54de1f5c0b2b6d3721ca3b
xen-unstable date:        Wed May  3 10:56:19 2006 +0100

Fix mismerge of vmx vm86 patch: 9915:e1409c2ace46afd67b54de1f5c0b2b6d3721ca3b
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9920:915d5af5dc18f40f9ae9ac160263edb214ab0b0e
xen-unstable date:        Wed May  3 13:33:01 2006 +0100

18 years agoRemove Emacs variables settings from tail of our Linux files.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 May 2006 10:41:08 +0000 (11:41 +0100)]
Remove Emacs variables settings from tail of our Linux files.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10030:48c0f5489d44feb74d0982652072eb0cf0aed048
xen-unstable date:        Thu May 18 11:39:03 2006 +0100

18 years agoFix the build after SVM patches.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 May 2006 07:56:14 +0000 (08:56 +0100)]
Fix the build after SVM patches.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10017:56444cd2805cf1b4bec168117305bcc9c64a80f4
xen-unstable date:        Thu May 18 08:55:20 2006 +0100

18 years agoSVM patch to add a host save area per core for the hypervisor and also
kaf24@firebug.cl.cam.ac.uk [Wed, 17 May 2006 23:09:13 +0000 (00:09 +0100)]
SVM patch to add a host save area per core for the hypervisor and also
for the microcode.  The microcode area is not guaranteed to be
compatible with the vmcb layout, therefore will require it's own
"scratch pad".  Consolidate the per core areas into a single structure.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   10016:1d2e4a87300359d1f82a5a8f546798391c0d9afa
xen-unstable date:        Thu May 18 00:03:13 2006 +0100

Fix register corruption caused by c/s 9922.
From: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10015:0fbec683690550d6f4c9ee8a39cc0e98301af871
xen-unstable date:        Thu May 18 00:01:59 2006 +0100

SVM patch to cleanup guest event injection logic, remove unnecessary
event_injecting variable.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   10014:b4361ae1aabc2a6bbc65c9d9bdc9843915b2eb09
xen-unstable date:        Wed May 17 23:53:01 2006 +0100

SVM patch to reverse the logic of the general1 intercepts for easier
reading, also add the INVD intercept with print/eip increment only.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
xen-unstable changeset:   10013:3d85f350a66a006fd5df2c228cfd8b75e3240984
xen-unstable date:        Wed May 17 23:51:39 2006 +0100

SVM patch to cleanup IOIO handling, do not use "real" mode but rather
the correct "bitness".
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
xen-unstable changeset:   10012:632ad28f2fd7a6602b08a9d054dc1b44efaf93f3
xen-unstable date:        Wed May 17 23:50:23 2006 +0100

18 years agoFix MOVS instruction emulation for HVM MMIO.
kaf24@firebug.cl.cam.ac.uk [Tue, 16 May 2006 18:52:53 +0000 (19:52 +0100)]
Fix MOVS instruction emulation for HVM MMIO.
From: Gerd Hoffman
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10003:7fdc4a8b782b1e17fc473d418236ab44cc31b35f
xen-unstable date:        Tue May 16 19:50:23 2006 +0100

18 years agoPrevent an oops in Dom0 that occurs when a CD device, specified as one
kaf24@firebug.cl.cam.ac.uk [Tue, 16 May 2006 08:41:36 +0000 (09:41 +0100)]
Prevent an oops in Dom0 that occurs when a CD device, specified as one
of the 'hardrives' in the 'disk=' line of a para-virtualized guest's
def file, has no media when the guest is started.

The oops occurs in vbd.c when vbd_size() is called from connect() (in
xenbus.c) and the vbd pointer is really an error code that comes from
the failed open that occurred in vbd_create().

Based on a patch from Ross Maxfield at Novell.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9998:df1521633fb519727adb80f15ea1f2e5b69dc3df
xen-unstable date:        Tue May 16 09:40:38 2006 +0100

18 years agoFix spelling errors in man pages.
kaf24@firebug.cl.cam.ac.uk [Mon, 15 May 2006 06:51:55 +0000 (07:51 +0100)]
Fix spelling errors in man pages.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
xen-unstable changeset:   9992:cb70d4f8d7182b0d1b5bcee7044f59fbe4dc9839
xen-unstable date:        Mon May 15 07:51:07 2006 +0100

18 years agoFix the performance issues of 2-level paging HVM guests on the PAE
kaf24@firebug.cl.cam.ac.uk [Mon, 15 May 2006 06:49:08 +0000 (07:49 +0100)]
Fix the performance issues of 2-level paging HVM guests on the PAE
Xen. With this, the performance will be basically same as 2-on-2.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
xen-unstable changeset:   9991:d20a2a971103e4c9cd09d9284707437cd1c28b77
xen-unstable date:        Mon May 15 07:46:57 2006 +0100

19 years agoRemove unused LINUX_SRCS.
cl349@firebug.cl.cam.ac.uk [Fri, 12 May 2006 21:35:11 +0000 (22:35 +0100)]
Remove unused LINUX_SRCS.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
xen-unstable changeset: 9932:d36ac8bf715ebd874f963eee9819edcff409dfc6
xen-unstable date: Thu May  4 16:49:58 2006 +0100

Linux: upgrade to 2.6.16.13.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9933:44e5abbf333b8d393423d99f89d2191dba022659
xen-unstable date: Thu May  4 17:38:25 2006 +0100

Linux: upgrade patches to 2.6.16.13.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9934:ad5b833122a8d88be39629751e1ee5c1d8629f96
xen-unstable date: Thu May  4 17:44:14 2006 +0100

Don't try to write to pmd pages, there is no writeable-pmd support.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9936:5afb142646294a6c446e275c5bef60ff7d477881
xen-unstable date: Fri May  5 00:27:10 2006 +0100

19 years agoAdd hvm headers to HDRS variable.
kaf24@firebug.cl.cam.ac.uk [Fri, 12 May 2006 21:35:05 +0000 (22:35 +0100)]
Add hvm headers to HDRS variable.

xen-unstable changeset: 9540:c1d53788a25e07b4ac4ef49c3e3d76f7ad3f6b8f
xen-unstable date: Wed Apr  5 15:42:01 2006 +0100

Clean up HDRS Makefile variable.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9541:133ce326febdae137e106c0b0089a8c127631662
xen-unstable date: Wed Apr  5 15:46:01 2006 +0100

Clean up build system some more. No need to explicitly
include Rules.mk/Post.mk all over the place.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9542:68ef2efa929b26f9e5ab71a5590c899d044c48ce
xen-unstable date: Wed Apr  5 17:15:34 2006 +0100

Avoid double slashes in linker object file lists.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9582:b84517e3fc3042f4bfe822d39eca87be0fad5932
xen-unstable date: Fri Apr  7 14:26:02 2006 +0100

Remove unused netbsd build fragments.

Signed-Off-By: Homrs <horms.net.au>
xen-unstable changeset: 9597:c83da0012e87e4b1d83bb61ec338616fbcf3b141
xen-unstable date: Mon Apr 10 16:26:52 2006 +0100

build: Remove iptables and python loging helper targets

These targets don't really fit into the build infastructure,
for instance there is no faclilty for them to be removed
on make distclean. I posted a patch that fleshed out the targets,
but Christian Limpach suggested to me that removing them
would be a better idea.

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9598:095519654079f55af70943004e448fb779ac4c5a
xen-unstable date: Mon Apr 10 16:27:46 2006 +0100

build: Make sure that DESTDIR is set

In the case where XEN_PYTHON_NATIVE_INSTALL is in effect,
if DESTDIR is not set then the install will go into a relative
directory rather than under the default prefix (usually /usr).

An alternate solution would be to update the fragments
that do the python install to use 2062 2062 141 126DESTDIR)/ instead of
2062 2062 141 126DESTDIR). This is not an incredible burden as there
are only two such fragments in the tree. However, it
seems prone to error as new makefiles are created
in the future.

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9599:baa1742637b7e4a2d94db08b4f12c2a0f8b07128
xen-unstable date: Mon Apr 10 16:31:53 2006 +0100

build: clean up output of make help a little bit

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9600:82dfb97fe5ea6d9e0c279b0c2de0688c09c1e4e4
xen-unstable date: Mon Apr 10 16:34:59 2006 +0100

build: Document the use of XEN_PYTHON_NATIVE_INSTALL

Document the use of the XEN_PYTHON_NATIVE_INSTALL environment variable

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9601:066a233ee3659fb1e52a4bca05727e5cdd12004a
xen-unstable date: Mon Apr 10 16:35:30 2006 +0100

build: Clean up use of .PHONY

* Move .PHONY directives next to targets,
  this makes them a lot harder to miss
* Add missing .PHONY directives
* Remove nonexistent .PHONY directives
* Hopefully I didn'T miss anything...

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9607:b454a09cddb1a4ba44e8a810f8f6779c5e5bb3ef
xen-unstable date: Mon Apr 10 17:02:49 2006 +0100

Fix a couple of typos.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9610:7a41b35d73f40246ea839a0628f50dd937b21d50
xen-unstable date: Mon Apr 10 17:28:02 2006 +0100

Remove some bogus .PHONY Makefile declarations.
Fixes xentop installation.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9616:c783f340bef82223eb5fcd88093fd919f41790b6
xen-unstable date: Tue Apr 11 09:58:04 2006 +0100

This fixes the Xen Makefile to allow correct building of cscope, TAGS
and tags. Prior to this the asm directory was not constructed correctly
for the "find" command. "xen\13cope.*" has been added to ".hgignore".

Signed-off-by: Aravindh Puthiyaparambil
               <aravindh.puthiyaparambil.com>
xen-unstable changeset: 9629:4f0ecc016cd1ebda3bff176c8c01113c35b05c7b
xen-unstable date: Thu Apr 13 10:45:43 2006 +0100

Clean up xen Makefile. Use _-prefixed rules to avoid a
comparsion with XEN_ROOT variable.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9630:c9d706834d25a9efe5bd3a98cbf32c6998f30ab4
xen-unstable date: Thu Apr 13 10:57:57 2006 +0100

In some cases, say for instance for some bizzare reason
the tree was checked out of CVS, which doens't neccessarily
store file permissions, mkbuildtree may not be executable.
So run them explicitly via bash.

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9636:3c05406f5e0acc37eb3e59311c7d1c3cf245dc29
xen-unstable date: Thu Apr 13 11:24:00 2006 +0100

Fix "make debug" in Xen subtree. Pointed out by Aravindh
at Unisys.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9736:25e4cd1c3d269022dc6c75dfddac9710e092f575
xen-unstable date: Tue Apr 25 08:54:36 2006 +0100

Fix fault handler for both 32 and 64 bit architecture. Clean up unused code.
Signed-off-by: Grzegorz Milos <gm281.ac.uk>
Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil.com>
xen-unstable changeset: 9923:62c8e97d56cfea3708a2bd308330d71047623888
xen-unstable date: Thu May  4 11:19:27 2006 +0100

Make Xen version numbers more flexible.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9958:c51c1e7ce0a343e02d31c691b317092387505f4c
xen-unstable date: Mon May  8 16:41:22 2006 +0100

Make cscope hgignore wildcard a little bit less permissive.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9959:4bc1229b257391aa4de6c95796d42d6d7009dc33
xen-unstable date: Mon May  8 17:18:19 2006 +0100

19 years agoFix an out-of-bounds memory access in xc_ptrace.c.
kaf24@firebug.cl.cam.ac.uk [Fri, 12 May 2006 14:49:11 +0000 (15:49 +0100)]
Fix an out-of-bounds memory access in xc_ptrace.c.

Currently, Xen always copies the entire 512 byte extended
FPU state (fxsave) even if only the "regular" FPU state was
requested.

This breaks since the memory buffer allocated in
linux-xen-low.c:regsets_fetch_inferior_registers() is only large
enough to hold the "plain" FPU registers.

Signed-Off-By: Simon Kagstrom <simon.kagstrom@bth.se>
xen-unstable changeset:   9987:8e6835fa7c4bf262a02fe63418eee1ae3fd16516
xen-unstable date:        Fri May 12 15:47:25 2006 +0100

19 years agoFix a typo in xc_ptrace() and fix single-stepping when attached
kaf24@firebug.cl.cam.ac.uk [Thu, 11 May 2006 10:34:34 +0000 (11:34 +0100)]
Fix a typo in xc_ptrace() and fix single-stepping when attached
to a live guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9973:e96f98f9c289ca23b0b3ff7e5d897290ef2b142f
xen-unstable date:        Thu May 11 11:33:07 2006 +0100

19 years agoWhen we copy packets in netback/netfront make sure the new skb has
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 16:32:22 +0000 (17:32 +0100)]
When we copy packets in netback/netfront make sure the new skb has
all the necessary fields initialised. In particular, before we were
not copying ip_summed and that screws up checksum offload.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9972:91c77df11b43894a2940b03029be46f6a1c85319
xen-unstable date:        Wed May 10 17:30:42 2006 +0100

19 years agoSimply do not declare module_exit() handlers for netback/blkback, rather
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 15:48:12 +0000 (16:48 +0100)]
Simply do not declare module_exit() handlers for netback/blkback, rather
than declaring the modules unsafe.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9970:60f7b567bb2b00d9dcf6ed86847feba4f9462177
xen-unstable date:        Wed May 10 16:47:00 2006 +0100

19 years agoproto_csum_blank field gets lost if packet is copied in netback driver.
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 15:26:27 +0000 (16:26 +0100)]
proto_csum_blank field gets lost if packet is copied in netback driver.
Signed-off-by: James Dykman <dykman@us.ibm.com>
xen-unstable changeset:   9969:b61908e30015809a18afb55207f95e232577643a
xen-unstable date:        Wed May 10 16:23:22 2006 +0100

19 years agoSet up and tear down phys_proc_id, cpu_core_id, cpu_sibling_map
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 14:46:08 +0000 (15:46 +0100)]
Set up and tear down phys_proc_id, cpu_core_id, cpu_sibling_map
and cpu_core_map when CPUs come online and go offline.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9962:d8954fc3b76b6bdbe0cd301924b51dffa43409d1
xen-unstable date:        Wed May 10 15:44:56 2006 +0100

19 years agoFix blkif and netif backend teardown -- do not remove devices from
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 12:42:10 +0000 (13:42 +0100)]
Fix blkif and netif backend teardown -- do not remove devices from
sysfs (and hence trigger hotplug callbacks) until the devices really
are dead. This fixes a bug where the deferred code to free a blk
device was running concurrently with a hotplug-remove callback which
would try to reclaim the underlying storage. In some cases the race
would be lost and the hotplug script would fail.

Thanks to the Zhu Han at Intel for finding the root cause of this
long-term and annoying bug!

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9961:019411cc3ae564adf62f1d098e99df26f32e952e
xen-unstable date:        Wed May 10 13:27:17 2006 +0100

19 years agoAdd module license to xenbus_be, otherwise the module cannot be loaded.
kaf24@firebug.cl.cam.ac.uk [Mon, 8 May 2006 13:56:18 +0000 (14:56 +0100)]
Add module license to xenbus_be, otherwise the module cannot be loaded.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   9957:85de2de6469912deb98511e6052b50d357f5682b
xen-unstable date:        Mon May  8 14:54:22 2006 +0100

19 years agoThe current Xen code for VMX is setting the gp fault vmexiting in
kaf24@firebug.cl.cam.ac.uk [Mon, 8 May 2006 13:55:42 +0000 (14:55 +0100)]
The current Xen code for VMX is setting the gp fault vmexiting in
the EXCEPTION_BITMAP vmcs control. There is no need for that as VMM is
just plainly re-injecting back to the guest. The attached is a simple
patch to set the vmcs control properly.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
xen-unstable changeset:   9956:a658da3a22dd3413a87b35496a490db028f98b19
xen-unstable date:        Mon May  8 14:53:09 2006 +0100

19 years agoFix injection of guest faults resulting from failed injection of a
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 13:07:53 +0000 (14:07 +0100)]
Fix injection of guest faults resulting from failed injection of a
previous event. We enter an infinite loop if the original failed
injection cannot be fixed up by Xen (e.g., because it's not a shadow
pagetable issue).

   The RHEL4 HVM guest hang issue was actually a side effect of
change-set 9699. In the rhel4 guest hang rc.sysinit init-script was
calls kmodule program to probe the hardware. The kmodule uses the kudzu
library call probeDevices(). For probing the graphics hardware in the
vbe_get_mode_info() function, sets up the environment and goes into the
vm86 mode to do the int x10 call. For returning back to protected mode
it sets up a int 0xff call. At the time of calling the int 0xff the
guest process pages were not filled up. And it was causing an infinite
loop of vmexits with the IDT_VECTORING_INFO on the int 0xff instruction.

        The reason for the infinite loop is changeset 9699. With that
the guest page fault was always getting overridden by the int 0xff gp
fault coming from the IDT_VECTORING_INFO. With the attached patch if VMM
is injecting exceptions like page faults or gp faults then
IDT_VECTORING_INFO field does not override it, and that breaks the
vmexit infinite loop for the rhel4.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
xen-unstable changeset:   9945:0c586a81d941ab0a18aecca87cffe1500a9185c5
xen-unstable date:        Fri May  5 14:05:31 2006 +0100

19 years agoFix python pciif script to reference correct 2.0 compatibility variable.
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 13:02:40 +0000 (14:02 +0100)]
Fix python pciif script to reference correct 2.0 compatibility variable.

In the Xen 2.0.x compatibility section of xend (where we try to parse
the s-expressions if they came from an SXP configuration file for Xen
2.0.x), the wrong variable is referenced. This fix corrects the python
script to use the correct variable.

Thanks to Mike Wright for reporting this.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
xen-unstable changeset:   9944:7801e09f518cfdf566a405bce2c3f41553e35218
xen-unstable date:        Fri May  5 14:01:43 2006 +0100

19 years agoSVM patch for 64bit hv, to reset the ss, es, ds host selectors to NULL
kaf24@firebug.cl.cam.ac.uk [Thu, 4 May 2006 20:26:02 +0000 (21:26 +0100)]
SVM patch for 64bit hv, to reset the ss, es, ds host selectors to NULL
during a context switch to the SVM domain's vcpu. This patch also
initializes the tlb_control to 1 for the initial do_launch().
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9935:8761333499ae2874647eb5d67d8cb091fbc5b14b
xen-unstable date:        Thu May  4 21:24:39 2006 +0100

19 years agoSVM patch to add add init intercept handler.
kaf24@firebug.cl.cam.ac.uk [Thu, 4 May 2006 16:08:19 +0000 (17:08 +0100)]
SVM patch to add add init intercept handler.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9632:cff23e96eae7af54c7b4e5cae80ed1565d6f4941
xen-unstable date:        Thu Apr 13 11:00:54 2006 +0100

SVM patch to add PAE support.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9633:9849bd4a86dd319d8d791e767e37e0d586459c90
xen-unstable date:        Thu Apr 13 11:06:43 2006 +0100

SVM patch to init rsp properly.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9634:137b60a47d139dfaa7d202edb612bcaa1c595801
xen-unstable date:        Thu Apr 13 11:07:28 2006 +0100

SVM patch to add BP exception intercept support.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9635:b77ebfaa72b200af0cdfc38dd8f7dbe274e5e386
xen-unstable date:        Thu Apr 13 11:08:20 2006 +0100

SVM patch to cleanup the host save area allocation and deallocation,
including removing  memory leaks concerning these areas.  Also fixes
problem where the HSA MSR was not initialized properly for cores>0.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9922:e1a47a2696004087852cb9f2e09fe4eb8ad1b928
xen-unstable date:        Thu May  4 11:14:45 2006 +0100

19 years agoFix xenbus userspace device transaction tracking.
cl349@firebug.cl.cam.ac.uk [Thu, 4 May 2006 09:34:27 +0000 (10:34 +0100)]
Fix xenbus userspace device transaction tracking.
If a transaction end command fails, the semaphore which keeps track
of whether we're in a transaction or not was not getting updated.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
xen-unstable changeset: 9921:bbce4d11518910328380f6a3325268acfa5b3aff
xen-unstable date: Thu May  4 10:25:27 2006 +0100

19 years agoBalloon driver should hijack the ->lru list field rather than
kaf24@firebug.cl.cam.ac.uk [Tue, 2 May 2006 16:24:29 +0000 (17:24 +0100)]
Balloon driver should hijack the ->lru list field rather than
adding another list field to every page structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9913:decf309fb47b3f4246540a5e1327663651d266fe
xen-unstable date:        Tue May  2 17:23:21 2006 +0100

19 years agoFix perfc array range on reset.
kaf24@firebug.cl.cam.ac.uk [Tue, 2 May 2006 14:25:22 +0000 (15:25 +0100)]
Fix perfc array range on reset.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   9908:7af8039b3c571af038277ab6d7d288d1f2a7acf6
xen-unstable date:        Tue May  2 15:21:19 2006 +0100

19 years agoFix Xen's interrupt acknowledgement routines on certain
kaf24@firebug.cl.cam.ac.uk [Fri, 28 Apr 2006 13:06:33 +0000 (14:06 +0100)]
Fix Xen's interrupt acknowledgement routines on certain
(apparently broken) IO-APIC hardware:
 1. Do not mask/unmask the IO-APIC pin during normal ISR
    processing. This seems to have really bizarre side effects
    on some chipsets.
 2. Since we instead tickle the local APIC in the ->end
    irq hook function, it *must* run on the CPU that
    received the interrupt. Therefore we track which CPUs
    need to do final acknowledgement and IPI them if
    necessary to do so.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9644:bb0dc0ae23bb1fe49c197f38951fc424eef2905e
xen-unstable date: Fri Apr 14 12:01:15 2006 +0100

New IO-APIC ACK method seems to cause problems on some systems
(e.g., Dell 1850). Disable it by default for now, but allow the
new mwethod to be tested by passing boot parameter 'new_ack'
to Xen.

You can tell which ACK method you are using because Xen prints
out "Using old ACK method" or "Using new ACK method" during boot.

This workaround can be removed if/when the problems with the new
ACK method are flushed out.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9645:9a273aabb839dff897be39a581d716dfed952c79
xen-unstable date: Fri Apr 14 14:14:24 2006 +0100

Big fixes for the new IO-APIC acknowledging method. The problems
were:
 1. Some critical Xen interrupts could get blocked behind
    unacknowledged guest interrupts. This is avoided by making
    all Xen-bound interrrupts strictly higher priority.
 2. Interrupts must not only be EOIed on the CPU that received
    them, but also in reverse order when interrupts are nested.
    A whole load of logic has been added to ensure this.

There are two boot parameters relating to all this:
 'ioapic_ack=old' -- use the old IO-APIC ACK method
 'ioapic_ack=new' -- use the new IO-APIC ACK method (default)
 'force_intack'   -- periodically force acknowledgement of
                     interrupts (default is no; useful for debugging)

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9664:b39365343de08af6c76fa3492b2cffb436470b3f
xen-unstable date: Sat Apr 15 18:09:52 2006 +0100

Clean up new EOI ack method some more and fix unbinding
IRQ from guest (penidng EOIs must be forcibly flushed).

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9667:3c1cd09801c047008e529aa03b56059e00c1f4f2
xen-unstable date: Sun Apr 16 15:04:21 2006 +0100

This patch defines a test_and_clear bitop for cpumask_t pointers.
Also fixes "wrong pointer type" for type specific bitops by using
&foo[0] instead of &foo.

Signed-off-by: Jimi Xenidis <jimix@us.ibm.com>
xen-unstable changeset: 9670:b550a93c6459c4f0f2a86b61a08768d040482d88
xen-unstable date: Wed Apr 19 18:24:49 2006 +0100

Replace &foo[0] with foo where the latter seems cleaner
(which is usually, and particularly when its an argument
to one of the bitops functions).

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9671:72f9c751d3ea1f17ff513cd7fc2cbe671a9af7c9
xen-unstable date: Wed Apr 19 18:32:20 2006 +0100

19 years agoTurn pirq_mask into a generic bitmap type.
kaf24@firebug.cl.cam.ac.uk [Fri, 28 Apr 2006 13:04:56 +0000 (14:04 +0100)]
Turn pirq_mask into a generic bitmap type.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9583:3b0d07af46cb0c456912b287a0365172746ae9e0
xen-unstable date: Fri Apr  7 14:27:46 2006 +0100

Fix my slightly broken change to pirq_mask logic -- we must
pass the last seen bit *plus 1* to find_next_bit().

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9585:05db1d61e031d2fb48e561b185fa42981547db9a
xen-unstable date: Fri Apr  7 16:15:44 2006 +0100

19 years agoAdd bounds check to get_mfn_from_gpfn().
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 13:14:26 +0000 (14:14 +0100)]
Add bounds check to get_mfn_from_gpfn().
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoOccasionally large smp machines fail to reboot properly and die under
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:58:50 +0000 (09:58 +0100)]
Occasionally large smp machines fail to reboot properly and die under
an IPI storm of smp_call_function() to machine_reboot.  Only the boot
processor needs to run machine_restart, so send an IPI to CPU0.

Original patch by: Ryan Harper <ryanh@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoCheck a write() return value in xenbaked.
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:47:42 +0000 (09:47 +0100)]
Check a write() return value in xenbaked.

From: Jeremy Katz

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoJust allocate unbound irq only from dynirq range, since
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:44:28 +0000 (09:44 +0100)]
Just allocate unbound irq only from dynirq range, since
pirq range is reserved for physical devices. This saves
unnecessary checks on pirq range.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

19 years agoThis patch addresses CVE-2006-1056 (information leak from
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:39:14 +0000 (09:39 +0100)]
This patch addresses CVE-2006-1056 (information leak from
fxsave/fxrstor on AMD CPUs) and also adjusts 64-bit handling so that
full 64-bit RIP/RDP values get saved/restored. More fine-grained
handling may be needed if 32-bit processes are expected to properly
see their selectors (native Linux doesn't currently do that either,
but there is a patch to adjust it there).

Original patch: Jan Beulich (based on Linux original by Andi Kleen)

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMake xen_features and force_evtchn_callback() non-GPL
kaf24@firebug.cl.cam.ac.uk [Wed, 26 Apr 2006 16:44:46 +0000 (17:44 +0100)]
Make xen_features and force_evtchn_callback() non-GPL
symbols as they are used in a variety of ubiquitous
kernel macros.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoWhile other aspects of the system configuration may still be
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 13:51:10 +0000 (14:51 +0100)]
While other aspects of the system configuration may still be
controlled by the outcome of the table scan, if apic= was given on the
command line its effect should not be overridden here.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoChange the xenbus_map_ring_valloc() interface and implementation so
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 13:30:16 +0000 (14:30 +0100)]
Change the xenbus_map_ring_valloc() interface and implementation so
that it is buildable as a module.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoFix build.
cl349@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 19:29:36 +0000 (20:29 +0100)]
Fix build.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
19 years agoRemove \r characters.
cl349@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 17:08:24 +0000 (18:08 +0100)]
Remove \r characters.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
xen-unstable changeset: 9735:a5fcffc826f3c77a8b28a78fbf099fde7ea27f0b
xen-unstable date: Mon Apr 24 18:07:27 2006 +0100

19 years agoDo not create blkback vbd kernel thread until fully connected
cl349@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 17:06:10 +0000 (18:06 +0100)]
Do not create blkback vbd kernel thread until fully connected
to frontend driver. Otherwise the kernel thread may crash trying
to access the non-existent shared ring.

Replaces xen-3.0-testing cset: 9595:32b22f5286beba94318e60704a8058ac3833d502

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9571:24d25894f071bed67d5547c1790a075271ab1174
xen-unstable date: Thu Apr  6 18:39:00 2006 +0100

19 years agoThe Xen checksum offload feature attempts to insert a TCP/UDP
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:42:34 +0000 (10:42 +0100)]
The Xen checksum offload feature attempts to insert a TCP/UDP
checksums into already encrypted packets (esp4) in dom0.  Obviously,
it is not possible to insert a checksum into an already encrypted
packet, so this patch inserts the checksum prior to encrypting
packets in net/ipv4/xfrm4_output.c.

To do this cleanly, the TCP/UDP header pointers need to be pointed to
the correct spot, so this functionality has been abstracted into a new
function.

This patch fixes bug 143 (verified by Jim Dykman).  Earlier version
verified by Jon McCune.

Signed-off-by: James Dykman <dykman@us.ibm.com>
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
19 years agoAvoid spurious timer activations in migrate_timer().
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:38:27 +0000 (10:38 +0100)]
Avoid spurious timer activations in migrate_timer().

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove update_vcpu_system_time() call from the per-VCPU timer
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:29:27 +0000 (10:29 +0100)]
Remove update_vcpu_system_time() call from the per-VCPU timer
callback function. It's unnecessary and in fact may occasionally
even run on the wrong CPU.

Signed-off-by: Keir Fraser <keir@xensource.com>