Commit Graph
12260 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain ff8bf0b0f4 PV-on-HVM: Fix PV-on-HVM drivers need maddr.h included for defn of maddr_t.
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-11-07 09:29:53 +00:00
kfraser@localhost.localdomain 77d409f7f2 [LINUX] Use pfn_to_page instead of relying in memory assumptions
This makes usage agnostic wrt the memory model being used.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
2006-11-07 09:28:18 +00:00
kaf24@localhost.localdomain 759af8e380 [HVM] Fix 64-bit HVM domain creation.
1. vlapic must be initialised before VMX-specific init.
 2. various shadow tweaks (e.g., check d->vcpu[0] before use).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-07 00:02:52 +00:00
kaf24@localhost.localdomain 7dc32da5ea [SVM] Strip down svm_do_launch() pending complete removal.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 20:47:10 +00:00
kaf24@localhost.localdomain 1714d2c351 [SVM] Move VMCB construction to VCPU creation time.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 20:23:08 +00:00
kaf24@localhost.localdomain 9bf5c88d09 [HVM][SVM] Start moving SVM launch code to domain/vcpu initialisation.
This first patch is just enough to get SVM guests working again after
I broke SVM support earlier today.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 18:57:33 +00:00
Emmanuel Ackaouy 72ee01f5db [XEN] Initial support for multi-core and multi-threaded CPU scheduling.
In multi-core and multi-threaded systems, not all idling "CPUs" are
equal: When there are idling execution vehicles, it's better to spread
VCPUs across sockets and cores before co-scheduling cores and threads.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-11-06 17:32:00 +00:00
Emmanuel Ackaouy 32ae1c3387 [XEN] Optimize credit scheduler load balancing logic
When looking for remote work, only look at or grab a remove CPU's
lock when this CPU is not idling.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-11-06 16:55:56 +00:00
kfraser@localhost.localdomain b46deb1d43 [HVM] Replace relinquish_resources() destructor hook with
separate vcpu and domain destructors that are called at the
point the domain is finally destroyed.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 16:36:51 +00:00
kfraser@localhost.localdomain c31f8336e6 [HVM] Initialise AP TSC to same as BP TSC.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 15:46:28 +00:00
kfraser@localhost.localdomain 47d2388d6a [VMX] Get rid of special vm_launch schedule tail.
This required various hacking, including getting rid
of implicit vcpu==current assumption in __vmwrite()
and a couple of tweaks to the shadow code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 15:40:30 +00:00
kfraser@localhost.localdomain 8b26cfe8a7 [HVM] Move VMX VMCS initialisation to vcpu-initialisation time.
Simplify context initialisation (e.g., no need for selectors to
be given dummy non-zero values).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 13:13:04 +00:00
Ewan Mellor 447a08c789 Catch IOError when using local configuration files, to give better diagnostics.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-06 11:36:38 +00:00
kfraser@localhost.localdomain 1ad5dad74c [XEN] Re-jig VCPU initialisation -- VMX init requires generic VCPU
fields to already be allocated. This has led to a general cleanup of
domain and vcpu initialisation and destruction.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-06 11:03:04 +00:00
Steven Smith 5c445c2f6d [HVM] Be sure to nul terminate uuids in HVM SMBIOS tables.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-11-06 09:46:13 +00:00
kfraser@localhost.localdomain adf74ce752 [LINUX] Don't use uint64_t parameter to gnttab_set_{,un}map_op() when
the upper 32 bits will never be used (i.e., i386 non-pae).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-06 09:02:15 +00:00
kaf24@localhost.localdomain 6bc01e4efd [XEN] Replace hvm_setup_platform() with hvm_domain_initialise()
and extra code in hvm_vcpu_initialise(). Remove 'apic' config
option -- HVM CPUs will always have an APIC (which should be
set up in virtual wire mode for backward compatibility, just as
in a real system).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-05 20:17:40 +00:00
kaf24@localhost.localdomain 5aa732c204 [XEN] Do not halt on exceptions-with-interrupts-disabled and double faults.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-04 20:13:22 +00:00
kaf24@localhost.localdomain 2507f30a28 [XEN] Simplify domain shutdown -- no need to synchronously halt execution.
This avoids a possible deadlock on the per-domain 'big lock'.

No control tools depend on synchronous halting of execution (e.g.,
save/restore already expect that secondary CPUs were halted
synchronously under the control of the guest itself). This makes the
code rather less complex.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-04 19:50:59 +00:00
kaf24@localhost.localdomain 3203345bb1 [XEN] Avoid taking domain biglock in the page-fault handler.
This avoids deadlock situation with the shadow_lock.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-04 19:26:29 +00:00
Alastair Tse 14267ebb9a [XEND] Fix xen_version and missing os import
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 16:51:28 +00:00
Alastair Tse 2791eeb645 [XEND] Cleanup HVM image shutdown watch and move readDom call away
from image.py

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 15:47:05 +00:00
Alastair Tse 5061e2c063 [XEND] XendDomainInfo.refreshShutdown is called from image.py.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 15:17:00 +00:00
Alastair Tse 6f9758b848 [XEND] Fix HVM image shutdown.
Missed HVM image creation's hook into XendDomainInfo.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 15:15:16 +00:00
kfraser@localhost.localdomain bdc4e604b2 [HVM] More printk cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-03 12:32:26 +00:00
kfraser@localhost.localdomain 66d409985f [LINUX] Clean up header includes (gnttab.h from fixmap.h).
include/asm-{i386,x86_64}/mach-xen/asm/fixmap.h was needlessly
including include/xen/gnttab.h. Removing this made necessary explicit
inclusion of that header in tpm_xen.c, the build of which should not
have succeeded on non-x86 architectures before.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-03 12:10:02 +00:00
kfraser@localhost.localdomain 7fd6304c64 [BLKTAP] Fix gnttab unmap call to specify that address contains PTE.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-03 12:08:42 +00:00
kfraser@localhost.localdomain 889fc98306 [XEN] Fix shadow-lock macro backslash alignments.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-11-03 11:54:33 +00:00
Alastair Tse 7e86732b9b Merge 2006-11-03 11:43:27 +00:00
Alastair Tse 0d29624ec0 [XEND] Don't hide the 'type' SXP config item from HVM guests
Should allow network devices to properly initialised in HVM guests.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 11:42:57 +00:00
kfraser@localhost.localdomain fa8b023bf2 merge. 2006-11-03 11:38:24 +00:00
kfraser@localhost.localdomain 2f3fdcc736 [XEN] Adjust logging levels of a few printk messages.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-03 11:37:41 +00:00
Alastair Tse e5a17f0ebf [XEND] Make sure lookups cause a refresh so xm list gets the latest
info.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 11:29:16 +00:00
Steven Hand 99e04f18ad Fix syntax error.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-11-03 11:22:22 +00:00
kfraser@localhost.localdomain 0cd811a6c3 [XEN] Fix log-level printk logic for multi-line and partial-line printks.
Add support for switching to print-all mode, and use this for
debug-key output.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-03 11:15:10 +00:00
kfraser@localhost.localdomain 457ee10d4c [XEN] Remove VGCF_hvm_guest, replace with XEN_DOMINF_hvm_guest.
Rename DOMFLAGS_* to XEN_DOMINF_*.
Clean up tools to deal with flags changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-03 10:52:29 +00:00
Alastair Tse 1974ebc7dd [XEND] Handle permission denied when calling xc.domain_getinfo
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 10:41:20 +00:00
Alastair Tse 38a1a16494 [XEND][XM] Restore old state string in xm.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 10:39:32 +00:00
Alastair Tse e558eb26ff [XEND] Silence Xen API debugging messages.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 10:38:18 +00:00
kfraser@localhost.localdomain 2d6e367ecc [XEN] Quieten down tracing when fail (quite expectedly) to map INVALID_MFN.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-03 10:26:36 +00:00
Ewan Mellor e34b744e2c I found a small bug in xenmon. Even if I gave xenmon a wrong
parameter, xenmon did not become an error.

This patch adds a checking of wrong parameter into xenmon.
If wrong parameter is given, xenmon shows the following error
messages.

usage: xenmon.py [options]

xenmon.py: error: No parameter required


Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-02 23:01:32 +00:00
kaf24@localhost.localdomain 7be8e242ee [XEN] Add 'loglvl' and 'guest_loglvl' boot parameters.
<lvl> := none|error|warning|info|debug|all

 loglvl=<lvl_print_always>[/<lvl_print_ratelimit>]
  <lvl_print_always>: log level which is always printed
  <lvl_print_rlimit>: log level which is rate-limit printed

 'loglvl' applies to non-guest-related messages.
 'guest_loglvl' applies to guest-related messages.

 Defaults: loglvl=warning ; guest_loglvl=none/warning

Also clean up hvm_print_line().

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-02 22:24:20 +00:00
Alastair Tse 0bed6642af Merge 2006-11-02 18:52:04 +00:00
Alastair Tse 3fc456d6c8 [XEND] Reverting self.domains UUID indexing
Due to localhost migration, it is possible to have two VMs with the
same UUID on the same host. So instead, we revert back to XendDomain
where there are two lists, a "domains" of active domains indexed by
domid and a "managed_domains" which is a list of all domains whose
lifecycle is managed by Xend.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-02 18:51:23 +00:00
kfraser@localhost.localdomain a034a6ad0e Dynamically link to libgcc on Solaris. Also clean up duplicate -Wall flags.
Signed-off-by: John Levon <john.levon@sun.com>
2006-11-02 18:19:22 +00:00
kfraser@localhost.localdomain af7afdc2a1 [BLKTAP] Fix Linux and Xen gnttab map operations when mapping into
PTEs above 4GB on PAE systems.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-11-02 18:18:19 +00:00
kfraser@localhost.localdomain 725cc28901 [HVM] Clean up VCPU initialisation in Xen. No longer
parse HVM e820 tables in Xen (add some extra HVM parameters as a
cleaner alternative). Lots of code removal.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-02 15:55:51 +00:00
Alastair Tse 20c0ef90f1 [XEND] Fix paused state being overriden by refreshShutdown
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-02 15:48:32 +00:00
Alastair Tse 147350e843 Merge with tip 2006-11-02 14:27:16 +00:00
Alastair Tse dfce37614d [XEND][XM] Fixes for xm list output
Do not output image, security if they are empty
Change xm list slightly to be more informative about state.
Add back store_mfn and console_mfn to the SXP so save/restore can work
again.


Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-02 14:26:01 +00:00