Commit Graph
12423 Commits
Author SHA1 Message Date
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
kaf24@localhost.localdomain 6ab4f311ed [LIBFS] IA64 & PPC aren't making use of this right now, but it's silly to
have the build fail for some trivial x86 specific assembly.  I snagged the
appropriate bitops for ia64 and ppc (untested) and tossed in an
unoptimized option as well in case we want to make use of it.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-11 01:25:00 +00:00
kaf24@localhost.localdomain 22ed12a0f3 [XENSTORED] Fix errno 'leak' in xenstored.
In certain cases, when a client doesn't have enough permissions, the
errno variable is not set in xenstored_core.c before its value is
reported back.  As a result, the client can learn about the errno of
the last failed request to xenstored (which could have come from
another client).  (An unintended information channel! :-)

From: Magnus Carlsson <magnus@galois.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-11 01:23:11 +00:00
kaf24@localhost.localdomain e4ecc8e7f7 qemu error message for xc_domain_translate_gpfn_list() failure incorrect
Signed-off-by: Russell Blaine <russell.blaine@sun.com>
2006-11-11 01:19:26 +00:00
kaf24@localhost.localdomain 106e6b9de4 Fix integer overflow problem with libfsimage grub plugins.
Signed-off-by: John Levon <john.levon@sun.com>
2006-11-11 01:17:57 +00:00
kaf24@localhost.localdomain b991dfcee5 [VMXASSIST] Support all data segments in mov_to_seg().
This patch lets Plan9 crash at the same location before the original
patch by Stephen Tweedie.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-11-11 01:16:40 +00:00
awilliam@xenbuild.aw 0ebe0503ad [IA64] Guest PAL_INIT support for IPI
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2006-11-10 13:01:23 -07:00
awilliam@xenbuild.aw 7685621995 [IA64] fix merge error
Fix cut-n-paste error from manually merging patch

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-10 12:55:52 -07:00
awilliam@xenbuild.aw d65170a011 [IA64] faults.c indentation
Run arch/ia64/xen/faults.c through Lindent to make it manageble.

Signed-off-by: Jes Sorensen <jes@sgi.com>
2006-11-10 12:37:34 -07:00
awilliam@xenbuild.aw 11161aa79a [IA64] Remove unused function in efi.c
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-10 12:04:55 -07:00
awilliam@xenbuild.aw 669421186b [IA64] Fix time services of EFI emulation
This patch serializes the execution of following efi.runtimes.
  - GetTime
  - SetTime
  - GetWakeTime
  - SetWakeTime

Linux/ia64 uses similar spinlocks in the EFI RTC driver.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-10 12:03:19 -07:00
awilliam@xenbuild.aw 2dd88a1d24 [IA64] Support Xen/IA64 self-grant-table-page-mapping.
Before the changeset 10677:2937703f0ed0 of xen-unstable.hg,
it is prohibited mapping a page which is granted by self domain.
However it is allowed in order to mount blktap image by dom0.
This patch is necessary to support blktap on Xen/IA64.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-10 11:44:38 -07:00
awilliam@xenbuild.aw 3b9583d2b2 [IA64] preliminary clean up ia64 mm.c for blktap dom0 mount support.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-10 11:34:39 -07:00
kfraser@localhost.localdomain c4ba031b0d [HVM] vlapic: No use of domain_crash_synchronous().
The safer domain_crash() is sufficient.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-10 18:27:35 +00:00
kfraser@localhost.localdomain 8a02f12b77 [HVM] Simplify apic dest-matching code. Refactor
across vlapic/vioapic source files to reduce code
duplication.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-10 18:20:49 +00:00
awilliam@xenbuild.aw 79ab1eb5ce [IA64] Fix SMP Windows boot failure
Sometime SMP Windows can't boot, the root cause is guest timer interrupt
is lost.

This patch fixes following issues.
1. Windows uses different way to sync itc.
2. Previously when Guest timer fires and guest ITV is masked, XEN will
   desert this Guest timer interrupt. It is not correct for windows,
   windows may expect this timer interrupt.
3. Windows may use different way to set timer in some situations.
   Windows first sets itm (which may be smaller than current itc), and
   then sets itc (which is samller than itm).
   XEN can support this way to set timer.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-11-10 11:19:57 -07:00
awilliam@xenbuild.aw 01924b13c2 [IA64] fix vmx handler fault
This patch fixes the vmx fault handler to set the fault vector
number in r19.  The r19 is used to display a fault message in
dispatch_to_fault_handler().

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
2006-11-10 11:19:51 -07:00
awilliam@xenbuild.aw b693fe2311 [IA64] fix VTI boot
workaroud patch for memory initial interface

Signed-off-by: zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2006-11-10 11:14:51 -07:00
awilliam@xenbuild.aw 7ac3fd39eb [IA64] build fixes
Add defines to fix hvm_vioapic and trivial warning fix.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-10 11:14:47 -07:00
awilliam@xenbuild.aw cd570b22e8 [IA64] fix xencomm_handle_is_null().
It checks only desc->address[0]. However xencomm_add_offset() may
sets XENCOMM_INVALID while there left consumable bytes.
In such a case xencomm_handle_is_null() returns true wrongly.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-10 11:14:42 -07:00
awilliam@xenbuild.aw a7fc94b1da [IA64] compilation fix
asmlinkage definition is needed in xen/asm-ia64/config.h.
It is necessary for xen/include/xen/acpi.h

Inadvertently removed from xen-unstable.hg in cset 12266:0c332cf81e64

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-10 11:14:36 -07:00
awilliam@xenbuild.aw c1d815ef9b [IA64] IA64 counter part of the change 12204:e6fdb32b786c of xen-unstable.hg
Remove xc_ia64_get_pfn_list() from setup_guest() in xc_linux_build.c,
use xc_domain_populate_physmap() and xc_domain_translate_gpfn_list().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-10 11:14:32 -07:00
awilliam@xenbuild.aw 07a795b0f8 [IA64] fix ia64 linux domain builder broken by 12009:4a320d26fc24 of xen-unstable.hg.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-10 11:14:26 -07:00
awilliam@xenbuild.aw 8eb135484e merge with xen-unstable.hg 2006-11-10 11:11:04 -07:00
kfraser@localhost.localdomain 63ffe9b07e If domain_crash_synchronous() is called in the context of a multicall,
the (physical) CPU this was executing on did not get its multicall
state cleared and would reject any further multicalls, likely leading
to crashing dom0 at some point.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-10 17:47:15 +00:00
kfraser@localhost.localdomain b63bf4c482 [LINUX] Support variable hypervisor_virt_start.
Introduce a new elfnote that specifies the lower boundary the kernel
wants to tolerate for the hypervisor hole.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-10 17:35:09 +00:00
kfraser@localhost.localdomain 501330f105 [VMXASSIST] Emulate pop %ds and mov reg->{ds,es}.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-10 17:21:54 +00:00
kfraser@localhost.localdomain acff088125 [IA64,PPC] Fix xencomm_add_offset(). index must be incremented.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-10 15:27:22 +00:00
kfraser@localhost.localdomain afb74c5973 Revert 12361:32f7b40ace426d3acdf26c21c20cb6b4562d9f10.
We should support the XENMEM_memory_map hypercall properly
to fix this issue.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-10 14:53:00 +00:00
Ewan Mellor f5982aac5f When running tests unattended it's useful to know how long they have
taken, as (significantly) increasing the runtime (without introducing
failures) can be considered a regression.  This patch adds a block like:

====
Xm-test timing summary:
  Run Started : Fri, 10 Nov 2006 14:53:18 +1100
  Run Stopped : Fri, 10 Nov 2006 14:53:20 +1100
====

to the generated report.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-10 14:26:14 +00:00
kfraser@localhost.localdomain 6de27d5b5e [LINUX] Extend physical mapping to maxmem instead of mem
As currently physical mapping only reaches the initial reservation,
we're unable to balloon up to more than mem (even when maxmem > mem)
in any situation.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
2006-11-10 14:22:30 +00:00
kfraser@localhost.localdomain 40a69f4cf3 [XEN] memory_op hypercall does not use guest_handle_add_offset().
It was causing compatibility issues across architectures as
on x86 the effect would not persist across a continuation. On
x86/64 and powerpc (both of which use xencomm) the effect would
persist. This patch sidesteps the whole issue.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-10 14:22:17 +00:00
Alastair Tse 069672061c [XEND] Add missing parameter and import from XendAPI and XendCheckpoint.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 13:09:01 +00:00