Commit Graph
13380 Commits
Author SHA1 Message Date
Ewan Mellor 621fec4c37 State that getters and setters do not have asynchronous versions -- there's no
point, because they ought to be immediate.

Tidy up the examples in the presentation and wire-protocol sections, and bring
them into sync with the main body text.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 23:34:33 +00:00
Ewan Mellor ef7c4eec7b New modelling for consoles -- have them as separate classes attached to the
VM, much like the arrangements for devices.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 23:31:07 +00:00
awilliam@xenbuild.aw ac0269d27c merge with xen-unstable.hg 2006-11-29 11:07:28 -07:00
awilliam@xenbuild.aw 2f988e7275 [IA64] Create viosapic handling for IPF.
There are three reasons to do this.
1. IOSAPIC is different with IOAPIC 
   such as:
       1. IOAPIC implement broadcast, but IOSAPIC doesn't
       2. IOSAPIC doesn't implement dest_mode and remote irr bits.
       3. IOSAPIC implement EOI but IOAPIC doesn't
       etc.
2. In IA32 side there are I8259 and LAPIC who are
    related to IOAPIC, but In IPF there is no I8259 and has LSAPIC.
3. after creating this file, all header files under asm-ia64/hvm, which
   are linked from IA32 side, are not needed.

Signed-off-by:  Anthony Xu <anthony.xu@intel.com>
2006-11-29 11:05:02 -07:00
awilliam@xenbuild.aw 1691a97d3b [IA64] remove undefined debugging line
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-29 09:16:46 -07:00
kfraser@localhost.localdomain adcb0d8213 merge 2006-11-29 12:43:11 +00:00
kfraser@localhost.localdomain 72941f1998 [HVMLOADER] Clean up makefile, change TPM detection.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 12:41:30 +00:00
kfraser@localhost.localdomain 74517de104 [LINUX] Avoid triggering the softlockup BUG when offline for too long.
After being offline for a long time, the softlockup  watchdog triggers
a BUG() on our faces. This is expected, as in fact, we spent more than
a fixed 10*HZ amount of time without touching the watchdog.

However, by inspecting the contents of stolen inside timer irq handler,
we can gain awareness of the fact, and do better than that.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
2006-11-29 12:16:59 +00:00
Ewan Mellor 001bc372b4 Fix xm new -F -- this fix was recently introduced for xm create.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 12:16:19 +00:00
Ewan Mellor dcf51b3413 Move the assert under the protection of the in_transaction flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 12:15:45 +00:00
Ewan Mellor 26c7d28635 Silence log message when trying to unregister a watch that's already been
unregistered -- this is not a problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 12:14:45 +00:00
kfraser@localhost.localdomain 536c3bc789 [LINUX] console: Fix comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 12:04:49 +00:00
kfraser@localhost.localdomain 5c6e15bd79 [XENOPROFILE, LINUX] compilation fix on x86_64
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-29 11:40:10 +00:00
kfraser@localhost.localdomain f46695b45b [HVMLOADER] Fix CFLAGS.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 11:38:17 +00:00
kfraser@localhost.localdomain 2dcb3ad6f8 [LINUX] console: Add option to use /dev/xvc0, major=204, minor=191.
The major/minor has now been allocated to us by lanana.org.

This is based on previous patches from:
 Jeremy Katz <katzj@redhat.com>
 Amos Waterland <apw@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 11:37:59 +00:00
kfraser@localhost.localdomain 70d02d276e [HVM][VMX] NX bit implies PAE can be enabled. If IA32 VMX guest finds
NX bit is there, it may enable PAE even if PAE bit is returned 0 by
CPUID.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-11-29 11:07:51 +00:00
kfraser@localhost.localdomain f2b23d6824 [DOCS] Update for new Xen boot parameters.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 10:58:35 +00:00
kfraser@localhost.localdomain b83e447099 Fix for network routing setup. Enables proxy arp on dom0's externally visible interface.
Signed-off-by: H. Andres Lagar-Cavilla <andreslc@cs.toronto.edu>
2006-11-29 10:57:30 +00:00
Ewan Mellor bf9423a1fd Diagnose a failure to open the xend-debug.log, and make the /var/log/xen
directory on startup, which was the most common reason to fail.
Closes bug #823.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 10:56:02 +00:00
kfraser@localhost.localdomain 1d892b609b [XEN] Emulator fixes.
1. Fix RIP-relative EA calculation. Immediate operands are never 64-bit.
 2. Displacements are sign-extended so used signed types.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 10:48:06 +00:00
awilliam@xenbuild.aw 0d2fbb9506 [IA64] xenoprof linux/ia64 part
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 22:54:24 -07:00
awilliam@xenbuild.aw 2a615d53c7 [IA64] xenoprof ia64 xen side
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-28 21:35:13 -07:00
Jimi Xenidis 503f128245 [XEN][POWERPC] cleanup hard tabs
allowed in some files in order to track linux lineage
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-11-28 19:01:46 -05:00
Jimi Xenidis 86ec3a9b47 [XEN][POWERPC] Fix IPI stall timeout without using timebase_freq
When using the register dump feature of Xen, one will sometimes see a
message about an IPI finish stall.  This is because of an int to long
comparison bug, so fix it by doing proper nanosecond based time
accounting with no explicit reference to timebase_freq.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

--HG--
extra : transplant_source : .%90%9Do%2A%B7g%FEW%23%A9%7E/T%13%F8v%16r%96
2006-11-28 18:46:13 -05:00
Jimi Xenidis 6d55b9c049 [XEN][POWERPC] Do not override smp function call wait flag
Do not override the caller's wishes regarding waiting for smp function
call completion.  I was being too conservative in this respect: the lock
protects the call_data structure, and the function called is expected to
be threadsafe.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

--HG--
extra : transplant_source : %E0%1E%08%CAb%9BO%15H%28%B0%97jX%DF%87gU%8A%EC
2006-11-28 17:01:00 -05:00
Jimi Xenidis 8b6aad5d2f [XEN][POWERPC] Generalized parallel IPI handlers
Our problem with x86 do_IRQ is that it does not respect IRQ_PER_CPU, so
make our logic reflect that generically.  We remove the spin lock in
this case, since the programming convention is to update irq descs
atomically (if at all).  This patch allows read_clocks to work properly.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

--HG--
extra : transplant_source : %1E%1Ac%40%81%29%BE%A2%D8%7FH%5CR%F1%BE%21%AD%A3_%F0
2006-11-28 16:56:40 -05:00
Jimi Xenidis 2b1966e931 [XEN][POWERPC] secondary_cpu_init() does not return.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

--HG--
extra : transplant_source : %A2%A4%A6%BD%C5%CD%ED%F3%FE%90bm%E9%B1l%9E%E8%98%F1x
2006-11-28 16:43:53 -05:00
Ewan Mellor b496644a2b A trivial fix. login_unconditionally needs to be called with
self.login_unconditionally to avoid  "global name
'login_unconditionally' is not defined"

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-28 18:41:42 +00:00
awilliam@xenbuild.aw e5b50237ff [IA64] add dummy empty header files necessary for xenoprof/ia64
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 11:34:03 -07:00
awilliam@xenbuild.aw e75f92933e [IA64] increase xen side pmu constatns for motecito.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 11:31:45 -07:00
awilliam@xenbuild.aw 8508962bbe [IA64] import linux/arch/ia64/oprofile/perfmon.c
To xen/arch/ia64/xen/oprofile/perfmon.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 11:26:14 -07:00
awilliam@xenbuild.aw 0ef613d426 [IA64] import perfmon, oprofile related files from linux to linux-sparse
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

Updated to 2.6.16.33

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-28 11:19:40 -07:00
awilliam@xenbuild.aw 3a22894792 [IA64] import oprofile, perfmon related files from linux to xen.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

Updated to 2.6.16.33

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-28 11:15:35 -07:00
Ewan Mellor ea3b5838d8 Wait for device-bringup inside domain_start, outside the scope of the
domains_lock.  This makes the VM.start call blocking, but allows xm list to
work while it is blocked.  Move the handling of start_paused out of
XendDomainInfo.start as part of this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 18:00:45 +00:00
awilliam@xenbuild.aw ec489b8435 merge with xen-unstable.hg 2006-11-28 10:37:36 -07:00
Ewan Mellor 592da6d9ee Plumb the "start_paused" flag through for VM.start and VM.resume. Do not
unpause the VM on start by default.  This should fix problems seen recently
whereby devices are not attached to the VM by the time they boot, as
xm create was expecting to be able to wait for the devices before unpausing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 17:28:43 +00:00
kfraser@localhost.localdomain b2cb3ada56 Allow DMA address width to be overridden with boot parameters:
In Xen: dma_bits=28 (for example)
In Linux: swiotlb_bits=28 (for example)

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-28 17:15:22 +00:00
Ewan Mellor f8cd45575d Add test_bindings back into the build -- it isn't integrated with the normal
targets, because it introduces an additional dependency (libcurl), but
make test/test_bindings does the right thing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 17:04:32 +00:00
Jimi Xenidis aacdf83ab2 [POWERPC][XEN] cpu_relax() needs to call barrier()
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

--HG--
extra : transplant_source : %A8%E6z%19%C3%25Zk%BC%0A%AA%5C%9E%176%F1%DD%D7ol
2006-11-28 10:33:53 -05:00
kfraser@localhost.localdomain 1c804664cf [XEN] Add emulator tracing diagnostic on error path.
Simplify shadow-mode entry protocol to emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-28 14:27:13 +00:00
Ewan Mellor 44755869f7 Bump xend_config_format to 3, to indicate that the lifecycle patches are
available.

Better version mechanisms will be forthcoming!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 14:24:20 +00:00
kfraser@localhost.localdomain d8dfab4a35 [HVMLOADER] acpi: Implement an acpi_rsdp_get() function that searches
for the RSDP in memory (up to the BIOS) rather than calculating its
start address. Recent changes seem to have moved the RSDP to another
location in memory so that I received 'BAD RSPD signature' messages.
I have also fixed some other possible issues related to return codes
and alignment of ACPI entries.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-28 13:53:12 +00:00
kfraser@localhost.localdomain bc79267989 [BLKTAP] Use lartge enough types to express parameters of large block devices.
While the kernel side of blktap drivers is using 64-bit sector numbers
correctly when reporting disk sizing, the userspace parts where this
dat is actually generated is truncating at 32-bit. There are 3 variables
related to disk sizing which are used in the kernel/userspace code
'size', 'sector size' & 'info'. In kernel space these are treated as being
unsigned long long, unsigned long, and unsigned int, respectively. In
the blktap userspace code this were all varyingly long, unsigned long.
This mismatch caused 32-bit wraparound on large disks. The attached
patch updates the blktap userspace to use the same data types as
kernel space for all these params, thus both fixing the 32-bit bug &
giving the code consistency.

This patch has been tested both by comparing /proc/partitions in the
guest, with the image size seen in the host, and by using Stephen
Tweedie's 'verify-data' tool on a variety of multi-TB sized disks.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-11-28 13:50:32 +00:00
kfraser@localhost.localdomain 5348ff2ec0 [HVM][SVM] Allows 64bit HVM AMD-V Linux guests to boot.
Basically, this patch reverts part of c/s 12264.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-11-28 13:48:47 +00:00
kfraser@localhost.localdomain 2b87d5adbb [QEMU] pci: Unaligned config read/write overflow
The default config read/write handlers allows a 4-byte read/write at
address 255.  This can clobber the field after the config area.  This
happens to be the PCIBus pointer in the PCIDevice structure.

This patch stops this from reducing the read/write to the (largest
multiple of 2) number of bytes within the config area.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-11-28 13:46:10 +00:00
kfraser@localhost.localdomain 6c06dcdb86 [XENOPROFILE] fix shared_xenoprof_page_with_guest() and cleanup.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-28 13:43:25 +00:00
Ewan Mellor a6878f4ab4 Added xm list --state option, to select VMs with a particular state. Make
this handled by a new message (xend.domains_with_state) and make xend.domains
equivalent to xend.domains_with_state(running).  This restores the Xen 3.0.3
semantics of xend.domains.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 13:34:15 +00:00
Ewan Mellor 8cff4a9583 Do not display -1 as the domid when a VM is not running -- simply leave the
column blank.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 13:32:07 +00:00
Tim Deegan f0bedfe7be [XEN] Clear just the _PAGE_RW bit when shooting writeable mappings
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-28 12:24:24 +00:00
kfraser@localhost.localdomain 8953fa61f2 merge 2006-11-28 11:47:28 +00:00