Commit Graph
13121 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain f9396bbfe8 Improve consistency of type-attribute usage (volatile/const).
From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-21 13:58:51 +00:00
Tim Deegan 015f6a2832 [XEN] Update comments to reflect cset 13059:6cbed96fedac
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-21 13:48:13 +00:00
Tim Deegan 95dae30a62 [QEMU] Align VGA ram allocation
This makes the SSE-optimized vram_dirty() safe again.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-21 13:43:19 +00:00
Alastair Tse bbfa63024e [XEND] Add cpu_weight and cpu_cap parsing for SXP config create
Reported by Masaki Kanno on :
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=835

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-12-21 12:08:27 +00:00
Alastair Tse 3f3404d127 [XM] Throw proper exception for xm console for unstarted domains.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-12-21 12:05:41 +00:00
kfraser@localhost.localdomain e4caeac504 [HVM] Emulates HPET in hypervisor and extend ACPI tables.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-12-21 12:05:34 +00:00
Christian Limpach d158b8d4ec [qemu patches] Update patches upto changeset 13113:fd1ccd818f2c.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-12-21 11:33:15 +00:00
kfraser@localhost.localdomain 47cde92b7d [HVM][VMX] Save GS_SHADOW MSR only on x86/64.
Bug found by Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-21 11:22:39 +00:00
kfraser@localhost.localdomain a32030439b [LINUX][IA64] New file swiotlb.h.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-12-21 11:10:43 +00:00
kfraser@localhost.localdomain 878729b1cf [QEMU] Include pthread.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-21 11:06:37 +00:00
Christian Limpach 05bc927f90 [qemu patches] Update patches upto changeset 13108:ed815cbdc90e.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-12-20 15:22:46 +00:00
kfraser@localhost.localdomain 0a967eccec [XEN] Emulator extensions to decode ModRM.MOD == 3.
This allows emulation of register-only instructions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-20 15:16:13 +00:00
Tim Deegan c35c69faae [XEN] Fix cset 13107:04c5f7b71ff4
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-20 13:54:04 +00:00
Tim Deegan 41b80617a9 [HVM] Mask cmpxchg8b capability in cpuid for non-pae guests
This allows non-PAE NT4 kernels to boot
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-20 12:07:10 +00:00
Tim Deegan 05d640922d [XEN] Don't pass spurious fast-path faults to the guest at all.
Instead, retry and get a sensible fault from the hardware next time.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-20 12:04:38 +00:00
Tim Deegan 1128c254f3 [XEN] Clean up the shadow interface
Remove a lot of unneccesary things from shadow.h, and move the shadow lock
entirely inside the shadow code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-20 12:03:07 +00:00
Tim Deegan 6f7ff73d57 [HVM] Add Etherboot option ROM, for network-booting HVM guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-20 11:59:54 +00:00
Tim Deegan 15fbe9ca52 [HVM] Add expansion-ROM boot support to the ROMBIOS
This is rudimentary support for parts of the BIOS Boot Specification,
just enough to use Etherboot ROM images.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-20 11:57:53 +00:00
Tim Deegan 4858779208 [XEN] Skip shadowing of guest PTE writes when known to be safe
That is, when the guest replaces a not-present pte with another one
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-20 11:54:57 +00:00
Tim Deegan 2716d15280 [XEN] Better diagnostics of recursive shadow faults
Give a trace of the recursive fault instead of BUG()ing in the shadow handler.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-20 11:53:01 +00:00
kfraser@localhost.localdomain 27ea071e57 [NET] front: Fix interface teardown.
Original bug discovered and fixed by Glauber de Oliveira Costa
<gcosta@redhat.com>.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-20 11:39:22 +00:00
kfraser@localhost.localdomain 576a882bc5 [LINUX] dma: Use swiotlb mask for coherent mappings too
The recent change to use a default DMA bit width of 30 bits (required
by chips like the b44) only converted the streaming DMA primitives.
The coherent mappings are still hard-coded to 31 bits.  This means
that b44 still doesn't work under Xen.

This patch makes the io_tlb_dma_bits variable global and uses it for
coherent memory mappings.

Thanks to Calvin Webster for providing a machine with a b44 and 2G
of memory I've been able to verify that this finally makes the b44
work under Xen.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Rename 'io_tlb_dma_bits' to the more correct 'dma_bits'. This also
affects the name of the boot parameter, which is now 'dma_bits='.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-20 11:21:04 +00:00
kfraser@localhost.localdomain 3d17485a07 [LINUX] Disallow nested event delivery.
This eliminates the risk of overflowing the kernel stack and is a
reasonable policy given that we have no concept of priorities among
event sources.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-20 11:09:56 +00:00
kfraser@localhost.localdomain f4944d7a66 [HVM] Sync per vcpu LAPIC timer with its TSC:
- benefits LAPIC calibration
 - makes scheduling policy based on LAPIC more precise
 - makes LAPIC timer code becomes simpler and cleaner after using
   periodic time layer

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-12-20 10:41:33 +00:00
kfraser@localhost.localdomain ddc35d1cc9 [HVM] Enable more than one platform timer (PIT/RTC/HPET)
programmed as periodic timer and adds them to abstract layer, which
keeps track of pending_intr_nr to avoid time interrupt lost and
sync'ed timer with TSC.

It also makes some cleanup to the time related code.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-12-20 10:37:23 +00:00
kfraser@localhost.localdomain 625141e5d7 [HVM][SVM] Modify the interrupt/event injection logic.
Resolves performance issues concerning AMD-V virtual interrupt/event
injection:
 - Remove extra VINTRs vmexits, and only setup fake interrupt if intr
   pending.
 - Allow both event injection and interrupt injection concurrently in
   vmcb.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-12-20 10:14:50 +00:00
kfraser@localhost.localdomain db6dca73cd [BLTAP] Use getpagesize() for portability.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-12-20 10:11:45 +00:00
kfraser@localhost.localdomain eef662ffdd [HVM] Clean up CPUID handling.
From: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-20 10:09:42 +00:00
kfraser@localhost.localdomain a6c89ee595 [LIBXC] Fix iteration over GDT in save/restore code.
Bug spotted by Tim Wood.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-20 10:06:33 +00:00
kfraser@localhost.localdomain e78916300f Added tag 3.0.4-branched for changeset 057f7c4dbed1c75a3fbe446d346cee04cff31497 2006-12-20 09:48:21 +00:00
Julian Chesterfield 518df287df Qcow-create reserve flag update.
Signed-off-by: Julian Chesterfield <julian@xensource.com>
2006-12-19 21:33:12 +00:00
Julian Chesterfield 9b27068f37 Qcow driver code cleanup:
- Remove global QCOW flags
- rename sparseness flag to -r fore 'reserve'
- Add ROUNDUP macro
- Check for qtruncate failures

Signed-off-by: Julian Chesterfield <julian@xensource.com>
2006-12-19 20:42:56 +00:00
Ewan Mellor 9dc2a309b5 Fix parsing of cpus in the guest configuration file.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
3.0.4-branched
2006-12-19 12:00:11 +00:00
kfraser@localhost.localdomain 48ac736420 [XENOPROF] Fix buffer sharing with auto-translate guests.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
2006-12-19 11:00:05 +00:00
kfraser@localhost.localdomain 32618ccbf5 Merge with xen-ia64-unstable.hg 2006-12-19 10:53:17 +00:00
awilliam@xenbuild2.aw f4556d2362 merge with xen-unstable.hg 2006-12-18 10:56:34 -07:00
awilliam@xenbuild2.aw 5fb6147b15 [IA64] evtchn_callback fix and clean
Since we had changed to use event callback to deliver interrupts,

1. The pending_interruption is changed to pending_event.

2. get_ivr, set_tpr, get_trp and set_eoi are not used or only used
   in the initialization phase. There is no need to write this code
   in assembly.  This code is deleted.

3. hyper_ssm_i needs to be rewritten to jump to entchn_callback_handler
   instead of iva+0x3000 interrupt handler.  I will do this later.

Signed-off-by: Anthony Xu  <anthony.xu@intel.com>
2006-12-18 10:20:34 -07:00
awilliam@xenbuild2.aw 97e1ae7cfc [IA64] Mask out reserved bits to avoid Reserved Register/Field faults.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2006-12-18 10:04:49 -07:00
awilliam@xenbuild2.aw d16bdf4c1d [IA64] Reflect general exceptions
General exceptions in the domU with isr.code > 0x20 are now reflected
to the domU.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2006-12-18 09:48:23 -07:00
Ian Campbell bab7d4e41b [XEN] Revert 12977:af39d20b2b728941421ef18e5c5b1012852eec80
This changeset broke the ELF note layout on x86_64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-12-18 16:11:19 +00:00
kfraser@localhost.localdomain bffa67fd6c [XEN] Only print progress dots when scrubbing actual memory.
Signed-off-by: Jes Sorensen <jes@sgi.com>
2006-12-18 14:38:38 +00:00
Ewan Mellor 75bbf9d488 Fix _login to pass arguments to the server unconditionally, rather than
requiring precisely two on the client-side.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-18 00:14:40 +00:00
Ewan Mellor 6d6cd40676 Fix the parsing of the image sexpr to use PV_kernel et al, rather than the old
kernel_ variables.  This fixes reboot of PV guests.

Also, give XendConfig its own logger, to allow us to tweak the log level for
that module independently.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-18 00:07:55 +00:00
Ewan Mellor 99ffd43bcd Write the xfb configuration details to the store, rather than storing them in
memory.  This ensures that the VM can be rebooted after a xend restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-18 00:00:57 +00:00
Ewan Mellor c7272094f3 Minor tidyup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-17 23:59:08 +00:00
Ewan Mellor cbdf115ddb Fix printing of usage when OptionError is thrown.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-17 18:24:40 +00:00
Ewan Mellor 92e6c93c21 Only try to label resources if ACM is enabled.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-16 12:54:43 +00:00
Ewan Mellor 324ad7a4a8 An error occurs if the first detach was successful and the 2nd one is
not (of course). Return if the 1st detach is successful, try the 2nd one
if it was not successful. Throw an error if the 2nd one fails.
This should also fix problems I am currently seeing in the xm-test
suite.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-16 12:52:18 +00:00
awilliam@xenbuild2.aw eb1dd89900 [IA64] remove global zero initializers
No need to init global variables to zero as it will place them in the
data segment rather than the bss segment.

Signed-off-by: Jes Sorensen <jes@sgi.com>
2006-12-15 10:49:11 -07:00
kfraser@localhost.localdomain 2f760bd64d [TOOLS] USe -mno-direct-seg-refs when building on i386.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-15 11:53:45 +00:00