Commit Graph
12457 Commits
Author SHA1 Message Date
Andrew Warfield 3cfbe70d32 [BLKTAP] Little error handling fix to blktapctrl.c.
Signed-off-by: Andrew Warfield <andy@xensource.com>
2006-11-15 12:50:17 -08:00
kfraser@localhost.localdomain 6c483f95f8 [XEN] Various selector and callback cleanups to simplify the tools
and assumptions about callback selector values on x86/32.
Original patch from Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-15 18:41:06 +00:00
kfraser@localhost.localdomain ede52a632e [BUILDER] Simplify vcpu context initialisation by pre-zeroing
the context structure.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-15 16:53:43 +00:00
kfraser@localhost.localdomain c4db5246aa [XEN] Define remaining x86 public pointer fields as guest handles.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-15 16:44:35 +00:00
kfraser@localhost.localdomain 9b4ed67d25 [TOOLS] Rename chekc_hotplug to check_udev and fix permissions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-15 14:59:57 +00:00
Tim Deegan 2e0874d780 [XEN] Track high-water-mark of p2m map
and so avoid some unnecessary __copy_from_user faults.
Also tidy the p2m functions generally.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-15 14:36:10 +00:00
Ewan Mellor 563e6b4690 Add the VNC port to the output of xm list --long, if the value has been written
to xenstore by QEMU.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-15 09:44:12 +00:00
kfraser@localhost.localdomain 4aad88265b [MINIOS] Add timer support.
Based on an original patch by Robert Kaiser.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-11-15 09:33:01 +00:00
kfraser@localhost.localdomain a4be7b6267 [LIBXC] Clarify error messages to talk about allocation 'extents'
rather than 'pages'.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
2006-11-15 09:30:44 +00:00
Steven Smith 05d0526432 [PV-ON-HVM] Correct some out of date documentation.
Noticed-by: Nowatzki, Thomas L <Thomas.Nowatzki@UNISYS.com>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-11-15 08:54:16 +00:00
kaf24@localhost.localdomain 97c5e7aecb merge with xen-ia64-unstable.hg 2006-11-15 00:14:41 +00:00
awilliam@xenbuild.aw 4c40652f1d merge with xen-unstable.hg 2006-11-14 14:59:37 -07:00
awilliam@xenbuild.aw 6de6494624 [IA64] remove ASSERT in vmx_init.c
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-11-14 12:46:33 -07:00
awilliam@xenbuild.aw 0d9a48c87d [IA64] Add CCISS driver to build config and change nbd to a module
LVM complains a lot when nbd is built into the kernel

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-14 12:45:15 -07:00
Andrew Warfield 650e610eda Fix breakage of blktap device strings from cset 63d1b02dad347e8feb845d8a8b482e251a478164.
Signed-off-by: Andrew Warfield <andy@xensource.com>
2006-11-14 11:20:45 -08:00
Ewan Mellor cbe35a1196 Fix xm block-configure, by allowing the device ID to be unspecified inside
device_configure (in which case it will be specified by the incoming config).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-14 18:52:58 +00:00
Tim Deegan 051c099e2e Speed up shadow of x86_64 Linux guests using 3 paging levels.
Linux kernel 2.6.9 or older uses 3 paging levels and its direct map is
from 0x10000000000.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-11-14 18:21:51 +00:00
Tim Deegan acdee1b65e [XEN] Extend fix from 12403:680b37789200 to other emulation paths.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-14 17:11:45 +00:00
kfraser@localhost.localdomain 7186363e84 [LINUX] x86/64: Fix backward compatibility to Xen 3.0.2.
This requires us to explicitly specify _PAGE_USER for kernel mappings.
Original patch by Jan Beulich <jbeulich@novell.com> and Gerd Hoffmann.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-14 17:00:05 +00:00
George Dunlap 1811ef9277 [XEN] Fix the "early unshadow" optimization to look at the entire pte.
The optimization is designed to detect pagetable destruction, but re-uses the
pagetable entries to store data under certain conditions (paging, zeroing, &c);
sometimes the lower 8 bits are 0.  These "false positives" cause unnecessary
shadowing and unshadowing.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
2006-11-14 11:21:26 -05:00
kfraser@localhost.localdomain 1a9e089e65 [LINUX] Preserve flags when converting PTEs from machine to phys.
Signed-off-by: John Byrne <john.l.byrne@hp.com>
2006-11-14 11:57:53 +00:00
kfraser@localhost.localdomain b0e1696ee0 [XENPERF] Pretty-print hypercall stats.
From: Yoshihiko Yaegashi <y.yaegashi@jp.fujitsu.com>
From: Ken Hironaka <kenny@logos.ic.i.u-tokyo.ac.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-14 11:55:58 +00:00
Tim Deegan a83a2ee1b7 [XEN] Don't pass spurious reserved-bit faults to the guest
since x86_64 linux can't handle them.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-14 11:52:38 +00:00
Tim Deegan 3604b85959 [XEN] Don't use shadow linear maps in sh_set_toplevel_shadow()
because they will not be there.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-14 11:47:26 +00:00
kfraser@localhost.localdomain bd67f82971 [XEN][POWERPC] Change license on public/ headers from GPL to BSD.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-11-14 10:56:07 +00:00
kfraser@localhost.localdomain 1b3e78b73d [VMXASSIST] Remove unused variable declarations to avoid compiler warning.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
2006-11-14 10:48:17 +00:00
kfraser@localhost.localdomain a7601b3d65 [IA64] Fix weird behaviour when configuring >3G memory for a VTI domain.
Signed-off-by, Anthony Xu < anthony.xu@intel.com >
2006-11-14 10:46:34 +00:00
kfraser@localhost.localdomain 397afea5ed [HVM] vlapic: More cleanups, simplifications and fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-14 10:44:16 +00:00
jfehlig@jfehlig2.provo.novell.com dedbb36558 Add uuid to host record returned by host_get_record. libxen fails to parse the host record with this field missing.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-13 17:23:49 -07:00
awilliam@xenbuild.aw eb5a644ce3 [IA64] Fix xencomm for xm mem-set command
This patch saves and restores the hypercall parameter within xencomm.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-13 11:24:30 -07:00
awilliam@xenbuild.aw 6e20f30bec [IA64] Fix HVM interrupts on IPF
Xen has changed to set-irq-level hypercall from shared-memory PIC stat.
This patch makes IPF accomodate this change

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-11-13 11:02:37 -07:00
awilliam@xenbuild.aw 2623ce897e [IA64] create minimal vlapic.h
This fixes the ia64 build for xen-unstable.hg cset 12368:fda15861731e

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-13 10:56:08 -07:00
awilliam@xenbuild.aw a63ce0c65d merge with xen-unstable.hg 2006-11-13 09:58:23 -07:00
kfraser@localhost.localdomain 1ec2a5bbca [IOEMU] Simply fake-bios init of the piix4acpi device.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-13 14:25:48 +00:00
kfraser@localhost.localdomain f923f3a5f1 [HVM][IA64] Due to IPF Guest Firmware will enumerate PCI, shutdown in
IPF doesn't work This patch makes shutdown work for IPF.

Signed-off-by, Anthony Xu <anthony.xu@intel.com>
2006-11-13 14:20:26 +00:00
kfraser@localhost.localdomain 77ed66eba9 [XEN] x86-64: don't compile some unused machine check code
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 14:12:01 +00:00
kfraser@localhost.localdomain 0d48c1d1a3 [XEN] x86-64: don't compile some unused MTRR code
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 14:11:08 +00:00
kfraser@localhost.localdomain 606dd4ca3c [XEN Remove a stray newline in a printk.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 14:02:37 +00:00
kfraser@localhost.localdomain 68a3e1e873 [TOOLS] Add more checks for devel packages.
On different systems I ran into different build failures that can be
made more understandable by adding appropriate -devel package
installation checks.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 14:01:17 +00:00
kfraser@localhost.localdomain 5d85a6d13c [XEN] Return -ENOSYS for undefined sub-functions.
Provides forward compatibility (allowing unambiguous detection of
unimplemented functionality).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 13:58:08 +00:00
kfraser@localhost.localdomain 25f54607f5 [XEN] x86-64: Since all memory is visible to Xen on x86-64, there is
no need to allocate from the special Xen heap for allocations specific
to this subarch.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 13:50:14 +00:00
kfraser@localhost.localdomain 9d3d68f603 [XEN] eliminate unused {g,i}dt{,_descr}
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 13:40:21 +00:00
kfraser@localhost.localdomain 6add0c0bc0 [XEN] x86-64: eliminate __GUEST_[CDS]S*
These duplicate the FLAT_KERNEL_* values also used for x86-32.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 13:39:16 +00:00
kfraser@localhost.localdomain 8f3784dc2b [LINUX] Fix clear_fixmap().
On i386-PAE, clear_fixmap() results in ill use of set_pte(). In all
contexts, p2m translations shouldn't occur here. Note that this is not
really an issue on native linux, as there is
(a) no pfn-to-mfn translation and
(b) __set_fixmap() takes an unsigned long physical address rather than
    a paddr_t, which makes it so that bits 32 and up of the physical
    address are always zero, permitting either order store when
    clearing the entry.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 13:37:54 +00:00
kfraser@localhost.localdomain a4dcd35f9d [XEN] Add const to variable_test_bit() addr parm.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-13 12:06:21 +00:00
kfraser@localhost.localdomain 7fd0873637 [XEN] Get rid of many uses of domain_crash_synchronous().
It is much more dangerous than domain_crash() because it
stops execution of teh current context regardless of
current state (e.g., IRQs disabled, locks held).

The preferred method to crash a domain is domain_crash()
and error return to the caller.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-13 12:01:43 +00:00
Ewan Mellor db34d2aaa5 Fix handling of the entries-per-domain quota. Entries which are created by
the guest but deleted by dom0 were remaining accounted against the guest,
which meant that the guest would eventually run out of quota.

This patch also prevents unprivileged domains from changing the owner of a
node.  One guest could attack another by creating nodes and then transferring
them to the ownership of another, and though the accounting could be made to
work properly in this case, domains should never be transferring nodes in any
case, so it seems safer just to disallow the operation entirely.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-13 10:43:29 +00:00
kfraser@localhost.localdomain ede7828af2 [VMX] A few small cleanups.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-11-13 09:49:12 +00:00
kfraser@localhost.localdomain 10967e5464 [IOEMU] Fix Linux smp guest hangs with complaint "BUG: soft lock detected on CPU#0"
When console=ttyS0 in guest grub configuration and serial='pty' in vmx
configure file. The root cause to this bug is the characteristic of
PTY emulator in Qemu. PTY has write/read end with some buffer. Write
to a buffer will be failed after the buffer is full until read end
reads the data from buffer.

Previous to changeset 12026, write to serial port would fail quietly
when buffer for pty is full. With changeset 12026, write to serial
port would retry 3 times in 300ms if failed, even without notifying
guest using serial irq. Smp guest will hang, waiting for an
interrupt. For SMP guest, a watchdog thread should be executed
periodically, otherwise soft lockup is detected. With this patch, an
upper threshold of total consecutive retries is added and serial
interrupt would be sent after retry 3 times for each write request,
even if failed.

Signed-off-by: Xinmei Huang <xinmei.huang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-13 09:46:05 +00:00
kaf24@localhost.localdomain 2fb1143669 [PRIVCMD] Fix build warning when sizeof(long) > sizeof(int).
Original patch from Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-11 01:40:16 +00:00