Christian Limpach [Thu, 18 Jan 2007 18:40:30 +0000 (18:40 +0000)]
[linux networking] Remove the code to allocate page sized skbs.
This is no longer used much since the default is to always copy packets
to guests.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
kfraser@localhost.localdomain [Thu, 18 Jan 2007 18:39:07 +0000 (18:39 +0000)]
Build PAE by default on x86_32.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 18 Jan 2007 18:25:04 +0000 (18:25 +0000)]
Merge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Thu, 18 Jan 2007 18:19:52 +0000 (18:19 +0000)]
Copy vmlinuz to correct folder when make source on IA64 platform.
Signed-off-by: Yongkang You <yongkang.you@intel.com>
Christian Limpach [Thu, 18 Jan 2007 18:09:07 +0000 (18:09 +0000)]
[ioemu] fix build - prototype for static function needs to be static.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
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>
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>
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>
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>
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>
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>
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
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
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
awilliam@xenbuild2.aw [Thu, 18 Jan 2007 04:45:34 +0000 (21:45 -0700)]
[IA64] Remove duplicate typedefs
These are now defined in xen/include/xen/types.h
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild2.aw [Thu, 18 Jan 2007 04:31:22 +0000 (21:31 -0700)]
merge with xen-unstable.hg
awilliam@xenbuild2.aw [Thu, 18 Jan 2007 02:55:48 +0000 (19:55 -0700)]
[IA64] Passing address of PSCB is not needed
Since the address of PSCB is decided by xenolinux now,
passing address of PSCB to xenolinux is not needed.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild2.aw [Thu, 18 Jan 2007 02:51:40 +0000 (19:51 -0700)]
[IA64] Remove duplicate check is_running_on_xen
When these functions are called, it is running on XEN.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild2.aw [Thu, 18 Jan 2007 02:48:02 +0000 (19:48 -0700)]
[IA64] Let Xen handle identity mapping for xenolinux region 7
During kernel build in dom0, half of the resulting slow reflections
are alt DTLB misses. Since we know Linux identity maps region 7,
Xen can handle the miss itself. This reduces the system time component
of the kernel build by nearly 15%.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
awilliam@xenbuild2.aw [Tue, 16 Jan 2007 19:01:03 +0000 (12:01 -0700)]
[IA64] Paravirtualize syscall path in file fsys.S
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
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>
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.
awilliam@xenbuild2.aw [Tue, 16 Jan 2007 18:51:45 +0000 (11:51 -0700)]
[IA64] Add fsys.S to sparse tree
From 2.6.16.33
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild2.aw [Tue, 16 Jan 2007 18:48:43 +0000 (11:48 -0700)]
[IA64] Remove dorfirfi completely
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild2.aw [Tue, 16 Jan 2007 18:22:44 +0000 (11:22 -0700)]
[IA64] Add privilege check back for hypercall
hypercall is allowed when cpl=2
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild2.aw [Tue, 16 Jan 2007 17:40:37 +0000 (10:40 -0700)]
[IA64] Change vCPU initialization to avoid domVTi privregs memory leak
1) This patch moved some processing from vcpu_initialise() and
added a new function vcpu_late_initialise().
It executes the following initializations for VCPU of
dom0/domU.
- Allocate the VHPT
- Allocate the privregs area and assign these pages into
guest pseudo physical address space.
- Set the tlbflush_timestamp.
It is executed in the following sequence.
dom0:
start_kernel()
->domain_create()
->alloc_vcpu(VCPU0)
->alloc_vcpu_struct(VCPU0)
->vcpu_initialise(VCPU0)
->vcpu_late_initialise(VCPU0)
->construct_dom0
->alloc_vcpu(othe VCPUs)
->alloc_vcpu_struct(other VCPUs)
->vcpu_initialise(other VCPUs)
ia64_hypercall(FW_HYPERCALL_IPI)
->fw_hypercall_ipi(XEN_SAL_BOOT_RENDEZ_VEC)
->arch_set_info_guest(other VCPUs)
->vcpu_late_initialise(other VCPUs)
domU:
do_domctl(XEN_DOMCTL_createdomain)
->domain_create()
do_domctl(XEN_DOMCTL_max_vcpus)
->alloc_vcpu(all VCPUs)
->alloc_vcpu_struct(all VCPUs)
->vcpu_initialise(all VCPUs)
do_domctl(XEN_DOMCTL_setvcpucontext)
->set_info_guest(VCPU0)
->arch_set_info_guest(VCPU0)
->vcpu_late_initialise(VCPU0)
ia64_hypercall(FW_HYPERCALL_IPI)
->fw_hypercall_ipi(XEN_SAL_BOOT_RENDEZ_VEC)
->arch_set_info_guest(other VCPUs)
->vcpu_late_initialise(other VCPUs)
2) This patch modified the domain_set_shared_info_va().
Currently, initialization of arch.privregs->interrupt_mask_addr
of all VCPUs is executed in domain_set_shared_info_va().
However, allocation of privregs area is late by modified of 1).
Therefore, this patch modified initialization of
arch.privregs->interrupt_mask_addr to the following sequence.
dom0 and domU:
ia64_hypercall(FW_HYPERCALL_SET_SHARED_INFO_VA)
->domain_set_shared_info_va()
Initialize interrupt_mask_addr of VCPU0
ia64_hypercall(FW_HYPERCALL_IPI)
->fw_hypercall_ipi(XEN_SAL_BOOT_RENDEZ_VEC)
->arch_set_info_guest(other VCPUs)
->vcpu_late_initialise(other VCPUs)
Initialize interrupt_mask_addr of other VCPUs
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
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
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
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
awilliam@xenbuild2.aw [Mon, 15 Jan 2007 22:15:26 +0000 (15:15 -0700)]
merge with xen-unstable.hg
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>
Steven Hand [Mon, 15 Jan 2007 18:07:32 +0000 (18:07 +0000)]
Comment fix.
Signed-off-by: Steven Hand <steven@xensource.com>
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>
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>
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>
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>
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>
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>
awilliam@xenbuild2.aw [Mon, 15 Jan 2007 05:18:38 +0000 (22:18 -0700)]
[IA64] Fix save/restore
Using the new hypercall path, scratch registers are not saved/restored.
So after returning from hypercall, r20 may contain garbage data.
This triggered General Exception.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild2.aw [Sun, 14 Jan 2007 21:58:51 +0000 (14:58 -0700)]
[IA64] Fix multicall hypercall
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
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>
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>
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>
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>
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>
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>
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>
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 20:01:25 +0000 (13:01 -0700)]
[IA64] Implement hyper_get_psr
Mov from psr is used frequently by xeno.
Signed-of-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 19:56:20 +0000 (12:56 -0700)]
[IA64] Fix xencomm_arch_hypercall_suspend
This hypercall is changed to new hypercall mechanism
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 19:11:11 +0000 (12:11 -0700)]
[IA64] Simplify lazy cover algorithm
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
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>
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>
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>
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>
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>
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>
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>
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:19:23 +0000 (15:19 +0000)]
merge
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>