Commit Graph
9881 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 88bf514b5b Allow for arch specific virq definitions.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-04-28 14:27:38 +01:00
kaf24@firebug.cl.cam.ac.uk 87ffe80ef7 This patch fixes the buildroot for the xm-test ramdisk. The buildroot xm-test
was getting is no longer there, they've pruned the snapshots. This patch
adds a new buildroot and updates the buildroot configuration. I also 
incremented the xm-test release version to 0.8.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-04-28 14:13:56 +01:00
kaf24@firebug.cl.cam.ac.uk c57010da2d Instead of relying on xm create to always run the bootloader, make sure
we run it if we get into domain creation with a bootloader set but no
image.  This could happen if someone creates a domain config via the
XML-RPC or sxp interfaces.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-04-28 14:11:57 +01:00
kaf24@firebug.cl.cam.ac.uk 7c059c05f5 The features for a domain are more a property of the domain than the
image.  Move them into the domain info so that the image is just the
pieces needed for booting (eg, kernel + initrd + args)

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-04-28 14:10:59 +01:00
kaf24@firebug.cl.cam.ac.uk dd8d11c33b The bootloader code doesn't actually have to deal with the vcpu config
anymore as that's just in the domaininfo.  So stop doing so.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-04-28 14:09:35 +01:00
kaf24@firebug.cl.cam.ac.uk 0ff716c0b3 When building with FORTIFY_SOURCE to ensure that return codes of common
functions are checked to avoid some bugs, a few warnings pop up and
become errors due to -Werror.  Attached checks the return codes
(or at least stores them to a dummy variable).

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-04-28 14:08:40 +01:00
kaf24@firebug.cl.cam.ac.uk 54b4ddf0d1 Rename {SG}ET_XEN_GUEST_HANDLE to {sg}et_Xen_guest_handle, as they
are function macros rather than define/declare macros.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-28 09:40:07 +01:00
kaf24@firebug.cl.cam.ac.uk 37f486b06e Relax BUG_ON() state ment in increase_reservation() in balloon.c.
When xen_feature(XENFEAT_auto_translated_physmap) = 1,
phys_to_machine_mapping_valid(pfn) always returns true.
Relaxed BUG_ON() for xen_feature(XENFEAT_auto_translated_physmap) = 1 case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-28 08:30:52 +01:00
kaf24@firebug.cl.cam.ac.uk d6f69f0e01 Fix memory_op hypercall mlock/munlock wrapping after the
GET/SET_XEN_GUEST_HANDLE patch.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-27 19:19:59 +01:00
kaf24@firebug.cl.cam.ac.uk dc38d274fe Add BUILD_BUG_ON() and a handful of users.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-04-27 15:55:09 +01:00
kaf24@firebug.cl.cam.ac.uk bbe9b1dc6c Add bounds check to get_mfn_from_gpfn().
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-27 14:13:42 +01:00
kaf24@firebug.cl.cam.ac.uk 12f59b30ed Define __XEN_TOOLS__ when building tools. Use this to
automatically build against latest Xen interface version,
and to specifically define GET_XEN_GUEST_HANDLE().

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-27 14:06:41 +01:00
kaf24@firebug.cl.cam.ac.uk 02842d8a2b Bump Xen interface version number to 0x00030201 for new
structural guest handles.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-27 14:03:22 +01:00
kaf24@firebug.cl.cam.ac.uk 704e9ade0f Wrap all GUEST_HANDLEs in structures, and define SET/GET macros to access them
in Linux and libxc.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-04-27 13:58:50 +01:00
kaf24@firebug.cl.cam.ac.uk 1c230079f3 Rename *GUEST_HANDLE to *XEN_GUEST_HANDLE.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-04-27 13:38:21 +01:00
kaf24@firebug.cl.cam.ac.uk 44d7cc5f5d Occasionally large smp machines fail to reboot properly and die under
an IPI storm of smp_call_function() to machine_reboot.  Only the boot
processor needs to run machine_restart, so send an IPI to CPU0.

Original patch by: Ryan Harper <ryanh@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-27 09:56:21 +01:00
kaf24@firebug.cl.cam.ac.uk 4025e86c1a This patch adds the ability to have restricted write access to some
of the structures on the capability list. Specifically, this patch adds
support for reading data through the Vital Product Data capability
structure and for manipulating power management of a card. A driver
domain is not allowed to enable Power Management Events (the PME trace
may be shared across devices in many domains), but it can put a device
in its control to sleep or query it for power usage statistics. This
code could possibly be expanded in the future to add support for AGP,
PCI-X, and MSI/MSIX (all of which are controlled through structures on
the capability list).

This patch also corrects some formatting issues in the PCI backend and
adds some comments to the code regarding permissive mode.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-04-27 09:49:48 +01:00
kaf24@firebug.cl.cam.ac.uk 067abcc949 Check a write() return value in xenbaked.
From: Jeremy Katz

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-27 09:47:05 +01:00
kaf24@firebug.cl.cam.ac.uk c7e3f5818f Just allocate unbound irq only from dynirq range, since
pirq range is reserved for physical devices. This saves
unnecessary checks on pirq range.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-04-27 09:43:49 +01:00
kaf24@firebug.cl.cam.ac.uk b754b50322 Merge with xen-ia64-unstable.hg 2006-04-27 09:32:28 +01:00
awilliam@xenbuild.aw 9e385cdd2f [IA64] Make VTI domain boot
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Anthony Xu <anthony.tian@intel.com>
2006-04-26 20:55:42 -06:00
awilliam@xenbuild.aw 7a72b7c50b merge with xen-unstable.hg 2006-04-26 13:17:37 -06:00
kaf24@firebug.cl.cam.ac.uk 60395c1ca9 This patch addresses CVE-2006-1056 (information leak from
fxsave/fxrstor on AMD CPUs) and also adjusts 64-bit handling so that
full 64-bit RIP/RDP values get saved/restored. More fine-grained
handling may be needed if 32-bit processes are expected to properly
see their selectors (native Linux doesn't currently do that either,
but there is a patch to adjust it there).

Original patch: Jan Beulich (based on Linux original by Andi Kleen)

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-26 20:01:37 +01:00
awilliam@xenbuild.aw 3307d6c2f1 [IA64] not quite ready for --fatal-warnings
The build fails for me with gcc-3.4.5/gas-2.16.91

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-04-26 12:55:18 -06:00
awilliam@xenbuild.aw ca8e790ebd [IA64] remove remaining asm warnings
Fix all remaining warnings generated by gas.
Enforce the no gas warnings by using --fatal-warnings gas flag.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-26 12:50:42 -06:00
awilliam@xenbuild.aw ccb6709b06 [IA64] cleanup
Cleanup: add static, remove unused code/variables/macros.
Simplifications.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-26 12:44:45 -06:00
awilliam@xenbuild.aw 0dc5928a6e [IA64] Fix vm_summary info in VTi domain
This patch fixed vm_summary info and provide correct max_itr_entry,
max_dtr_entry,impl_va_msb, rid_size and so on. 

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
2006-04-26 12:40:56 -06:00
kaf24@firebug.cl.cam.ac.uk b450304086 Make xen_features and force_evtchn_callback() non-GPL
symbols as they are used in a variety of ubiquitous
kernel macros.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-26 17:41:19 +01:00
yamahata@valinux.co.jp 078e1918d3 xenLinux/ia64 has its own dma_map_page(), dma_unmap_page(), and it needs
linux default implementations of dma_declare_coheremnt_memory() and its
families which is defined in include/linux/dma-mapping.h.
So those in pci-dma-xen.c are unnecessary. #ifdef out them.
PATCHNAME: pci-dma-xen-common

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-26 10:43:16 +01:00
awilliam@xenbuild.aw 390a5e26ef [IA64] remove RELOC_HIDE
This is now defined in xen/include/xen/compiler.h

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-04-25 23:38:09 -06:00
awilliam@xenbuild.aw aaf9402dab merge with xen-unstable.hg 2006-04-25 23:35:55 -06:00
awilliam@xenbuild.aw 0d7d0c0cf2 [IA64] Fix the total memory info with xm info command
This small patch intends to provide correct total memory info for
control panel and fixed hardcode for that. The total memory info doesn't
include the memory FW used.

Signed-off-by : Zhang Xiantao  <xiantao.zhang@intel.com>
2006-04-25 22:55:22 -06:00
awilliam@xenbuild.aw c6c867acc7 [IA64] Reseve memory of domain0 (fix dom0 boot panic)
Our patch fix domain0 boot panic on large memory system.
(e.g. amount of installed memory is 16GB)

Memory of domain0 is not reserved now.
Our patch can make this memory reserved.
And we clean up initrd_start of domain0.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-04-25 22:52:49 -06:00
awilliam@xenbuild.aw 4f49eae794 [IA64] Fixed "Oops: time tick before it's due" issue
This patch fixed following issue,
"Oops: time tick before it's due" in VTI-domain

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-25 22:38:25 -06:00
awilliam@xenbuild.aw 2f41b3e04c [IA64] FPH enabling + cleanup
Move contents of switch_to macro from xensystem.h to context_switch function.
Initialize FPU on all processors.  FPH is always enabled in Xen.
Speed up context-switch (a little bit!) by not enabling/disabling FPH.
Cleanup (unused function/variablesi/fields, debug printf...)
vmx_ia64_switch_to removed (was unused).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-25 22:35:41 -06:00
awilliam@xenbuild.aw 5713e1b987 [IA64] smp boot speed-up (sal cache flush, itc/itv messages)
Use sal_cache_flush to emulate SAL_CACHE_FLUSH instead of fc.
Only prints one vcpu_set_itc message, do not print set itv message.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-25 22:32:14 -06:00
awilliam@xenbuild.aw 4c476c5c53 [IA64] missed chunk of Kevin's hypercall cleanup patch
Missed this chunk of Kevin's patch when merging with dom0vp changes

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-04-25 22:30:07 -06:00
awilliam@xenbuild.aw 40e34e2a34 [IA64] Hypercall cleanup
Clean up xen_hypercall to query hypercall table instead.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-04-25 22:27:18 -06:00
awilliam@xenbuild.aw 0017c898c6 [IA64] Use16M page size in identity mapping
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-25 22:10:05 -06:00
awilliam@xenbuild.aw ba20f187b7 [IA64] cleanup vtlb code
This patch is to clean up vtlb code.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-25 20:53:38 -06:00
awilliam@localhost e737afb883 [IA64] emulate ldfp8 in mmio
1. emulate ldpf8 in mmio
2. handle floating point register rotation in functions setfpreg and getfpreg

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-25 17:05:16 -06:00
awilliam@localhost e1a87a84be [IA64] linux: arch/ia64/xen/makefile change
update linux-2.6-xen-sparse/arch/ia64/xen/Makefile

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 16:55:09 -06:00
awilliam@localhost 05e3e3c89e [IA64] dma paravirtualization
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 16:53:27 -06:00
awilliam@ldap.hp.com 44ecda1d9d [IA64] add dom0vp hypercall interfaces
adds the dom0vp hypercall interfaces.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 14:02:21 -06:00
awilliam@ldap.hp.com 6283fce6f0 [IA64] introduce config option
introduce XEN_IA64_DOM0_VP config.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 13:57:56 -06:00
awilliam@ldap.hp.com b4b8b91251 [IA64] introduce dom0vp hypercalls
implement dom0vp hypercall.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 13:56:30 -06:00
awilliam@ldap.hp.com 18982c3adb [IA64] domain0 builder change
make domain0 builder for dom0 vp model.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-04-25 13:48:02 -06:00
awilliam@ldap.hp.com 14ecb6faa4 [IA64] introduce efi_memmap_walk_type
introduce efi_memmap_walk_type() for the next dom0 builder patch.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 13:11:15 -06:00
awilliam@ldap.hp.com 406b52ce50 [IA64] introduce P2M conversion
introduce P2M conversion functions necessary for dom0vp model.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 13:06:57 -06:00
awilliam@ldap.hp.com fbc92d2b9d [IA64] introduce compile time option to xen
introduce xen_ia64_dom0_virtual_physical compile time option.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 10:54:45 -07:00