Commit Graph
16906 Commits
Author SHA1 Message Date
Keir Fraser 9b74c5ff1c Add ioemu to subdirs.
ioemu is handled different because of the configure setup.

Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 15:26:55 +00:00
Keir Fraser edd7911723 Call makefile recursively for subdirs.
This makes it possible to handle subdirs differently.

Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 15:26:41 +00:00
Keir Fraser 64ab2aa0f8 Remove tools/guest-headers; no longer needed.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 15:26:15 +00:00
Keir Fraser e0db36bcdd Move xen/foreign build out of tree setup.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 14:44:30 +00:00
Keir Fraser 18b04c04ee Use real source files for xen/foreign build.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 14:43:47 +00:00
Keir Fraser 34673e4986 Move xen/sys parts down to tools/include/xen-sys.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 14:42:55 +00:00
Keir Fraser 73de243b92 Add PRIVATE_BINDIR. Use it.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 14:42:03 +00:00
Keir Fraser 41a5d4c1fe Also install xen/sys into headers.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 14:41:39 +00:00
Keir Fraser c22615b9ae x86: When Xen is notified that CPU frequency has changed, do not trust
the current TSC-extrapolated time when we re-sync.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-26 11:29:29 +00:00
Keir Fraser b9b6a9658d Inroduce new vcpu_lock_affinity() and vcpu_unlock_affinity() helper
functions for use by x86's continue_hypercall_on_cpu().

This has two advantages:
 1. We can lock out ordinary vcpu_set_affinity() commands from dom0.
 2. We avoid the (in this case bogus) check for dom0_vcpus_pin.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-26 11:25:48 +00:00
Keir Fraser 03bb50b276 Remove commented-out dropping from previous changeset.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-26 10:39:58 +00:00
Keir Fraser be5fbf9a7f Move generation of public header hierarchy into the tools.
This patch merges the two versions of public header generation
currently used in the build into one.

Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 10:38:44 +00:00
Keir Fraser bc4a5b7bf5 blktap: Clean up makefile and linked libs.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 10:17:33 +00:00
Keir Fraser 22d4eec911 Changeset 16771 introduced a new file called tools/check/funcs.sh. This
file needs to be installed into distdir together with the check scripts.

Signed-off-by: Frank Arnold <frank.arnold@amd.com>
2008-01-26 10:16:21 +00:00
Keir Fraser 111eac9793 Use VPATH instead of symlinks for libelf inclusion into libxenctrl.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-26 10:15:38 +00:00
Keir Fraser 13ac8fbdc8 Update XenAPI version number, changelog, and cover sheet.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2008-01-25 16:30:34 +00:00
Keir Fraser e4dd91ea85 x86: Ensure RAM holes really are not mapped in Xen's ongoing 1:1 physmap.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-25 16:26:31 +00:00
Keir Fraser c642b86f9b x86: First 1MB of memory should be mapped with 4kB mappings to avoid
conflict with fixed-range MTRRs. While there, we now map the VGA hole
as uncacheable.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-25 16:02:20 +00:00
Keir Fraser 4eb25830f3 x86: Clarify early_page_fault() handler intent, and improve debug tracing.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-01-25 13:42:36 +00:00
Keir Fraser 2787b8a48d Fix leaking of /vm/<uuid> path in xenstore on various VM lifecycle events.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2008-01-25 13:29:51 +00:00
Keir Fraser d1ce2fc26b Remove outdated comments concerning Xen API in xend configuration file.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2008-01-25 13:29:31 +00:00
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