xen.git
18 years agoAllow vcpu_avail to be specified in the configuration file. Rationalise our
Ewan Mellor [Thu, 18 Jan 2007 17:48:59 +0000 (17:48 +0000)]
Allow vcpu_avail to be specified in the configuration file.  Rationalise our
use of online_vcpus and max_vcpu_id, keeping track of the configured value in
vcpus_number.

Fix HVM SMP configuration to use the XendDomainInfo.getVCpuCount() call that
is used everywhere else, rather than parsing it out of the device config.

Fix xm list to show the configured VCPU count when the VM is down.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix get_config_value fix
Alastair Tse [Thu, 18 Jan 2007 17:24:40 +0000 (17:24 +0000)]
Fix get_config_value fix

Signed-off-by: Alastair Tse <atse@xensource.com>
18 years agoFix get_config_value call.
Ewan Mellor [Thu, 18 Jan 2007 17:01:44 +0000 (17:01 +0000)]
Fix get_config_value call.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years ago[HVM] Save/Restore: don't clobber page types in shadow code
Tim Deegan [Thu, 18 Jan 2007 16:48:12 +0000 (16:48 +0000)]
[HVM] Save/Restore: don't clobber page types in shadow code
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Save/restore: Sometimes the hg changeset is not available.
Tim Deegan [Thu, 18 Jan 2007 16:48:11 +0000 (16:48 +0000)]
[HVM] Save/restore: Sometimes the hg changeset is not available.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Save/Restore: Various structures have changed
Tim Deegan [Thu, 18 Jan 2007 16:48:10 +0000 (16:48 +0000)]
[HVM] Save/Restore: Various structures have changed
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] save restore: shadow fix
Tim Deegan [Thu, 18 Jan 2007 16:48:09 +0000 (16:48 +0000)]
[HVM] save restore: shadow fix

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
fix 2 shadow issues:
* restored guest's mem type_info are not correct
* remove annoying warnings when restore

enable smp:
turn on the vcpu when set_vcpu_context in restore as cpu hotplug is not feasible for HVM

18 years ago[HVM] save restore: guest memory handling
Tim Deegan [Thu, 18 Jan 2007 16:48:08 +0000 (16:48 +0000)]
[HVM] save restore: guest memory handling

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
add support for save/restore HVM guest memory

18 years ago[HVM] save restore: device model support
Tim Deegan [Thu, 18 Jan 2007 16:48:07 +0000 (16:48 +0000)]
[HVM] save restore: device model support

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
qemu's save/restore including vga acceleration support

18 years ago[HVM] save restore: vcpu context support
Steven Hand [Tue, 16 Jan 2007 16:58:16 +0000 (16:58 +0000)]
[HVM] save restore: vcpu context support

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
save/restore HVM vcpu context such as vmcs

18 years ago[HVM] save restore: save restore dev in HV
Tim Deegan [Thu, 18 Jan 2007 16:48:05 +0000 (16:48 +0000)]
[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

18 years ago[HVM] save restore: new hyper-call
Tim Deegan [Thu, 18 Jan 2007 16:48:04 +0000 (16:48 +0000)]
[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

18 years ago[HVM] save restore: frame work
Tim Deegan [Thu, 18 Jan 2007 16:48:03 +0000 (16:48 +0000)]
[HVM] save restore: frame work

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
frame work for HVM save restore in Control Panel

18 years ago[linux config] enable CONFIG_SCSI_SATA_AHCI/CONFIG_BNX2 in dom0 config.
Christian Limpach [Thu, 18 Jan 2007 16:21:08 +0000 (16:21 +0000)]
[linux config] enable CONFIG_SCSI_SATA_AHCI/CONFIG_BNX2 in dom0 config.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[XEND] Change SrvServer to not require sockets to be non-blocking.
Alastair Tse [Thu, 18 Jan 2007 15:52:23 +0000 (15:52 +0000)]
[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>
18 years ago[linux config] enable CONFIG_SCSI_SATA_AHCI in dom0 config.
Christian Limpach [Thu, 18 Jan 2007 15:34:29 +0000 (15:34 +0000)]
[linux config] enable CONFIG_SCSI_SATA_AHCI in dom0 config.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[linux] remove gratuitous differences with plain linux.
Christian Limpach [Thu, 18 Jan 2007 15:33:59 +0000 (15:33 +0000)]
[linux] remove gratuitous differences with plain linux.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoSolaris should used a netback of type 'SUNW_mac' and 'vif-vnic' as the
john.levon@sun.com [Wed, 17 Jan 2007 03:44:09 +0000 (19:44 -0800)]
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>
18 years agoAllow xend configuration via Solaris SMF as well as the config file.
Ewan Mellor [Thu, 18 Jan 2007 15:07:51 +0000 (15:07 +0000)]
Allow xend configuration via Solaris SMF as well as the config file.

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoRename XendRoot to XendOptions.
Ewan Mellor [Thu, 18 Jan 2007 15:03:06 +0000 (15:03 +0000)]
Rename XendRoot to XendOptions.

Signed-off-by: John Levon <john.levon@sun.com>
18 years ago[XEND] Fix order of kernel argument construction to prevent arg repeat bug
Alastair Tse [Thu, 18 Jan 2007 15:04:59 +0000 (15:04 +0000)]
[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>
18 years agoRevert 13389; libfsimage version does not need to change after all.
Tim Deegan [Thu, 18 Jan 2007 09:24:40 +0000 (09:24 +0000)]
Revert 13389; libfsimage version does not need to change after all.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[XEN] Simplify CR3 switching code (remove slow path that allows old
kaf24@localhost.localdomain [Wed, 17 Jan 2007 22:27:56 +0000 (22:27 +0000)]
[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>
18 years ago[XEN] Fix deferred mmu op logic.
kaf24@localhost.localdomain [Wed, 17 Jan 2007 21:07:43 +0000 (21:07 +0000)]
[XEN] Fix deferred mmu op logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoExport XEN_TARGET_ARCH to buildconfig sub-Makefiles even if it is not
kfraser@localhost.localdomain [Wed, 17 Jan 2007 16:42:34 +0000 (16:42 +0000)]
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>
18 years ago[XEN] A few emulator fixes.
kfraser@localhost.localdomain [Wed, 17 Jan 2007 15:41:39 +0000 (15:41 +0000)]
[XEN] A few emulator fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[MINIOS] New make structure to support different architectures.
kfraser@localhost.localdomain [Wed, 17 Jan 2007 15:09:50 +0000 (15:09 +0000)]
[MINIOS] New make structure to support different architectures.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[HVM] i8254: Fix bogus use of current
kfraser@localhost.localdomain [Wed, 17 Jan 2007 15:03:27 +0000 (15:03 +0000)]
[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>
18 years agolinux: Allow microcode updates of smaller than default size.
kfraser@localhost.localdomain [Wed, 17 Jan 2007 14:58:53 +0000 (14:58 +0000)]
linux: Allow microcode updates of smaller than default size.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
18 years agoMicrocode does not need to have the default size of 2000+48 bytes.
kfraser@localhost.localdomain [Wed, 17 Jan 2007 14:57:59 +0000 (14:57 +0000)]
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

18 years ago[XEND] Fix warning about 'cpus' option on domain creation.
kfraser@localhost.localdomain [Wed, 17 Jan 2007 14:54:59 +0000 (14:54 +0000)]
[XEND] Fix warning about 'cpus' option on domain creation.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoAdd scheduler name to 'xm info' output.
kfraser@localhost.localdomain [Wed, 17 Jan 2007 14:54:06 +0000 (14:54 +0000)]
Add scheduler name to 'xm info' output.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agolinux/i386: enhance dump_fault_path() in the highpte case
kfraser@localhost.localdomain [Wed, 17 Jan 2007 14:45:00 +0000 (14:45 +0000)]
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>
18 years ago[XEN] Fix PAE writable-pte fixup to only trigger on writes to upper
kfraser@localhost.localdomain [Wed, 17 Jan 2007 14:37:45 +0000 (14:37 +0000)]
[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>
18 years agoDocument vfb configuration.
kfraser@localhost.localdomain [Wed, 17 Jan 2007 14:03:12 +0000 (14:03 +0000)]
Document vfb configuration.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
18 years ago[XEN] Include byteorder functions from Linux.
kfraser@localhost.localdomain [Wed, 17 Jan 2007 12:11:02 +0000 (12:11 +0000)]
[XEN] Include byteorder functions from Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LIBFSIMAGE] Fix makefile to track version number change
Tim Deegan [Wed, 17 Jan 2007 10:33:13 +0000 (10:33 +0000)]
[LIBFSIMAGE] Fix makefile to track version number change
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoRemove useless fsip_fs_free(). Delegate freeing of private data to its plugin
john.levon@sun.com [Tue, 16 Jan 2007 18:54:20 +0000 (10:54 -0800)]
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>
18 years ago[XEN] Fix early-unshadow detection for 3- or 4-level guest pagetables.
George Dunlap [Tue, 16 Jan 2007 19:04:12 +0000 (14:04 -0500)]
[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.

18 years agoEnable lazy (on-demand) allocation of memory to a guest being restored; this
Steven Hand [Tue, 16 Jan 2007 10:02:50 +0000 (10:02 +0000)]
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>
18 years agoRemove bogus sanity check from xc_linux_save.
Steven Hand [Mon, 15 Jan 2007 18:09:16 +0000 (18:09 +0000)]
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>
18 years agoComment fix.
Steven Hand [Mon, 15 Jan 2007 18:07:32 +0000 (18:07 +0000)]
Comment fix.

Signed-off-by: Steven Hand <steven@xensource.com>
18 years ago[PYGRUB] Make the boot-choice timeout actually time out.
Tim Deegan [Mon, 15 Jan 2007 16:04:32 +0000 (16:04 +0000)]
[PYGRUB] Make the boot-choice timeout actually time out.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Fix calculation of address size in long mode.
kfraser@localhost.localdomain [Mon, 15 Jan 2007 15:58:51 +0000 (15:58 +0000)]
[HVM] Fix calculation of address size in long mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Allow stack-address-size to be specified differently from
kfraser@localhost.localdomain [Mon, 15 Jan 2007 15:43:20 +0000 (15:43 +0000)]
[XEN] Allow stack-address-size to be specified differently from
regular address-size in the emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] BSF/BSR set ZF not CF.
kfraser@localhost.localdomain [Mon, 15 Jan 2007 14:32:25 +0000 (14:32 +0000)]
[XEN] BSF/BSR set ZF not CF.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[MINIOS] Clean up final link stage of the build.
kaf24@firebug.cl.cam.ac.uk [Mon, 15 Jan 2007 12:25:04 +0000 (12:25 +0000)]
[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>
18 years agoFix clean build after cset 13345:648e58e31c26
Steven Hand [Mon, 15 Jan 2007 10:53:06 +0000 (10:53 +0000)]
Fix clean build after cset 13345:648e58e31c26

Signed-off-by: Steven Hand <steven@xensource.com>
18 years ago[XEN] Emulate BSF/BSR. Fix ARPL emulation.
kaf24@localhost.localdomain [Sun, 14 Jan 2007 17:22:24 +0000 (17:22 +0000)]
[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>
18 years ago[XEN] Emulate AMD-defined two-byte NOP opcodes with ModRM.
kaf24@localhost.localdomain [Sun, 14 Jan 2007 16:12:42 +0000 (16:12 +0000)]
[XEN] Emulate AMD-defined two-byte NOP opcodes with ModRM.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Emulate PUSHA/POPA/ARPL/BOUND.
kaf24@localhost.localdomain [Sun, 14 Jan 2007 16:00:19 +0000 (16:00 +0000)]
[XEN] Emulate PUSHA/POPA/ARPL/BOUND.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Fix some e820 start-of-day issues by clipping all E820_RAM
kaf24@localhost.localdomain [Sun, 14 Jan 2007 13:15:13 +0000 (13:15 +0000)]
[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>
18 years ago[XEN] Emulate MUL/DIV. Tweak test suite build.
kaf24@localhost.localdomain [Sun, 14 Jan 2007 12:03:31 +0000 (12:03 +0000)]
[XEN] Emulate MUL/DIV. Tweak test suite build.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[TESTS] Fix native jump to 1MB absolute address in emulator test.
kaf24@localhost.localdomain [Sat, 13 Jan 2007 21:36:31 +0000 (21:36 +0000)]
[TESTS] Fix native jump to 1MB absolute address in emulator test.
Fix typo in emulator comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Clean up long division code, fix for C99-mandated
kaf24@localhost.localdomain [Sat, 13 Jan 2007 20:55:39 +0000 (20:55 +0000)]
[XEN] Clean up long division code, fix for C99-mandated
truncation-towards-zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] 'd' key dumps both host and guest state.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 17:39:26 +0000 (17:39 +0000)]
[XEN] 'd' key dumps both host and guest state.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoExtend emulator testing.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 17:16:45 +0000 (17:16 +0000)]
Extend emulator testing.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[PATCH] kexec/kdump: allow zero start for crashkernel
Ian Campbell [Fri, 12 Jan 2007 16:03:33 +0000 (16:03 +0000)]
[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>
18 years agolinux: Add trivial forwarding of dma_{,un}map_page when not using highmem
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:35:52 +0000 (15:35 +0000)]
linux: Add trivial forwarding of dma_{,un}map_page when not using highmem

Use non-trivial dma_{un,}map_page only when CONFIG_HIGHMEM, allowing
to not compile swiotlb_{un,}map_page in that case, which in neither
case need exporting.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agolinux: Reduce restrictions on address width for DMA operations
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:34:30 +0000 (15:34 +0000)]
linux: Reduce restrictions on address width for DMA operations

Use address width needed by device rather than dma_bits in
dma_alloc_coherent().
Probe supported address width in swiotlb initialization.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[MINIOS] Update __XEN_INTERFACE_VERSION__
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:27:09 +0000 (15:27 +0000)]
[MINIOS] Update __XEN_INTERFACE_VERSION__
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LINUX] ipv6: Disable addrconf on Xen bridge device
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:23:07 +0000 (15:23 +0000)]
[LINUX] ipv6: Disable addrconf on Xen bridge device

The ipv6-no-autoconf patch didn't disable IPv6 addrconf completely.
This means that the Xen bridge device still interfered with normal
IPv6 operation by engaging the IPv6 network with a bogus MAC address.

For details please refer to
        https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=200360

The following patch completely disables IPv6 on the Xen bridge device
by temporarily setting the MTU to a value less than the minimum
allowed for IPv6.

Upstream will provide a cleaner way to disable IPv6 addrconf in
future, possibly in the form of a proc sysctl.  Of course if the Xen
loopback device is removed it would render this change unnecessary.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years agomerge
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:19:23 +0000 (15:19 +0000)]
merge

18 years ago[MINIOS] Implement a network frontend driver.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:18:24 +0000 (15:18 +0000)]
[MINIOS] Implement a network frontend driver.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years ago[MINIOS] Fix grant-entry freelist maintenance.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:16:05 +0000 (15:16 +0000)]
[MINIOS] Fix grant-entry freelist maintenance.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years ago[MINIOS] Support xenbus watches.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:15:25 +0000 (15:15 +0000)]
[MINIOS] Support xenbus watches.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years agoMake get-fields.sh really get run by bash rather than default /bin/sh.
Alastair Tse [Fri, 12 Jan 2007 14:53:13 +0000 (14:53 +0000)]
Make get-fields.sh really get run by bash rather than default /bin/sh.

Also fix some bashisms in the script.

Signed-off-by: Alastair Tse <atse@xensource.com>
18 years agoFix xencomm_copy_{from, to}_guest.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:51:27 +0000 (14:51 +0000)]
Fix xencomm_copy_{from, to}_guest.
It should not call paddr_to_maddr() with invalid address.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years ago[IA64]: noreturn cannot be used if function may return
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:50:01 +0000 (14:50 +0000)]
[IA64]: noreturn cannot be used if function may return

The functions die_if_kernel and vmx_die_if_kernel can certainly
return.  This disqualifies them from using the noreturn keyword
which is reserved for functions that never return.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years agox86/PAE linux: don't restrict upper half of page table entries to 3 bits
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:48:06 +0000 (14:48 +0000)]
x86/PAE linux: don't restrict upper half of page table entries to 3 bits
when dumping the page table contents during an oops.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoFix trivial bug in xentop main loop.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:46:21 +0000 (14:46 +0000)]
Fix trivial bug in xentop main loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdd vfb config examples.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:43:50 +0000 (14:43 +0000)]
Add vfb config examples.
From: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoParse Solaris VTOCs in pygrub.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:42:07 +0000 (14:42 +0000)]
Parse Solaris VTOCs in pygrub.

Signed-off-by: John Levon <john.levon@sun.com>
18 years ago[PV-on-HVM] Allow platform interrupt to be used for entropy.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:40:13 +0000 (14:40 +0000)]
[PV-on-HVM] Allow platform interrupt to be used for entropy.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agox86: properly handle LOCK prefix in privileged PV opcode emulation
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:38:30 +0000 (14:38 +0000)]
x86: properly handle LOCK prefix in privileged PV opcode emulation

- include LOCK prefix presence in calculation of which CR/DR is being
  targeted by moves to/from these registers
- fail any other opcodes when beingused with lock prefix

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoFix xc_ptrace() for PAE.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:33:36 +0000 (14:33 +0000)]
Fix xc_ptrace() for PAE.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoFix udev check.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:32:41 +0000 (14:32 +0000)]
Fix udev check.

Quiesce 'which' invocation, and allow expanding variables in error
message.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[XEN] Fix guest-access macros.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 14:22:28 +0000 (14:22 +0000)]
[XEN] Fix guest-access macros.
From: Christoph Egger <Christoph.Egger@amd.com>

18 years ago[XEN] Default to 80x50 VGA text console.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:48:46 +0000 (10:48 +0000)]
[XEN] Default to 80x50 VGA text console.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LINUX] swiotlb: eliminate KM_SWIOTLB and thus the need for a Xen-specific kmap_types.h.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:31:16 +0000 (10:31 +0000)]
[LINUX] swiotlb: eliminate KM_SWIOTLB and thus the need for a Xen-specific kmap_types.h.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agolinux/i386: allow CONFIG_HIGHPTE on i386
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:28:54 +0000 (10:28 +0000)]
linux/i386: allow CONFIG_HIGHPTE on i386

While, as discussed, the performance impact of this option is
certainly higher than on native Linux, the option should not be
entirely disallowed if people want to sacrifice performance for less
lowmem pressure.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[LINUX] x86/64: Sync pagetable management with i386 Xen code.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:22:36 +0000 (10:22 +0000)]
[LINUX] x86/64: Sync pagetable management with i386 Xen code.

PUDs,PMDs,PTEs are all marked as ForeignPage so that they can be
grabbed from tlb_remove_page() at the appropriate time and freed in a
special way.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[XEN] Consistent assumption that PTEs contain MFNs in both ptwr
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:13:25 +0000 (10:13 +0000)]
[XEN] Consistent assumption that PTEs contain MFNs in both ptwr
page-fault handler and ptwr emulation handler.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Replace mfn_to_page(lXe_get_pfn()) by lXe_get_page().
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:10:28 +0000 (10:10 +0000)]
[XEN] Replace mfn_to_page(lXe_get_pfn()) by lXe_get_page().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[HVM] Fix timer interrupt delivery on x64 Vista.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 10:08:38 +0000 (10:08 +0000)]
[HVM] Fix timer interrupt delivery on x64 Vista.

x64 SMP Vista HVM guest uses HPET as the main system timer, and it
uses physical destination mode with broadcast to deliver the interrupts
generated by HPET. In current code, timer interrupts are injected only
to VCPU0 in vioapic.c, but this doesn't satisfy x64 SMP Vista -- when
it boots, it complains "a clock interrupt was not received on a
secondary processor within the allocated time interval" with Bug Check
0x101.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
18 years ago[XEN] Add LOOP{,Z,NZ} and CBW/CWD/... emulation.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 19:01:28 +0000 (19:01 +0000)]
[XEN] Add LOOP{,Z,NZ} and CBW/CWD/... emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoThis patch does the following:
Ewan Mellor [Thu, 11 Jan 2007 19:00:35 +0000 (19:00 +0000)]
This patch does the following:

- renames the XenManagedDomain.py file to XenAPIDomain.py, since this
name better reflects its functionality/purpose
- adds domain tracking to the XenAPIDomain class so that xend-managed
domains can be deleted in an 'atexit' handler upon test case termination
- adds one basic xapi-related test which is part of the grouptests
'xapi'
- refactors the vtpm-related test using xen-api and adds it to the
grouptest 'xapi'
- adds documentation to the README for how to configure xm and xend to
use XML-RPC or Xen-API for communication

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoI added a parameter '-md' to 'runtest.sh' for running the xm test suite
Ewan Mellor [Thu, 11 Jan 2007 18:56:59 +0000 (18:56 +0000)]
I added a parameter '-md' to 'runtest.sh' for running the xm test suite
in a mode where all created domains a created as xend-managed domains.

This patch also fixes a problem related to calling 'xm domid' on a
currently suspended domain if that domain is a managed domain. In that
case a 'None' is returned by Xend, which I default to '-1'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoSource a file called 'vtpm-impl.alt' if it exists.
Ewan Mellor [Thu, 11 Jan 2007 18:55:18 +0000 (18:55 +0000)]
Source a file called 'vtpm-impl.alt' if it exists.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoThis fixes the xen-api documentation latex-compilation.
Ewan Mellor [Thu, 11 Jan 2007 18:54:09 +0000 (18:54 +0000)]
This fixes the xen-api documentation latex-compilation.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years ago[XEN] Fix/implement JMP/CALL/RET emulation.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 17:47:13 +0000 (17:47 +0000)]
[XEN] Fix/implement JMP/CALL/RET emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEND] Device update should handle SXP without 'device' as first
Alastair Tse [Thu, 11 Jan 2007 17:03:11 +0000 (17:03 +0000)]
[XEND] Device update should handle SXP without 'device' as first
param.

Signed-off-by: Alastair Tse <atse@xensource.com>
18 years ago[XEND] Fix broken block-configure.
Alastair Tse [Thu, 11 Jan 2007 16:36:46 +0000 (16:36 +0000)]
[XEND] Fix broken block-configure.

Signed-off-by: Alastair Tse <atse@xensource.com>
18 years ago[XEN] Use local var instead of current->domain in two places.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 15:50:28 +0000 (15:50 +0000)]
[XEN] Use local var instead of current->domain in two places.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[HVM][VMX] Some simplifications, particularly to vmx_load/save_cpu_regs.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 15:43:38 +0000 (15:43 +0000)]
[HVM][VMX] Some simplifications, particularly to vmx_load/save_cpu_regs.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] More emulator fixes and emulate BSWAP.
kfraser@localhost.localdomain [Thu, 11 Jan 2007 11:41:44 +0000 (11:41 +0000)]
[XEN] More emulator fixes and emulate BSWAP.
Better handling of LOCK prefix.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Update comments in elfnote.h interface header.
Ian Campbell [Thu, 11 Jan 2007 10:36:41 +0000 (10:36 +0000)]
[XEN] Update comments in elfnote.h interface header.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoUse strstr() to look for "bimodal" string in ELF notes, to allow guests to use
john.levon@sun.com [Mon, 8 Jan 2007 20:54:41 +0000 (12:54 -0800)]
Use strstr() to look for "bimodal" string in ELF notes, to allow guests to use
"yes,bimodal", so they are correctly identified as PAE on older hypervisors.

Signed-off-by: John Levon <john.levon@sun.com>
18 years ago[XEN] More emulator fixes:
kfraser@localhost.localdomain [Thu, 11 Jan 2007 10:10:16 +0000 (10:10 +0000)]
[XEN] More emulator fixes:
 1. Emulate LAHF/SAHF instructions
 2. #GP if instruction is longer than 15 bytes
 3. Accept any number of prefix bytes (up to
    15-byte total instruction length)
 4. Repeated addr/data-size overrides are sticky
    rather than toggling.

2,3,4 are based on a patch from Jan Beulich.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[HVM] Allow a dom to have nonsense m2p entries when building the p2m
Tim Deegan [Thu, 11 Jan 2007 10:08:14 +0000 (10:08 +0000)]
[HVM] Allow a dom to have nonsense m2p entries when building the p2m
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>