Commit Graph
16859 Commits
Author SHA1 Message Date
Keir Fraser 291dffe4df ChangeLog: Document new set_target xenstore and domctl commands.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-23 13:27:21 +00:00
Keir Fraser f9f9329313 New XS_SET_TARGET
Stubdomains (and probably other domain disagregation elements too)
need to be able to tinker with another domain.  This adds
XS_SET_TARGET so that XenStore allows domains to have permissions on
files on which the "target" has permissions.  This also adds
xs_set_target, called by the domain builder when the 'target' option
is used in the configuration.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-23 13:22:13 +00:00
Keir Fraser 47fcfcb75b New XEN_DOMCTL_set_target
Stubdomains (and probably other domain disagregation elements too)
need to be able to tinker with another domain.  This adds IS_PRIV_FOR
that extends IS_PRIV by allowing domains to have privileges over a
given "target" domain.  XEN_DOMCTL_set_target permits to set this
"target". A new 'target' configuration option makes the domain builder
use it.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-23 13:21:44 +00:00
Keir Fraser d352a2fb4d tools/check: Add explicit include path for funcs.sh.
When the current directory is not in $PATH,
then the patch fixes the following errors:

Checking check_brctl: .: funcs.sh: not found
Checking check_crypto_lib: .: funcs.sh: not found
Checking check_curl: .: funcs.sh: not found
Checking check_iproute: .: funcs.sh: not found
Checking check_python: .: funcs.sh: not found
Checking check_python_xml: .: funcs.sh: not found
Checking check_udev: .: funcs.sh: not found
Checking check_xml2: .: funcs.sh: not found
Checking check_zlib_lib: .: funcs.sh: not found

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2008-01-23 11:21:35 +00:00
Keir Fraser f567396727 minios: make allocation of page tables for ondemand mapping lazy
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-23 11:20:01 +00:00
Keir Fraser e3c8f36340 Remove auto-generated files in extboot/ directory. 2008-01-23 11:15:57 +00:00
Keir Fraser 46e8f73153 Merge with ia64 tree 2008-01-22 19:26:52 +00:00
Keir Fraser 4d7db972d7 vmx: Disable vmxassist in the default build.
We now use x86 real-mode emulation by default.
Select old behaviour (for now) by specifying vmxassist=y at build time.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-22 17:20:39 +00:00
Keir Fraser a129d4b5f6 vmx realmode: Faster emulation of REP INS and REP OUTS.
This makes, in particular, reading files via the BIOS disk abstraction
much much much faster.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-22 17:18:51 +00:00
Keir Fraser b4841dbaca x86_emulate: Provide callbacks for faster emulation of:
REP MOVS, REP INS, REP OUTS.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-22 17:18:02 +00:00
Alex Williamson a258e82cda [IA64][IOEMU] Add back ia64
cset 16789:51a7e508bd01 dropped ia64 from the configure script, add it back

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2008-01-22 09:04:41 -07:00
Alex Williamson bf44bd24aa merge with xen-unstable.hg (staging) 2008-01-22 08:30:40 -07:00
Alex Williamson 30b027a02f [IA64] Fix a perf counter typo
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2008-01-22 08:27:29 -07:00
Alex Williamson ae0ff07b57 [IA64] Introduce dom0_vhpt_size_log2 boot option to change dom0 vhpt size
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-01-22 08:26:20 -07:00
Keir Fraser 2b2eda45a3 Add MANDIR, MAN1DIR and MAN8DIR. Use it.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:35:17 +00:00
Keir Fraser 93e3de7b94 Add SBINDIR. Use it always.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:35:02 +00:00
Keir Fraser 93a029ac74 ioemu: Use XEN_TARGET_ARCH instead of uname -m.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:34:37 +00:00
Keir Fraser 83f34fdcdd Add BINDIR. Use it.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:31:10 +00:00
Keir Fraser 2faf0fc95c Add INCLUDEDIR. Use it.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:30:21 +00:00
Keir Fraser c8107e1564 Apply PREFIX directly to LIBDIR.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:29:11 +00:00
Keir Fraser 590e56fc11 Add PREFIX definition as base for all installed files.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:27:22 +00:00
Keir Fraser c69b2fa1c4 minios: permit blkfront to write from mapped memory
by adding a virtual_to_mfn macro

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-22 14:20:37 +00:00
Keir Fraser e8c1abd6e7 minios: POSIX fixes
Fixes some functions which are POSIX.  Also make them ifndef HAVE_LIBC.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-22 14:20:22 +00:00
Keir Fraser dfba81d2fc minios: fix case when _text is not 0
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-22 11:35:26 +00:00
Keir Fraser c6c6a0890d minios: Fix x86_32 compilation
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-22 11:19:40 +00:00
Keir Fraser 956eabb460 hvmloader: Expand iomem allocation pool to 0xf0000000-0xfc000000.
Check for exhaustion of allocation pool, warn user, and fail to
initialise the relevant PCI BAR.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-22 11:18:10 +00:00
Keir Fraser b126cbcb88 hvmloader: Assign PCI resources in descending order of size for better packing.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-22 10:54:00 +00:00
Keir Fraser d81a1d35a9 XEN_GUEST_HANDLE_00030205() compat macro is broken. Remove it and
open-code an alternative at its two invocation sites.

Based on a patch by Jan Beulich.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-22 10:18:58 +00:00
Keir Fraser bf4b59a4c7 xend: On block-attach, remove device information when VmError occurs.
I tested xm block-attach command with a wrong
parameter(file:). Naturally a command error occurred. Then I retested
xm block-attach command with a correct parameter(phy:). But a command
error occurred again. The second command error occurred because Xend
did not remove device information from self.info when the first
command error occurred.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2008-01-22 09:51:49 +00:00
Keir Fraser 92765dcf80 hvm, ioemu: Fix the ide/cdrom emulation error on FC7 guest.
The new libata-eh in the Linux kernel is throwing a fit over the QEMU
cdrom device for two reasons:

1) DRQ can be set with ERR_STAT set.  This is a violation of the ATAPI
state machine.

2) After a TEST_UNIT_READY ATAPI command is sent ERR_STAT is getting
   set
which is correct.  But, when the OS issues another ATAPI command
ERR_STAT is still set.  Which is bad since the next expected command
from the OS is REQUEST_SENSE to find out why ERR_STAT is set.

bug this fixes: https://bugzilla.novell.com/show_bug.cgi?id=3D291775

Signed-off-by: Brandon Philips <bphilips@suse.de>

Porting this qemu fix to xen.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
2008-01-22 09:50:06 +00:00
Keir Fraser d7a14c642b vtd: Enable queued invalidation method if such HW support is
detected.  Otherwise, register invalidation method is used.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
2008-01-22 09:48:51 +00:00
Keir Fraser 2a18de7599 minios: add blkfront testing
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-22 09:46:33 +00:00
Keir Fraser e5445ffa54 minios, blkfront: set default block path.
remove unnecessary path head stripping.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-22 09:46:15 +00:00
Keir Fraser d6398adb03 minios: Add align support to _xmalloc().
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-22 09:45:54 +00:00
Keir Fraser b7d7bde935 Make tools/check scripts cross-friendly
This patch introduces tools/check/funcs.sh with some
cross-friendly abstractions, then modifies the check_*
scripts to use them.

Signed-off-by: Aron Griffis <aron@hp.com>
2008-01-22 09:44:17 +00:00
Keir Fraser 036e6bd11b Make tools/Makefile cross-friendly
Pass Xen cross-compilation options through to ioemu.
Export CROSS_SYS_ROOT for use by scripts.  Unexport
IOEMU_DIR since it isn't used outside of the Makefile.

Signed-off-by: Aron Griffis <aron@hp.com>
2008-01-22 09:43:53 +00:00
Keir Fraser c7ee45b34e hvm: Allow PCI high-memory resource to be decided by hvmloader at
HVM-guest boot time. Also make a few PCI0 resource ResourceProducer
type -- this seems to be specified by some randomly-sampled real ACPI
systems.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-21 14:39:33 +00:00
Keir Fraser 4a4dd8d383 x86: Sync cpu/intel_cacheinfo.c with Linux kernel
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2008-01-21 13:09:23 +00:00
Keir Fraser f9e7b1763c x86, xenoprof: Support Intel Penryn processors.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>=20
2008-01-21 13:08:44 +00:00
Keir Fraser 0464a12749 minios: add lwIP 1.3.0 support
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-21 11:20:52 +00:00
Keir Fraser afb13d4890 minios: make time interface POSIX
timespec uses tv_sec and tv_nsec too. gettimeofday takes a tz
argument.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-21 11:20:27 +00:00
Keir Fraser 3e49205c7a xend: Handle unspecified timer_mode domain platform parameter.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-18 22:27:51 +00:00
Alex Williamson 92feecee68 [IA64] Fix thash long format crash
Do not overwrite r25 (and restore r24) for C fallback of vmx_asm_thash.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2008-01-18 14:11:20 -07:00
Alex Williamson 165190001f [IA64] Fix emacs file mode in vmx_entry.S and vmx_vsa.S
Not C, but ASM.  vmx_entry.S is cleary derived from linux entry.S
so that using 8tab makes sense.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-01-18 14:09:04 -07:00
Alex Williamson 0db13f117e [IA64] Use rcu where possible.
This is for consistency.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-01-18 13:55:26 -07:00
Alex Williamson 03b66be330 merge with xen-unstable.hg staging 2008-01-18 13:49:48 -07:00
Keir Fraser 2039d19398 minios: do not exit if FS backend not found.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-18 16:20:47 +00:00
Keir Fraser 04383f9c0f minios: support COW for a zero page
Permits to support sparse data.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-18 16:20:13 +00:00
Keir Fraser 0747f6e56e do_set_trap_table()'s argument can be const.
Also, automatically generate const version of every guest handle
definition.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-18 16:09:05 +00:00
Keir Fraser 77cb1af79d do_callback_op()'s second argument can be const allowing the guest to
declare these (mostly static) argument structures 'const'.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2008-01-18 15:46:58 +00:00