Fix the kunmap_atomic() change in 10529:4260eb8c08740de0000081c61a6237ffcb95b2d5.
Mustn't zap the PTE if the virtual address is not in kmap_atomic range! Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10533:cb9443bfdff811619a94bebb5346ee74e936eee8
xen-unstable date: Thu Jun 29 10:48:07 2006 +0100
kunmap_atomic() must zap the PTE to avoid dangling references
when attempting to free memory back to Xen. We can implement
something more efficient in future.
Also add debug print message if guest tries to free 'in use'
memory. We'll make it a real guest-visible error in future.
[LINUX] Allow dma_alloc_coherent() to work for regions up to 2MB.
The previous limit of 0.5MB was insufficient for some drivers
(e.g., when loading firmware). Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10502:02b0ed160e8ef9b8cdfd8b7e4fdd58fb19f7b344
xen-unstable date: Tue Jun 27 12:17:45 2006 +0100
The first patch exports the cr0 value to the guest in Xen and the
second abstracts away the differences between HVM and paravirtualized
guests with regard to physical/machine addresses in xc_ptrace.c.
Signed-off-by: Simon Kagstrom <simon.kagstrom@bth.se>
[TOOLS] Fix pagetable-pinning loop in xc_linux_restore.
Previously it would not pin last PFN in physmap even if it was
a pagetable page. Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10475:94e354294cca7ce0c4f1b7ae2ec5eb62ddac71ac
xen-unstable date: Thu Jun 22 14:12:01 2006 +0100
[XEN] Add a warning banner when 'sync_console' is used. Make it
very obvious and mildly annoying. Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10468:06b10ad218f450732d9ed2e694b11f403edffd46
xen-unstable date: Tue Jun 20 18:19:07 2006 +0100
Add new XENMEM_machphys_mapping to get info about location and
sizeof of the mach2phys table default mapping. Use this in Linux to
dynamically adapt the mfn_to_pfn() routine to undelrying hypervisor. Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10466:46e853c34a2eb537bbac8f45ba6adda949d305f0
xen-unstable date: Tue Jun 20 14:45:46 2006 +0100
Export machine_to_phys start and end addresses to guests.
Use this info in Linux to bounds-check accesses to the
m2p table. Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10460:f7bb99cdc391a4a23ee41d48dfd19f3d5b0c69c3
xen-unstable date: Tue Jun 20 12:01:09 2006 +0100
[LINUX] Use new XENMEM_exchange hypercall (where possible)
to provide watertight implementations that should never crash
in ENOMEM situations. Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10361:2ac74e1df3d7d7751a128d2ad2fe9cc3a9d23c54
xen-unstable date: Fri Jun 16 14:45:01 2006 +0100
[SEDF] Fix SEDF defaults to make domain0 take only a fair
equally-weighted share of extratime. Also, hack the short-
blocking logic as otherwise domain0 steals all CPU time
for several seconds after waking from a long sleep. Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10438:ef8cdd1dc8360e310423a599ff1da76fb111bc96
xen-unstable date: Sat Jun 17 11:29:35 2006 +0100
[XEN] New memory_op XENMEM_exchange. Allows atomic
exchange of one memory reservation for another of the
same size, but with different properties. Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10360:ee3d108289370351347f46284024f3347897d2bb
xen-unstable date: Fri Jun 16 14:43:54 2006 +0100
[XEN] PTE updates do not need to use CMPXCHG instruction.
This is because the updates are already protected by a
per-domain lock. Using straightforward memory writes has
two advantages:
1. Faster
2. More correct (previously we could race accessed/dirty
bit updates by other CPUs). Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10362:9d46e53c75f7598ab25b76b7a491801d1b320f5f
xen-unstable date: Fri Jun 16 15:22:03 2006 +0100
[LINUX] Export new gnttab_cancel_free_callback() to modules. Signed-off-by: Charles Arnold <carnold@novell.com>
xen-unstable changeset: 10359:231e07e22f9cd09e310a0db65ed62acb12c51855
xen-unstable date: Fri Jun 16 10:52:49 2006 +0100
[LINUX] Network buffers do not need to be multi-page contiguous
for unprivileged domains (in any case, can fall back to swiotlb).
On non-privileged domain of Xen/IA64, this caused some trouble.
[Note: this patch will be removed when xen_create_contiguous_region()
is fixed properly.] Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen-unstable changeset: 10356:4f0bc574455751ed0493f083c13911d8e01b92f0
xen-unstable date: Thu Jun 15 13:19:04 2006 +0100
[LINUX][PAE] Improve allocation strategy when PAE pgdirs must be below 4GB.
Moving the re-allocation to low memory into pgd_alloc() has several
advantages:
1. Avoids race with save/restore where pgdir may end up above 4GB after
save/restore.
2. If pgdir cannot be re-allocated we can return failure to the caller
rather than BUG().
3. Slightly reduces diff against native Linux code. Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10347:8070050cc30f3d969835d7b1d6eda57959d56842
xen-unstable date: Wed Jun 14 12:36:06 2006 +0100
[LINUX][PAE] More fixes to pgd allocation. Since allocating pmds
can sleep, we could race save/restore and end up with stale
machine addresses stores in pgd entries. Avoid this by
remembering virtuall addresses and translating to machine
addresses all at the end and protected by the pgd_lock. Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10351:ee482dc60eab7ba59c39901a5e6d9e597acc2f52
xen-unstable date: Wed Jun 14 17:06:28 2006 +0100
[LINUX] Only destroy a machine-contiguous memory region if
it really is contiguous (e.g., create_contiguous did not fail). Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 10353:bd1a0b2bb2d4596227951ad6d36cb4fcc2d00a8e
xen-unstable date: Thu Jun 15 11:35:23 2006 +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
[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
[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
[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
[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
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>
[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
[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
[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
[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
[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
[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
[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
[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
[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
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.
[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
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
[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
[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
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
[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
[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
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
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
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
[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
[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
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
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.
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
[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
[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
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
[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
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
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
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
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
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().
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.
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.
* 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...
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".
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.
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
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
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
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.
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
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
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!
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
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
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
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