Commit Graph
16885 Commits
Author SHA1 Message Date
Keir Fraser 13b49a3763 Fix 'on_*=rename-restart' domain configuration option.
When setting e.g. 'on_crash=rename-restart' option in domain config
and crashing guest OS running in the domain, the new domain is
restarted with same name as renamed domain.

jfehlig4: # xm li
Name                                        ID   Mem VCPUs State Time(s)
Domain-0                                     0   1233   4  r----- 937.9
Domain-e64b12a0-0493-44d7-afde-55c776513426 21   384    1  ---c-  14.3
Domain-e64b12a0-0493-44d7-afde-55c776513426 22   384    1  r-----  7.3

This patch copies the domain info prior to setting new name and uuid
in the crashed domain info and uses the copied domain info to
construct the restarted domain.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2008-01-25 13:29:07 +00:00
Keir Fraser 961f9b1fc9 (Re)introduce notion of crashed VM power state.
The crashed power state is necessary to allow both core-dumping a
crashed but preserved VM and renaming/restarting a crashed VM.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2008-01-25 13:28:25 +00:00
Keir Fraser bb09427c71 x86: Fix host S3.
Time zone info just needs to be calculated in S3 suspend procedure.
However, time_suspend() is also called on AP. That wasteful
get_cmos_time() on AP may break __cpu_die() assumption since
get_cmos_time() can take up to one second. This fix just limits it to
running on the BSP.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
2008-01-25 13:26:38 +00:00
Keir Fraser 0283c62431 [PV-on-HVM] Process event channels notifications in round-robin order
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2008-01-25 13:23:39 +00:00
Keir Fraser c98471a3aa Fix losetup -r flag when we specify 'w!' for the disk mode.
From: Zhigang Wang <zhigang.x.wang@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-25 13:22:52 +00:00
Keir Fraser 53450ac252 x86: make show_page_walk() more robust.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2008-01-24 18:11:44 +00:00
Keir Fraser d75e7bf2ac x86, hvm: Only invalidate qemu mapcache on XENMEM_decrease_reservation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-24 18:09:26 +00:00
Keir Fraser f33a7ba91c block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2008-01-24 14:41:26 +00:00
Keir Fraser 27a60277e8 x86, hvm: MTRR can't cover all the memery ranges
MTRR can't cover all the memery ranges, due to guest E820 is changed
by CS:16728 with current method.
Signed-off-by: Disheng Su <disheng.su@intel.com>
2008-01-24 14:40:35 +00:00
Keir Fraser ab49465010 vt-d: Do FLR of assigned devices with VT-d
Currently there is a pdev_flr() function to do FLR before device
assignment in qemu, but most of devices don't have FLR capability.
What's more, should do FLR before assignment and deassignment for
keeping correct device status. If the device doesn't have FLR
capablility, this patch implemented to enter D3hot and return to D0 to
do FLR. And exposed pdev_flr() in VT-d utils, then it can be invoked
by assignment and deassignment functions.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2008-01-24 14:39:38 +00:00
Keir Fraser f598b741ff Update hgignore list. 2008-01-24 14:38:01 +00:00
Keir Fraser 9577157dc4 network-nat: Fix NAT scripts.
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
2008-01-24 14:37:53 +00:00
Keir Fraser 26bf63427f Fix libfsimage build on Solaris
The Solaris installation dirs were missing $(PREFIX)

Signed-off-by: John Levon <john.levon@sun.com>
2008-01-24 14:35:52 +00:00
Keir Fraser 3dae1f944b ioemu: 'lib64' is Linux-specific
Only use libdir == 'lib64' on Linux.

Signed-off-by: John Levon <john.levon@sun.com>
2008-01-24 14:35:40 +00:00
Keir Fraser 6a537e39fb ioemu: Improve xenstore_read_vncpasswd().
From: Peter Johnston <peter.johnston@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-24 14:33:46 +00:00
Keir Fraser 3502a233e0 vmx realmode: Restructure code for clarity and better treatment of
VM_ENTRY_INTR_INFO. Also add more sanity checking.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-24 14:29:13 +00:00
Keir Fraser 826202abce ioemu: handle empty vnc passwd
Have xenstore_read_vncpasswd return -1 when it is unable to read the
passwd from XenStore (and store an empty password).  However, don't
exit in such case since it may just mean that the use didn't set a
passwd. If he really did, xend would have given the passwd flag in the
-vnc option, and the empty passwd would make the vnc authentication
reject any password anyway.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Acked-by: Daniel P. Berrange <berrange@redhat.com>
2008-01-23 18:12:37 +00:00
Keir Fraser fbb0b88ad8 minios: permit blkfront to write from mapped memory
Missing call to virtual_to_mfn

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-23 18:05:27 +00:00
Keir Fraser 2444bd4780 ioemu: Use asprintf instead of PATH_MAX, which POSIX says to be facultative.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-23 18:05:12 +00:00
Keir Fraser 4927ede7c1 ioemu: fix xc_handle declaration
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-23 18:03:52 +00:00
Keir Fraser 55f145211d ioemu: fix phys_ram_addr parameter usage
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-23 18:03:25 +00:00
Keir Fraser 08acb1c755 ioemu: cache the BlockDriverState pointer
This actually fixes a bug in the scsi case.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-01-23 18:02:48 +00:00
Keir Fraser 44a4d53015 pv-on-hvm: Fix up linux code after hypercall-type-checking changes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2008-01-23 15:42:52 +00:00
Keir Fraser 52e877db68 vmx realmode: Implement new x86_emulate hook load_fpu_ctxt().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-23 14:30:56 +00:00
Keir Fraser 5979d61397 x86_emulate: Emulate FNINIT, FNSTCW, FNSTSW x87 instructions.
Provide new hook ->load_fpu_ctxt() to ensure emulated environment's
FPU state is loaded onto the local processor.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-23 14:30:29 +00:00
Keir Fraser 06f0612ed5 x86_emulate: Fix CLTS emulation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-23 13:59:24 +00:00
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