Commit Graph
100 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 705ea2b54c New VCPUOP_register_runstate_memory_area hypercall. Avoids
need for a hypercall in the guest timer interrupt handler.

Cleaned up stolen/blocked tick handling in Linux.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-25 21:28:27 +01:00
kaf24@firebug.cl.cam.ac.uk 11a008c7c5 Update Linux time IRQ handler to understand the new stolen/blocked cycle counts
exported by Xen. This is based heavily on a patch from Rik van Riel, but
extended to distinguish between idle/blocked cycles and stolen cycles.

There is still stuff todo:
 1. Xen should export the time values in shared memory, to save a hypercall
    on every time interrupt (even though that is only every 10ms, worst case).
 2. As in s390, Xen's cputime_t should be measured at finer granularity than
    jiffies. Nanoseconds would be a better unit.
 3. Break out the internals of the account_steal_time() interface so that we don't
    need to abuse it so wretchedly.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-25 20:07:28 +01:00
kaf24@firebug.cl.cam.ac.uk eefccca99e New VCPUOP_get_runstate_info hypercall. Returns information about the current
run state of a VCPU (running, runnable, blocked, etc.) and the total time
spent in each state since the VCPU was created.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-25 17:58:37 +01:00
kaf24@firebug.cl.cam.ac.uk 73f56b3d57 Avoid pcnet dm packet loss / corruption.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-02-25 12:27:53 +01:00
kaf24@firebug.cl.cam.ac.uk f79d0e5aeb Split XENFEAT_ feature flags into new header file features.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 19:34:54 +01:00
kaf24@firebug.cl.cam.ac.uk 396a3a4f19 Fix up CPU allocation and topology reporting.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 19:16:52 +01:00
kaf24@firebug.cl.cam.ac.uk 7258ce4242 Quieten down MSR access warnings.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 19:16:15 +01:00
kaf24@firebug.cl.cam.ac.uk 28c8245ab0 Default minimum number of receive buffers queued by netfront is now 64, not 8.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 17:50:20 +01:00
kaf24@firebug.cl.cam.ac.uk 143dc15137 Bring up AP of VMX domain.
1) add INIT-SIPI-SIPI IPI sequence handling code to HVM virtual lapic
code.
2) add an new interface init_ap_context to hvm_funcs, and implement the
VMX side.
3) add a hvm generic function hvm_bringup_ap, which in turn calls
init_ap_context.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-02-24 17:32:58 +01:00
kaf24@firebug.cl.cam.ac.uk 6b2c1a390c Clean up p2m functions.
1) set_p2m_entry/alloc_p2m_table call domain_crash instead of
domain_crash_synchronous when map_p2m_entry return with failure, or dom0
will crash.
2) free_p2m_table now uses domain as parameter instead of vcpu.
3) add AP p2m initialization logic for VMX domain.
And some coding style cleanups.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-24 17:32:19 +01:00
kaf24@firebug.cl.cam.ac.uk f6591ed77a Two missing exports (one of them needed only for PAE) prevented netfront from being built as a module.
From: Jan Beulich

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 17:25:41 +01:00
kaf24@firebug.cl.cam.ac.uk e6e48842c2 Another tiny C89 fix.
Signed-off-by: Bruce Rogers <brogers@novell.com>
2006-02-24 16:37:09 +01:00
kaf24@firebug.cl.cam.ac.uk 3157cba60d Tools changes for per-vcpu io event channel on IA64.
Signed-off-by Kevin Tian <Kevin.tian@intel.com>
2006-02-24 10:29:09 +01:00
kaf24@firebug.cl.cam.ac.uk e36c8877da Return <4GB memory back to Xen when destroying a PAE pgdir.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 08:49:32 +01:00
kaf24@firebug.cl.cam.ac.uk 4df7e8e499 This patch allows for compilation with C89 era compilers, by removing the
trailing comma from an enum, which was not part of the C89 spec.

Signed-off-by: Bruce Rogers <brogers@novell.com>
2006-02-24 08:28:04 +01:00
kaf24@firebug.cl.cam.ac.uk 50345bb6c0 Cset 8950 adds shadow info dump in common code, however
IA64 has no shadow mode. Move it into arch specific stub instead.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-02-24 08:27:05 +01:00
kaf24@firebug.cl.cam.ac.uk e16b78bf48 Use common IRET macro for all exits from XenLinux. Currently
uses slow iret path every time (but most returns will do that
anyway, since they'll be to userspace). Fast return (to kernel)
can be implemented inside the macro and respect the 
supervisor_mode_kernel feature flag.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 18:40:08 +01:00
kaf24@firebug.cl.cam.ac.uk 3eaf2dff37 Remove TBF_SLOW_IRET hack from x86/64 Xen return-to-guest
path. Guest should set up flags for itself in its own
NMI handler.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 18:30:43 +01:00
kaf24@firebug.cl.cam.ac.uk 9925f4a7dc Remove explicit munging of selector RPLs from Xen Linux x86/64.
Not needed now it's done by Xen.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 18:27:18 +01:00
kaf24@firebug.cl.cam.ac.uk 21cf8ef96a Add XENFEAT feature parsing to the domain 0 builder in Xen.
Fail to boot if domain 0 requires features that Xen does not
understand or support (for domain 0).

Remove stale dom0_translate boot option.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 15:55:35 +01:00
kaf24@firebug.cl.cam.ac.uk 186366e279 Remove some unnecessary diffs vs. native Linux. We now don't use the Xen
FLAT_foo segment selectors at all.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 15:33:08 +01:00
kaf24@firebug.cl.cam.ac.uk cc0225babb Fix netfront receive path for auto_translate_physmap mode.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 15:22:12 +01:00
kaf24@firebug.cl.cam.ac.uk c05842ad99 Disable pagetable pinning for shadow-mode-refcount guests.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 14:50:00 +01:00
kaf24@firebug.cl.cam.ac.uk 0e480fbe65 Clean up segment selector fixup and validation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 14:43:45 +01:00
kaf24@firebug.cl.cam.ac.uk 55232abc7e Rename XENFEAT_ring0_kernel to slightly more generic XENFEAT_supervisor_mode_kernel.
Add comments in public header version.h to explain what all the different
feature flags mean. Add a new flag XENFEAT_pae_pgdir_above_4gb to inform the guest
that its PAE page directories do not need to conform to the usual hardware
restriction.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 11:59:27 +01:00
kaf24@firebug.cl.cam.ac.uk 7b7a8ea148 Silenty ignore calls to xen_create_contiguous_region() when running
in auto_translated_physmap mode. A new comment in that function explains
why this is an okay thing to do.

This avoids an unnecessary crash in Xen's skbuff_ctor.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 11:42:19 +01:00
kaf24@firebug.cl.cam.ac.uk 66d54fe762 Clean up some vmx code.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-23 11:34:11 +01:00
kaf24@firebug.cl.cam.ac.uk 224d655aba Whenever the slice of a domU is set to 0, sedf_adjdom() sets extraweight
to 0.  Later, in desched_extra_dom(), if the extrawight is not set, the
vcpu's score is calculated with this:

 /*domain was running in L1 extraq => score is inverse of
   utilization and is used somewhat incremental!*/
   if ( !inf->extraweight )
       /*NB: use fixed point arithmetic with 10 bits*/
       inf->score[EXTRA_UTIL_Q] = (inf->period << 10) /
           inf->slice;

Which can result in a divide by zero.

This changeset adds a comments and additional sanity check to prevent this
case from crashing Xen.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-02-23 11:31:01 +01:00
kaf24@firebug.cl.cam.ac.uk 2b3ef497e8 Update the hypercalls in Mini-OS to reflect the current state in XenLinux.
Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
2006-02-23 11:27:35 +01:00
kaf24@firebug.cl.cam.ac.uk 28a8fc92e9 Per-vcpu IO evtchn support for VT-i guests (ia64).
Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by Xin Li <xin.b.li@intel.com>
2006-02-23 11:24:37 +01:00
kaf24@firebug.cl.cam.ac.uk bb86d19e6e Per-vcpu IO evtchn patch for HVM domain.
We are starting to send patches to support SMP VMX guest.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-23 11:22:25 +01:00
kaf24@firebug.cl.cam.ac.uk c0b9da693c Cset 8916 missed two extra pages for VT-i domain and thus breaks domain
creation. This fixes it.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2006-02-22 19:40:19 +01:00
kaf24@firebug.cl.cam.ac.uk 123f8f60a2 Fix gcc warning and clean a piece of code in arch_set_info_guest to avoid
AP of HVM domain going to a wrong code path.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-22 19:38:50 +01:00
kaf24@firebug.cl.cam.ac.uk a9ed4151ba Change shadow_direct_map_init/clean param from vcpu to domain.
Also some cleanups.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-22 19:23:35 +01:00
kaf24@firebug.cl.cam.ac.uk acd1abe9f9 When thermal interrupt happened when vmx guest is running,
smp_thermal_interrupt() should be called.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-02-22 09:54:20 +01:00
kaf24@firebug.cl.cam.ac.uk ac6fac6bdc Fix HVM x86-32 PAE guest support on 64-bit Xen.
Signed-off-by: Xiaohui Xin < xiaohui.xin@intel.com>
2006-02-22 09:53:54 +01:00
kaf24@firebug.cl.cam.ac.uk 8d2aabfffa Fix SVM instruction decode, fixing problem with gfxboot package.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-21 19:36:00 +01:00
kaf24@firebug.cl.cam.ac.uk 8ae7327c62 Fix 64b build breakage.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-21 19:35:34 +01:00
kaf24@firebug.cl.cam.ac.uk b97b110e07 inst_len in HVM mmio handler must be a signed variable, as
it may hold an error return value (from hvm_instruction_length).

Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-21 19:32:15 +01:00
kaf24@firebug.cl.cam.ac.uk 90367a1391 Define constants for XENVER char array sizes. Allows Linux
users to avoid using the typedefs directly.

Signed-off-by: Mike Day <ncmike@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-21 18:29:28 +01:00
kaf24@firebug.cl.cam.ac.uk 911d50521b Cleanups to tools since HVM domain P2M table and 1-1 table are built in xen.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-21 18:23:35 +01:00
kaf24@firebug.cl.cam.ac.uk c32f3b529c Fix cleanup path if an HVM guest fails very early, before direct map is built.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-21 18:21:13 +01:00
kaf24@firebug.cl.cam.ac.uk 51142eb011 No need for save_segments() on HVM 64b guest.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-21 18:19:16 +01:00
kaf24@firebug.cl.cam.ac.uk ac2f4cf2ca Add PAE option to HVM config file.
This option is disabled by default, only if we have "pae=1" in config
file, cpuid will return PAE available to VMX guest, and Linux PAE VMX
guest need this. Once the PAE VMX guest support is stable, we will
enable it by default.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2006-02-21 18:15:49 +01:00
kaf24@firebug.cl.cam.ac.uk 5116432d41 Fix get_mfn_from_gpfn_foreign for HVM guests.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2006-02-19 09:06:44 +01:00
kaf24@firebug.cl.cam.ac.uk 06c843b557 Missing file from previous changeset. 2006-02-18 11:56:51 +01:00
kaf24@firebug.cl.cam.ac.uk 315c3fa6a2 Enable x86_32 PAE unmodified guests on 64-bit Xen when the hvm feature
is present. We tested only Linux at this point, and we'll improve the
functionality as we test other guests.

The SVM needs the equivalent changes to the vmc.c to get this
functionality working, but this patch does not break the build.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-02-18 11:56:13 +01:00
kaf24@firebug.cl.cam.ac.uk 1aca85cf41 Include an extra header file in xenbus.h. Fixes ia64 build.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-18 11:41:42 +01:00
kaf24@firebug.cl.cam.ac.uk ce6ffe2a14 Fix debug build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-18 01:05:05 +01:00
kaf24@firebug.cl.cam.ac.uk e75e463bf5 Svm patch to remove unneeded update_pagetables().
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-18 01:02:19 +01:00
kaf24@firebug.cl.cam.ac.uk 07a27576b1 Svm patch to fix asid logic on multicore.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-18 01:01:52 +01:00
kaf24@firebug.cl.cam.ac.uk fa9ecc30bf Svm patch to cleanup the injection logic and consolidate into one function.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-18 01:01:31 +01:00
kaf24@firebug.cl.cam.ac.uk 784aebe2ef Remove obsolete ccache patch from xm-test buildroot.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 21:26:49 +01:00
kaf24@firebug.cl.cam.ac.uk a50ec08122 Fix buildroot problems and bring the buildroot image up
to 15feb06, update to Makefile.am. The original gcc-mirror patch is
removed and the buildroot configuration updated.

Signed-off-by: Woody Marvel <marvel@us.ibm.com>
2006-02-17 21:25:53 +01:00
kaf24@firebug.cl.cam.ac.uk 262e026767 Disable C1 clock ramping on AMD 8th gen CPUs.
This reverts a previous changeset that removed this code.
It is currently required for good TSC behaviour in SVM
(fully virtualised) guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 20:41:30 +01:00
kaf24@firebug.cl.cam.ac.uk 13627ba6ee Fix 64b build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 18:22:23 +01:00
kaf24@firebug.cl.cam.ac.uk 0a64e72ee7 Fix HVM MSR save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-17 16:29:24 +01:00
kaf24@firebug.cl.cam.ac.uk ae1754163b Fix a VMX FPU bug introduced in changeset 8834.
From: Edwin Zhai

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 12:28:35 +01:00
kaf24@firebug.cl.cam.ac.uk 9a5bf16779 Update defconfigs for PCI front/back driver config options.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-17 00:07:11 +01:00
kaf24@firebug.cl.cam.ac.uk da0c51ab41 Update documentation to describe new PCI front/back drivers.
Update the documentation to include the syntax of "hiding" a PCI
device from domain 0 and for specifying the assignment of a PCI device
to a driver domain. It also includes a brief section exploring some of
the security concerns that driver domains address and mentioning some
of those that remain.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:47:58 +01:00
kaf24@firebug.cl.cam.ac.uk d70271d485 Tools changes for PCI front/back drivers.
Replace the old pciif DevController class with a new one that
configures the PCI backend. A util class detects the resource usage of
the specified PCI devices and pciif interacts with Xen to permit a
driver domain to directly access those physical I/O resources.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:46:51 +01:00
kaf24@firebug.cl.cam.ac.uk ca0e9847e8 PCI backend and frontend drivers for i386 and x86_64.
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:44:41 +01:00
kaf24@firebug.cl.cam.ac.uk b41c62a012 Provide a simpler, higher-level interface for mapping in pages from another domain.
I also added a one-liner that causes xenbus_dev_(error|fatal) to output
to the kernel log buffer (and thus syslog) which was invaluable to me
while debugging (by default, error messages only appear in xenstore).

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-02-16 23:37:40 +01:00
kaf24@firebug.cl.cam.ac.uk 666c2a019b Fix bugs related to the virtual TPM. Also make the vTPM
manager listen on /dev/vtpm.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-16 23:00:00 +01:00
kaf24@firebug.cl.cam.ac.uk f47038ad99 Fix a dead download url for ccache when building the xm-test ramdisk.
From: Adam Wendt <adam@ipcoast.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 22:57:29 +01:00
kaf24@firebug.cl.cam.ac.uk 8a61bdcadb VTPM Tools: Fix threading bug in vtpm_manager while using NPTL. Now
supports Linux Threads and NPTL threads. Also clean up vtpm Makefile.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2006-02-16 22:39:55 +01:00
kaf24@firebug.cl.cam.ac.uk 97af5bbb77 Fix Xen builds with perfc=y and perfc_arrays=y.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Ben Thomas <ben@virtualiron.com>
2006-02-16 22:33:46 +01:00
kaf24@firebug.cl.cam.ac.uk a7e0c3b593 Sync Xen's mpspec.h with Linux 2.6.16-rc2 codebase.
Fixes building with gcc 4.1-pre, pointed out by Chris Wright.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 22:25:54 +01:00
kaf24@firebug.cl.cam.ac.uk d18b5b7057 Re-enable VGA acceleration under the new phys_to_machine_mapping.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2006-02-16 19:04:33 +01:00
kaf24@firebug.cl.cam.ac.uk a582b2638b New memory_op subcall XENMEM_translate_gpfn_list.
Allows translation from GPFNs to MFNs for an auto-translated
guest.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 18:52:06 +01:00
kaf24@firebug.cl.cam.ac.uk 88f2d4e3e1 Upgrade mpparse.c to linux-2.6.16-rc2 codebase.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 17:37:21 +01:00
kaf24@firebug.cl.cam.ac.uk db170676e2 Fix problems with direct-mapping handling especially when
VMX assist is used for real mode and protected mode.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-02-16 16:46:21 +01:00
kaf24@firebug.cl.cam.ac.uk 775822d36c Add back code to zero the 'saved eflags' value on vmx vmexit.
vmx mode is unstable without this -- the root cause needs to
be investigated.

From: Jun Nakajima

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 16:35:09 +01:00
kaf24@firebug.cl.cam.ac.uk 8c9970bdb4 Clean up swiotlb_init() decls.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 16:31:52 +01:00
kaf24@firebug.cl.cam.ac.uk 0510339782 Upgrade smpboot.c to linux-2.6.16-rc2 codebase.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-16 16:31:22 +01:00
kaf24@firebug.cl.cam.ac.uk ad08f1cd83 Clean up grant-table code and replace uses of get_user
and put_user in common code. This is an attempt to narrow
the uaccess API before it gets replaced.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-15 15:20:32 +01:00
kaf24@firebug.cl.cam.ac.uk 5faf6b2ae3 Fix x86/64 build for gcc-4.1-pre.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-15 12:21:12 +01:00
kaf24@firebug.cl.cam.ac.uk 299db04285 Fix non-x86 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-15 12:20:42 +01:00
kaf24@firebug.cl.cam.ac.uk b173c37378 Fix to previous changeset: CLTS must be unconditional in
setup_fpu(), as the flag can be set in CR0 even if the VCPU
has already dirtied the FPU (this happens if a paravirtualised
guest has set CR0.TS).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-15 00:37:15 +01:00
kaf24@firebug.cl.cam.ac.uk 91e612aea0 More fixes to HVM FPU management. Mostly for SVM, but also
fix VMX mov_to_cr0: must setup_fpu() if the new cr0 value
has TS clear, regardless of previous cr0.TS value.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-15 00:15:11 +01:00
kaf24@firebug.cl.cam.ac.uk b42ab5370e Clean up save_init_fpu().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-14 23:30:59 +01:00
kaf24@firebug.cl.cam.ac.uk 4e44a5e52e Fix gcc4 build.
Signed-off-by: Steve Dobbelstein <steved@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-14 22:36:22 +01:00
kaf24@firebug.cl.cam.ac.uk 58d5afee7b Clarify lazy FPU management in VMX domains.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-14 20:17:26 +01:00
kaf24@firebug.cl.cam.ac.uk 84e877b233 Fix segment-register dumping in show_registers().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-14 19:43:45 +01:00
kaf24@firebug.cl.cam.ac.uk f25330e869 More upgrades of Xen code to linux-2.6.16-rc2.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-14 18:25:10 +01:00
kaf24@firebug.cl.cam.ac.uk 193af2f5c7 Upgrade arch/x86/cpu/* files to their equivalents in
linux-2.6.16-rc2/arch/i386/kernel/cpu/*.

Also include kernel taint tracking and include that
information, and Xen release info, in our crash dumps.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-14 16:23:43 +01:00
kaf24@firebug.cl.cam.ac.uk 45fb1a8c3f Return real error code from Xen /dev/mem, not EAGAIN.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-13 17:41:23 +01:00
kaf24@firebug.cl.cam.ac.uk 572e48e2b8 Update defconfigs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-13 16:47:04 +01:00
kaf24@firebug.cl.cam.ac.uk c6467b5e5a Fix HVM event handling some more.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-13 15:58:50 +01:00
kaf24@firebug.cl.cam.ac.uk bb2e5ad656 Update x86_32 defconfigs for ISA_DMA_API config change.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-13 14:54:27 +01:00
kaf24@firebug.cl.cam.ac.uk be5d161ba4 Configure ISA_DMA drivers on xen/i386. Otherwise drivers
that also work with PCI devices won't get compiled.
(For example, BusLogic SCSI).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-13 12:45:40 +01:00
kaf24@firebug.cl.cam.ac.uk 55c5cfb9b4 Absolutely must not return to HVM guest context until
synchronous I/O emulation is completed.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-13 12:16:16 +01:00
kaf24@firebug.cl.cam.ac.uk 11a47e4094 Fix error exit path in __gnttab_map_grant_ref() to
put_domain() and hence avoid zombie domains.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2006-02-13 10:23:26 +01:00
kaf24@firebug.cl.cam.ac.uk 434badf2d4 Clean up vmxassist/setup.c. It is no longer necessary to
switch to an alternate page table before entering the
real-mode emulator.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
2006-02-13 10:19:14 +01:00
kaf24@firebug.cl.cam.ac.uk 7e75b05fb4 Rework hvm_wait_io() -- now tries to be a polite user of
event channels by re-setting the selector and master 
pending flags when it exits. Should make for better
behaviour when there are others using the event channels.

This needs some testing to be sure it doesn't break
anything or trigger latent bugs.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-11 13:06:49 +01:00
kaf24@firebug.cl.cam.ac.uk 3735265f4a Avoid misleading message about 'not using swiotlb' on x86/64
domain0. Provide a temporary glue between our swiotlb
implementation and x86/64's dma_ops dynamic dma-mapping
infrastructure.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-10 12:35:19 +01:00
kaf24@firebug.cl.cam.ac.uk 30ed8dac34 Check the hypercall number in the privcmd hypercall ioctl.
We check it is a member of a small set of permitted hypercalls.
Fix libxenstat to not use multicalls (not permitted, and not
need for efficiency in libxenstat).

Based on an original patch by Chris Wright.

Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-02-10 00:16:53 +01:00
kaf24@firebug.cl.cam.ac.uk f1e6a1060a Remove Xen-specific param.h: has only cosmetic change from mainline.
-#define CLOCKS_PER_SEC        (USER_HZ)       /* like times() */
+# define CLOCKS_PER_SEC                (USER_HZ)       /* like times() */

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-02-10 00:00:17 +01:00
kaf24@firebug.cl.cam.ac.uk 8e6719ccc1 pci-nommu-xen.c is identical to its mainline counterpart so remove it.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-02-09 23:15:21 +01:00
kaf24@firebug.cl.cam.ac.uk 337ef6a04c Remove defunct compile option CONFIG_XEN_SHADOW_MODE.
It has been superceded by run-time flag
XENFEAT_auto_translated_physmap.

This patch changes behaviour slightly:
 1. set_pmd/set_pgd/set_pud always use mmu_ops, even when
    XENFEAT_writable_page_tables is available. Unclear whether
    we want to add a test to avoid this.
 2. xen_l1_entry_update always uses mmu_op. Again, could gate
    this on XENFEAT_writable_page_tables.
 3. We always pin/unpin pagetables. Could gate this on a 
    new XENFEAT flag.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-09 20:25:33 +01:00