Commit Graph
13418 Commits
Author SHA1 Message Date
Tim Deegan 9a3e4bbea4 [HVM] save restore: device model support
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>

qemu's save/restore including vga acceleration support
2007-01-18 16:48:07 +00:00
Steven Hand 9e19e45e05 [HVM] save restore: vcpu context support
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>

save/restore HVM vcpu context such as vmcs
2007-01-16 16:58:16 +00:00
Tim Deegan 8fc1da06ae [HVM] save restore: save restore dev in HV
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>

save/restore all dev state in HV such as PIT/PIC/APIC
2007-01-18 16:48:05 +00:00
Tim Deegan 294b0bdd8b [HVM] save restore: new hyper-call
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>

add a pair of hyper-call for hvm guest context
2007-01-18 16:48:04 +00:00
Tim Deegan 4a13cf1b70 [HVM] save restore: frame work
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>

frame work for HVM save restore in Control Panel
2007-01-18 16:48:03 +00:00
Christian Limpach ccace2b704 [linux config] enable CONFIG_SCSI_SATA_AHCI/CONFIG_BNX2 in dom0 config.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-01-18 16:21:08 +00:00
Alastair Tse 53a668c52d [XEND] Change SrvServer to not require sockets to be non-blocking.
Set all spawned server threads to be daemonic and make sure their
sockets are closed properly using shutdown() and close(), otherwise
reload will complain about the "Address still in use."

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-18 15:52:23 +00:00
Christian Limpach 7ccf58133f [linux config] enable CONFIG_SCSI_SATA_AHCI in dom0 config.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-01-18 15:34:29 +00:00
Christian Limpach 9cc42dd899 [linux] remove gratuitous differences with plain linux.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-01-18 15:33:59 +00:00
john.levon@sun.com d5ff71aae1 Solaris should used a netback of type 'SUNW_mac' and 'vif-vnic' as the
vif-script by default.

Signed-off-by: David Edmondson <dme@sun.com>
2007-01-16 19:44:09 -08:00
Ewan Mellor 674fb7f63e Allow xend configuration via Solaris SMF as well as the config file.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-18 15:07:51 +00:00
Ewan Mellor 2dd9828c75 Rename XendRoot to XendOptions.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-18 15:03:06 +00:00
Alastair Tse 292c6bcd6a [XEND] Fix order of kernel argument construction to prevent arg repeat bug
Make sure user specified kernel args are appended at the end but also
make sure that we do not duplicate root= and ip=.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-18 15:04:59 +00:00
Tim Deegan 71c1836f5c Revert 13389; libfsimage version does not need to change after all.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-18 09:24:40 +00:00
kaf24@localhost.localdomain 0f120a302a [XEN] Simplify CR3 switching code (remove slow path that allows old
page tables to be writable in new page tables -- shadow mode cannot
handle the failure case and it is easy to work around this in the
guest anyway). Also remove broken shadow-refcount compat-mode case.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-17 22:27:56 +00:00
kaf24@localhost.localdomain ec04b4ec84 [XEN] Fix deferred mmu op logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-17 21:07:43 +00:00
kfraser@localhost.localdomain 9d15d8d54a Export XEN_TARGET_ARCH to buildconfig sub-Makefiles even if it is not
specified on the command line.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-17 16:42:34 +00:00
kfraser@localhost.localdomain cc1ecba9d6 [XEN] A few emulator fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-17 15:41:39 +00:00
kfraser@localhost.localdomain f515c2cf95 [MINIOS] New make structure to support different architectures.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2007-01-17 15:09:50 +00:00
kfraser@localhost.localdomain 4ff20a3034 [HVM] i8254: Fix bogus use of current
The function pit_load_count incorrectly references current for
determining whether the channel number is zero.  This breaks
when starting a new guest because current points to dom0.

The fix is to explicitly pass the address for verification.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2007-01-17 15:03:27 +00:00
kfraser@localhost.localdomain bba72b94d7 linux: Allow microcode updates of smaller than default size.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
2007-01-17 14:58:53 +00:00
kfraser@localhost.localdomain 1468aea900 Microcode does not need to have the default size of 2000+48 bytes.
A corresponding patch has gone into Linux 2.6.19; this is the
port to Xen.

Signed-off-by: Kurt Garloff <kurt@garloff.de>

Reference: Patch to linux kernel from Sep 27 2006
> # User Shaohua Li <shaohua.li@intel.com>
> # Node ID 45898b908138b5d93c2cc7353f061ce54af145dc
> # Parent  f962eab7b82c9bf1a6da69571046e764f5128395
> [PATCH] x86 microcode: don't check the size
>
> IA32 manual says if micorcode update's size is 0, then the size is
> default size (2048 bytes). But this doesn't suggest all microcode
> update's size should be above 2048 bytes to me. We actually had a
> microcode update whose size is 1024 bytes. The patch just removed
> the check.
>
> Signed-off-by: Shaohua Li <shaohua.li@intel.com>
> Cc: Tigran Aivazian <tigran@veritas.com>
> Signed-off-by: Andrew Morton <akpm@osdl.org>
> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
>
> committer: Linus Torvalds <torvalds@g5.osdl.org> 1159370778 -0700
2007-01-17 14:57:59 +00:00
kfraser@localhost.localdomain 727e8b4154 [XEND] Fix warning about 'cpus' option on domain creation.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-01-17 14:54:59 +00:00
kfraser@localhost.localdomain edf5361fb2 Add scheduler name to 'xm info' output.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-01-17 14:54:06 +00:00
kfraser@localhost.localdomain f8871496b9 linux/i386: enhance dump_fault_path() in the highpte case
As long as the pte page isn't really located in highmem, there is no
reason to not access it, in order to print the complete page table
hierarchy. A functionally similar patch will go to lkml for native
Linux.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-17 14:45:00 +00:00
kfraser@localhost.localdomain 7aad705cb5 [XEN] Fix PAE writable-pte fixup to only trigger on writes to upper
half the the PAE PTE.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-17 14:37:45 +00:00
kfraser@localhost.localdomain 671248b38b Document vfb configuration.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2007-01-17 14:03:12 +00:00
kfraser@localhost.localdomain 201c511f5a [XEN] Include byteorder functions from Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-17 12:11:02 +00:00
Tim Deegan d74f5aa063 [LIBFSIMAGE] Fix makefile to track version number change
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-17 10:33:13 +00:00
john.levon@sun.com 96002a7e9b Remove useless fsip_fs_free(). Delegate freeing of private data to its plugin
users. Miscellaneous tidy.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-16 10:54:20 -08:00
George Dunlap a086d29d0e [XEN] Fix early-unshadow detection for 3- or 4-level guest pagetables.
Early-unshadow will unshadow whenever 2 zero values are written
to the same page; for PAE, one PTE takes 2 writes.  Only check
for the early unshadow when writing the low half of the PTE.
2007-01-16 14:04:12 -05:00
Steven Hand 236c16423b Enable lazy (on-demand) allocation of memory to a guest being restored; this
means that ballooned down domains only require as much memory as is currently
being used (rather than their max) when being restored from save, or when
being migrated.

Signed-off-by: Steven Hand <steven@xensource.com>
2007-01-16 10:02:50 +00:00
Steven Hand c5d238206d Remove bogus sanity check from xc_linux_save.
(a guest from another host (or an earlier time) can quite validly have
a max_mfn bigger the current max on this host)

Signed-off-by: Steven Hand <steven@xensource.com>
2007-01-15 18:09:16 +00:00
Steven Hand 8d6fcabc22 Comment fix.
Signed-off-by: Steven Hand <steven@xensource.com>
2007-01-15 18:07:32 +00:00
Tim Deegan d50a0b66da [PYGRUB] Make the boot-choice timeout actually time out.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-15 16:04:32 +00:00
kfraser@localhost.localdomain 6127793b4c [HVM] Fix calculation of address size in long mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-15 15:58:51 +00:00
kfraser@localhost.localdomain 12d473893b [XEN] Allow stack-address-size to be specified differently from
regular address-size in the emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-15 15:43:20 +00:00
kfraser@localhost.localdomain 2f5ff9b862 [XEN] BSF/BSR set ZF not CF.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-15 14:32:25 +00:00
kaf24@firebug.cl.cam.ac.uk f28756a627 [MINIOS] Clean up final link stage of the build.
Allow extra application objects to be linked against a partial link of
minios with non-global names localised. For now we assume that global
names ill be assigned a xenos_ prefix in due course. We may decide to
choose a different prefix.

Those who wish to finish the link from an external Makefile can link
their own objects against mini-os.o (which must be first in link
order!) and specify the appropriate architecture linker script.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-15 12:25:04 +00:00
Steven Hand 29bbe50b23 Fix clean build after cset 13345:648e58e31c26
Signed-off-by: Steven Hand <steven@xensource.com>
2007-01-15 10:53:06 +00:00
kaf24@localhost.localdomain 0ea0df3d71 [XEN] Emulate BSF/BSR. Fix ARPL emulation.
Fix building POPA emulation on x86/32.
Fix asm constraints for in-memory operands.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-14 17:22:24 +00:00
kaf24@localhost.localdomain f06bcbb8cc [XEN] Emulate AMD-defined two-byte NOP opcodes with ModRM.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-14 16:12:42 +00:00
kaf24@localhost.localdomain fd6e8e8c3f [XEN] Emulate PUSHA/POPA/ARPL/BOUND.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-14 16:00:19 +00:00
kaf24@localhost.localdomain 99836a8c3b [XEN] Fix some e820 start-of-day issues by clipping all E820_RAM
regions to be page-sized and -aligned.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-14 13:15:13 +00:00
kaf24@localhost.localdomain 6d675a4ad8 [XEN] Emulate MUL/DIV. Tweak test suite build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-14 12:03:31 +00:00
kaf24@localhost.localdomain ab5c6b8f11 [TESTS] Fix native jump to 1MB absolute address in emulator test.
Fix typo in emulator comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-13 21:36:31 +00:00
kaf24@localhost.localdomain 113bac3007 [XEN] Clean up long division code, fix for C99-mandated
truncation-towards-zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-13 20:55:39 +00:00
kfraser@localhost.localdomain a4cd20a190 [XEN] 'd' key dumps both host and guest state.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 17:39:26 +00:00
kfraser@localhost.localdomain c69ab9d431 Extend emulator testing.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 17:16:45 +00:00
Ian Campbell c59635dc0f [PATCH] kexec/kdump: allow zero start for crashkernel
Some architectures, notably ia64, can automatically place
the crash kernel into an appropriate place if the start
address for crashkernel is specified as zero or omitted.

E.g. crashkernel=256M or crashkernel=256M@0

While xen does not actually have support for ia64 kexec,
I am working on it. And in any case this change should be harmless.
Just a small bit of infastructure that will make things easier in the
future.

This should also be possible on x86, now relocatable kernels
are reloacatble on x86. So once xen moves up to using linux ~2.6.19
it would make sense to look into implementing this.

The patch does 3 things.

* Firstly, parse_crashkernel() is modified to allows the size and start elements of kexec_crash_area
  to be set to any value, including zero. Previously if either size or
  start were specified as zero, they would both end up as zero.

* Secondly, when kexec_get() is called, if either the size or start
  elements of kexec_crash_area are zero, then zero is passed
  back to the hypercall caller for both values.

  This gives the same behaviour as having parse_crashkernel() set
  size and start to zero if either of them are zero, but it allows
  architecture sepcific code called between the invocation of
  parse_crashkernel() and kexec_get() to modify start (and size if
  there was a reason). In particular, this allows the
  architecture specific code to find a good start point if 0 is
  specified.

* Lastly, it ads an additional check to the x86 setup code.
  As this code currently does not know how to deal with a
  0 start address, it doesn't reserve memory if start is 0.

  This is neccessary as previously if start was specified as zero,
  parse_crashkernel() would set size to zero, but that is
  no longer the case, so a stronger check is needed.

I would really appreciate it if this patch was merged,
as I don't believe it harms anything, and it does allow
a nice path for moving forwards.

Signed-off-by: Simon Horman <horms@verge.net.au>
2007-01-12 16:03:33 +00:00