]> xenbits.xensource.com Git - xen.git/log
xen.git
19 years agoThe bootloader code doesn't actually have to deal with the vcpu config
kaf24@firebug.cl.cam.ac.uk [Fri, 28 Apr 2006 13:09:35 +0000 (14:09 +0100)]
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>
19 years agoWhen building with FORTIFY_SOURCE to ensure that return codes of common
kaf24@firebug.cl.cam.ac.uk [Fri, 28 Apr 2006 13:08:40 +0000 (14:08 +0100)]
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>
19 years agoRename {SG}ET_XEN_GUEST_HANDLE to {sg}et_Xen_guest_handle, as they
kaf24@firebug.cl.cam.ac.uk [Fri, 28 Apr 2006 08:40:07 +0000 (09:40 +0100)]
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>
19 years agoRelax BUG_ON() state ment in increase_reservation() in balloon.c.
kaf24@firebug.cl.cam.ac.uk [Fri, 28 Apr 2006 07:30:52 +0000 (08:30 +0100)]
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>
19 years agoFix memory_op hypercall mlock/munlock wrapping after the
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 18:19:59 +0000 (19:19 +0100)]
Fix memory_op hypercall mlock/munlock wrapping after the
GET/SET_XEN_GUEST_HANDLE patch.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd BUILD_BUG_ON() and a handful of users.
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 14:55:09 +0000 (15:55 +0100)]
Add BUILD_BUG_ON() and a handful of users.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoAdd bounds check to get_mfn_from_gpfn().
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 13:13:42 +0000 (14:13 +0100)]
Add bounds check to get_mfn_from_gpfn().
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoDefine __XEN_TOOLS__ when building tools. Use this to
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 13:06:41 +0000 (14:06 +0100)]
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>
19 years agoBump Xen interface version number to 0x00030201 for new
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 13:03:22 +0000 (14:03 +0100)]
Bump Xen interface version number to 0x00030201 for new
structural guest handles.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoWrap all GUEST_HANDLEs in structures, and define SET/GET macros to access them
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 12:58:50 +0000 (13:58 +0100)]
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>
19 years agoRename *GUEST_HANDLE to *XEN_GUEST_HANDLE.
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 12:38:21 +0000 (13:38 +0100)]
Rename *GUEST_HANDLE to *XEN_GUEST_HANDLE.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years agoOccasionally large smp machines fail to reboot properly and die under
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:56:21 +0000 (09:56 +0100)]
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>
19 years agoThis patch adds the ability to have restricted write access to some
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:49:48 +0000 (09:49 +0100)]
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>
19 years agoCheck a write() return value in xenbaked.
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:47:05 +0000 (09:47 +0100)]
Check a write() return value in xenbaked.

From: Jeremy Katz

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoJust allocate unbound irq only from dynirq range, since
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:43:49 +0000 (09:43 +0100)]
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>

19 years agoMerge with xen-ia64-unstable.hg
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:32:28 +0000 (09:32 +0100)]
Merge with xen-ia64-unstable.hg

19 years ago[IA64] Make VTI domain boot
awilliam@xenbuild.aw [Thu, 27 Apr 2006 02:55:42 +0000 (20:55 -0600)]
[IA64] Make VTI domain boot

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Anthony Xu <anthony.tian@intel.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Wed, 26 Apr 2006 19:17:37 +0000 (13:17 -0600)]
merge with xen-unstable.hg

19 years agoThis patch addresses CVE-2006-1056 (information leak from
kaf24@firebug.cl.cam.ac.uk [Wed, 26 Apr 2006 19:01:37 +0000 (20:01 +0100)]
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>
19 years ago[IA64] not quite ready for --fatal-warnings
awilliam@xenbuild.aw [Wed, 26 Apr 2006 18:55:18 +0000 (12:55 -0600)]
[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>
19 years ago[IA64] remove remaining asm warnings
awilliam@xenbuild.aw [Wed, 26 Apr 2006 18:50:42 +0000 (12:50 -0600)]
[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>
19 years ago[IA64] cleanup
awilliam@xenbuild.aw [Wed, 26 Apr 2006 18:44:45 +0000 (12:44 -0600)]
[IA64] cleanup

Cleanup: add static, remove unused code/variables/macros.
Simplifications.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years ago[IA64] Fix vm_summary info in VTi domain
awilliam@xenbuild.aw [Wed, 26 Apr 2006 18:40:56 +0000 (12:40 -0600)]
[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>
19 years agoMake xen_features and force_evtchn_callback() non-GPL
kaf24@firebug.cl.cam.ac.uk [Wed, 26 Apr 2006 16:41:19 +0000 (17:41 +0100)]
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>
19 years agoxenLinux/ia64 has its own dma_map_page(), dma_unmap_page(), and it needs
yamahata@valinux.co.jp [Wed, 26 Apr 2006 09:43:16 +0000 (10:43 +0100)]
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>
19 years ago[IA64] remove RELOC_HIDE
awilliam@xenbuild.aw [Wed, 26 Apr 2006 05:38:09 +0000 (23:38 -0600)]
[IA64] remove RELOC_HIDE

This is now defined in xen/include/xen/compiler.h

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Wed, 26 Apr 2006 05:35:55 +0000 (23:35 -0600)]
merge with xen-unstable.hg

19 years ago[IA64] Fix the total memory info with xm info command
awilliam@xenbuild.aw [Wed, 26 Apr 2006 04:55:22 +0000 (22:55 -0600)]
[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>

19 years ago[IA64] Reseve memory of domain0 (fix dom0 boot panic)
awilliam@xenbuild.aw [Wed, 26 Apr 2006 04:52:49 +0000 (22:52 -0600)]
[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>
19 years ago[IA64] Fixed "Oops: time tick before it's due" issue
awilliam@xenbuild.aw [Wed, 26 Apr 2006 04:38:25 +0000 (22:38 -0600)]
[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>
19 years ago[IA64] FPH enabling + cleanup
awilliam@xenbuild.aw [Wed, 26 Apr 2006 04:35:41 +0000 (22:35 -0600)]
[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>
19 years ago[IA64] smp boot speed-up (sal cache flush, itc/itv messages)
awilliam@xenbuild.aw [Wed, 26 Apr 2006 04:32:14 +0000 (22:32 -0600)]
[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>
19 years ago[IA64] missed chunk of Kevin's hypercall cleanup patch
awilliam@xenbuild.aw [Wed, 26 Apr 2006 04:30:07 +0000 (22:30 -0600)]
[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>

19 years ago[IA64] Hypercall cleanup
awilliam@xenbuild.aw [Wed, 26 Apr 2006 04:27:18 +0000 (22:27 -0600)]
[IA64] Hypercall cleanup

Clean up xen_hypercall to query hypercall table instead.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

19 years ago[IA64] Use16M page size in identity mapping
awilliam@xenbuild.aw [Wed, 26 Apr 2006 04:10:05 +0000 (22:10 -0600)]
[IA64] Use16M page size in identity mapping

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] cleanup vtlb code
awilliam@xenbuild.aw [Wed, 26 Apr 2006 02:53:38 +0000 (20:53 -0600)]
[IA64] cleanup vtlb code

This patch is to clean up vtlb code.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] emulate ldfp8 in mmio
awilliam@localhost [Tue, 25 Apr 2006 23:05:16 +0000 (17:05 -0600)]
[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>
19 years ago[IA64] linux: arch/ia64/xen/makefile change
awilliam@localhost [Tue, 25 Apr 2006 22:55:09 +0000 (16:55 -0600)]
[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>
19 years ago[IA64] dma paravirtualization
awilliam@localhost [Tue, 25 Apr 2006 22:53:27 +0000 (16:53 -0600)]
[IA64] dma paravirtualization

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] add dom0vp hypercall interfaces
awilliam@ldap.hp.com [Tue, 25 Apr 2006 20:02:21 +0000 (14:02 -0600)]
[IA64] add dom0vp hypercall interfaces

adds the dom0vp hypercall interfaces.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] introduce config option
awilliam@ldap.hp.com [Tue, 25 Apr 2006 19:57:56 +0000 (13:57 -0600)]
[IA64] introduce config option

introduce XEN_IA64_DOM0_VP config.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] introduce dom0vp hypercalls
awilliam@ldap.hp.com [Tue, 25 Apr 2006 19:56:30 +0000 (13:56 -0600)]
[IA64] introduce dom0vp hypercalls

implement dom0vp hypercall.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] domain0 builder change
awilliam@ldap.hp.com [Tue, 25 Apr 2006 19:48:02 +0000 (13:48 -0600)]
[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>
19 years ago[IA64] introduce efi_memmap_walk_type
awilliam@ldap.hp.com [Tue, 25 Apr 2006 19:11:15 +0000 (13:11 -0600)]
[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>
19 years ago[IA64] introduce P2M conversion
awilliam@ldap.hp.com [Tue, 25 Apr 2006 19:06:57 +0000 (13:06 -0600)]
[IA64] introduce P2M conversion

introduce P2M conversion functions necessary for dom0vp model.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] introduce compile time option to xen
awilliam@ldap.hp.com [Tue, 25 Apr 2006 17:54:45 +0000 (10:54 -0700)]
[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>
19 years ago[IA64] Remove FORCE_CRASH from alt_itlb_miss
awilliam@ldap.hp.com [Tue, 25 Apr 2006 17:50:56 +0000 (10:50 -0700)]
[IA64] Remove FORCE_CRASH from alt_itlb_miss

This patch removed FORCE_CRASH from alt_itlb_miss handler.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years ago[IA64] message of elf_sanity_check as x86
awilliam@ldap.hp.com [Tue, 25 Apr 2006 17:49:33 +0000 (10:49 -0700)]
[IA64] message of elf_sanity_check as x86

This small patch output message of elf_sanity_check as x86.
Currently this panic is the only following message.

        (XEN) *** LOADING DOMAIN 0 ***
        (XEN)
        (XEN) ****************************************
        (XEN) Panic on CPU 0:
        (XEN) Could not set up DOM0 guest OS
        (XEN) ****************************************
        (XEN)
        (XEN) Reboot in five seconds...
        (XEN) machine_restart called: spinning....

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
19 years agoNeed a little more serialisation in pciback_do_op().
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 17:22:11 +0000 (18:22 +0100)]
Need a little more serialisation in pciback_do_op().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoSome of the Linux PCI functions called by the virtual configuration
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 17:13:39 +0000 (18:13 +0100)]
Some of the Linux PCI functions called by the virtual configuration
space handlers were making calls into ACPI code which uses semaphores.
Since semaphores can not be locked while atomic (because they could
sleep), I changed the way the PCI backend responds to requests from the
frontend. Previously, the virtual configuration space handlers ran in
the same context as the event channel interrupt handler (which was often
atomic if not always atomic). Now the interrupt handler schedules a
callback function (a bottom half) in the system work queue (keventd)
that will get called in process context at a slightly later time. This
allows the handlers in the virtual configuration space to run in process
context and to call any core PCI function regardless of whether it will
sleep or not.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
19 years agoFix the -xen, -xen0 builds.
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 15:08:11 +0000 (16:08 +0100)]
Fix the -xen, -xen0 builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoWhile other aspects of the system configuration may still be
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 13:50:32 +0000 (14:50 +0100)]
While other aspects of the system configuration may still be
controlled by the outcome of the table scan, if apic= was given on the
command line its effect should not be overridden here.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoChange the xenbus_map_ring_valloc() interface and implementation so
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 13:20:08 +0000 (14:20 +0100)]
Change the xenbus_map_ring_valloc() interface and implementation so
that it is buildable as a module.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoUpdate xen caps on x86_64 since we have hvm pae guests support now.
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 10:12:16 +0000 (11:12 +0100)]
Update xen caps on x86_64 since we have hvm pae guests support now.
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years agoAdd a return statement to the non-Xen version of skb_checksum_setup.
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 08:02:53 +0000 (09:02 +0100)]
Add a return statement to the non-Xen version of skb_checksum_setup.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoThis is a small fix for SMP PAE guest on x86-64.
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 07:56:01 +0000 (08:56 +0100)]
This is a small fix for SMP PAE guest on x86-64.
Since part of the VMX guest initialization is running in the context of
dom0, so when we want to make sure the operation of shadow ops is
always done by vcpu0 of the guest VMX domain, we should make sure
the current vcpu0 is running in guest domain and not in the dom0.

Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years agoFix "make debug" in Xen subtree. Pointed out by Aravindh
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 07:54:36 +0000 (08:54 +0100)]
Fix "make debug" in Xen subtree. Pointed out by Aravindh
at Unisys.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove \r characters.
cl349@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 17:07:27 +0000 (18:07 +0100)]
Remove \r characters.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
19 years agoRestore default KERNELS list.
cl349@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 10:21:16 +0000 (11:21 +0100)]
Restore default KERNELS list.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
19 years agoAdd new xml files for policy.
smh22@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 10:01:41 +0000 (11:01 +0100)]
Add new xml files for policy.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThis patch updates the documentation and extends the 'xm' man page with
smh22@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 09:59:57 +0000 (10:59 +0100)]
This patch updates the documentation and extends the 'xm' man page with
the integrated access control management commands. The man page is a
good place to start exploring these commands.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThis patch integrates the new access control management tools into 'xm'
smh22@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 09:59:17 +0000 (10:59 +0100)]
This patch integrates the new access control management tools into 'xm'
and 'xend' and supports label/ssid translation support for
migration/life-migration/resume.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThis patch adds new python access control management scripts, which
smh22@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 09:58:25 +0000 (10:58 +0100)]
This patch adds new python access control management scripts, which
integrate into Xen Management and which support the new access control
labels (labels replace the ssidref numbers at the management user
interface).

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThis patch deletes the old shell-based security tools.
smh22@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 09:54:47 +0000 (10:54 +0100)]
This patch deletes the old shell-based security tools.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThis patch adds support for managing and creating the simplified
smh22@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 09:52:19 +0000 (10:52 +0100)]
This patch adds support for managing and creating the simplified
policies to the policy generation tools.

Signed-off by: Thomas Lendacky <toml@us.ibm.com>
Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThis patch adds support in the hypervisor for the policy name attribute
smh22@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 09:51:50 +0000 (10:51 +0100)]
This patch adds support in the hypervisor for the policy name attribute
introduced into security policies. It also fixes a minor problem related
to handling unsupported boot policies.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThis patch adds support in the hypervisor for the policy name attribute
smh22@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 09:51:20 +0000 (10:51 +0100)]
This patch adds support in the hypervisor for the policy name attribute
introduced into security policies. It also fixes a minor problem related
to handling unsupported boot policies.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThis patch adds a policy name to the policy definition. This policy name
smh22@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 09:50:38 +0000 (10:50 +0100)]
This patch adds a policy name to the policy definition. This policy name
must be unique and must change if the content of the file changes. The
policy name is used to ensure that the XM tools and the hypervisor work
on the same policy, i.e., interpret the security information on domains
consistently. This patch also simplifies the policy management by moving
policy and labels into a single file.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoRemove annoying pit debug info when booting smp guest.
kaf24@firebug.cl.cam.ac.uk [Sun, 23 Apr 2006 08:20:31 +0000 (09:20 +0100)]
Remove annoying pit debug info when booting smp guest.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
19 years agoThe Xen checksum offload feature attempts to insert a TCP/UDP
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:41:53 +0000 (10:41 +0100)]
The Xen checksum offload feature attempts to insert a TCP/UDP
checksums into already encrypted packets (esp4) in dom0.  Obviously,
it is not possible to insert a checksum into an already encrypted
packet, so this patch inserts the checksum prior to encrypting
packets in net/ipv4/xfrm4_output.c.

To do this cleanly, the TCP/UDP header pointers need to be pointed to
the correct spot, so this functionality has been abstracted into a new
function.

This patch fixes bug 143 (verified by Jim Dykman).  Earlier version
verified by Jon McCune.

Signed-off-by: James Dykman <dykman@us.ibm.com>
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
19 years agoAvoid spurious timer activations in migrate_timer().
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:37:24 +0000 (10:37 +0100)]
Avoid spurious timer activations in migrate_timer().

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove update_vcpu_system_time() call from the per-VCPU timer
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:26:28 +0000 (10:26 +0100)]
Remove update_vcpu_system_time() call from the per-VCPU timer
callback function. It's unnecessary and in fact may occasionally
even run on the wrong CPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAvoid flood of PIT interrupts while debugging an hvm guest.
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:14:11 +0000 (10:14 +0100)]
Avoid flood of PIT interrupts while debugging an hvm guest.

This is rebased to the new PIT code now. It has the same logic as
earlier. PIT tries to catch up the missed timer ticks by injected all
the ticks one by one so that Guest time stays close to the wall clock.
But while debugging a hvm guest if you stop the guest by debugger and
then continue, the guest sees flood of interrupts compensating the
missed ticks for the stopped time. This patch just check if the guest is
being debugged, if yes then it does not try to catch up with the missed
ticks.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@.intel.com>
19 years agoFix VM_RESERVED check in vm_normal_page(). Pointed out by
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 08:45:45 +0000 (09:45 +0100)]
Fix VM_RESERVED check in vm_normal_page(). Pointed out by
Isaku Yamahata.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix command-line parsing in a few respects -- be more
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 17:09:32 +0000 (18:09 +0100)]
Fix command-line parsing in a few respects -- be more
generous about what we accept, avoid stack overflow, and
print the command line during boot (rather useful!).

This should fix the 'lapic' and 'nolapic' boot options.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoDon't BUG_ON() if we cannot register an NMI callback since it is not a fatal
Ian.Campbell@xensource.com [Fri, 21 Apr 2006 17:06:06 +0000 (18:06 +0100)]
Don't BUG_ON() if we cannot register an NMI callback since it is not a fatal
problem.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoMerged.
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 16:51:30 +0000 (17:51 +0100)]
Merged.

19 years agoDemote scary IO-APIC REGSEL message to DPRINTK.
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 16:50:19 +0000 (17:50 +0100)]
Demote scary IO-APIC REGSEL message to DPRINTK.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRename TSS_sysenter_esp0 to SYSENTER_stack_esp0 to reflect the actual
Ian.Campbell@xensource.com [Fri, 21 Apr 2006 16:49:10 +0000 (17:49 +0100)]
Rename TSS_sysenter_esp0 to SYSENTER_stack_esp0 to reflect the actual
usage since the TSS is not used under Xen.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[IA64] SMP-guest
awilliam@xenbuild.aw [Fri, 21 Apr 2006 16:40:17 +0000 (10:40 -0600)]
[IA64] SMP-guest

Final SMP-guest patch: add IPI and boot rendez-vous support.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years agoPull the Linux percpu interface into Xen. Implemented for
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 16:35:15 +0000 (17:35 +0100)]
Pull the Linux percpu interface into Xen. Implemented for
x86 and used it to eliminate the percpu_ctxt struct from
arch/x86/domain.c.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoLinux support for sysenter/exit on x86_32.
Ian.Campbell@xensource.com [Fri, 21 Apr 2006 16:19:31 +0000 (17:19 +0100)]
Linux support for sysenter/exit on x86_32.

This support is only active when supervisor_mode_kernel is enabled
in the Xen build (and when the hardware supports sysenter).

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoXen support for sysenter/exit on x86_32 when supervisor_mode_kernel is
Ian.Campbell@xensource.com [Fri, 21 Apr 2006 16:19:29 +0000 (17:19 +0100)]
Xen support for sysenter/exit on x86_32 when supervisor_mode_kernel is
enabled.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoRemove CONFIG_X86_SYSENTER option.
Ian.Campbell@xensource.com [Fri, 21 Apr 2006 16:19:26 +0000 (17:19 +0100)]
Remove CONFIG_X86_SYSENTER option.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoMerge nmi_op functionality with the callback_op hypercall.
Ian.Campbell@xensource.com [Fri, 21 Apr 2006 16:19:22 +0000 (17:19 +0100)]
Merge nmi_op functionality with the callback_op hypercall.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoAdd include/xen/nmi.h and update files which #include <asm/nmi.h>.
Ian.Campbell@xensource.com [Fri, 21 Apr 2006 16:19:19 +0000 (17:19 +0100)]
Add include/xen/nmi.h and update files which #include <asm/nmi.h>.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoUse set_callbacks hypercall if callback_op is not available.
Ian.Campbell@xensource.com [Fri, 21 Apr 2006 16:18:53 +0000 (17:18 +0100)]
Use set_callbacks hypercall if callback_op is not available.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[IA64] translate_domain_pte must handle ED bit and ignre bit[63:53]
awilliam@xenbuild.aw [Fri, 21 Apr 2006 15:20:13 +0000 (09:20 -0600)]
[IA64] translate_domain_pte must handle ED bit and ignre bit[63:53]

made translate_domain_pte() aware _PAGE_ED bits.
_PAGE_PPN_MASK doesn't mask ED bit.
ED bit must be handled explicitly.
This case can occur by vcpu_itc_d().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] print efi map descriptor infomation at bootup
awilliam@xenbuild.aw [Fri, 21 Apr 2006 15:11:46 +0000 (09:11 -0600)]
[IA64] print efi map descriptor infomation at bootup

print efi map descriptor infomation at bootup with the boot option efi_print.
default is off.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] make dom_pa() static
awilliam@xenbuild.aw [Fri, 21 Apr 2006 15:09:16 +0000 (09:09 -0600)]
[IA64] make dom_pa() static

dom_pa() is unsed only by dom_fw.c. make it static.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] more cleanup in vhpt.h
awilliam@xenbuild.aw [Fri, 21 Apr 2006 15:06:38 +0000 (09:06 -0600)]
[IA64] more cleanup in vhpt.h

VHPT_CCHAIN_LOOKUP removed, body is now inlined in ivt.S
vhpt_insert() is now written in C.
Cleanup within vhpt.c/.h

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years ago[IA64] Add support to physdev_ops
awilliam@xenbuild.aw [Fri, 21 Apr 2006 15:03:19 +0000 (09:03 -0600)]
[IA64] Add support to physdev_ops

Add support to physdev ops, and thus give IOSAPIC RTEs
managed by Xen now. Dom0 now issues hypercall to r/w
RTE entry. Another change is the irq vector allocation
which is also owned by xen now.

After this change, the IOSAPIC is almost owned by xen
with only exception as IOSAPIC EOI which is still issued
by dom0 directly. But that's OK since currently dom0
owns all external physical devices. Later full event
channel mechanism will provide necessary support for
driver domain, and at that time, dom0 instead issues
physdev_op (PHYSDEVOP_IRQ_UNMASK_NOTIFY) naturally as
replace of IOSAPIC EOI.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

19 years ago[IA64] Compile iosapic within xen
awilliam@xenbuild.aw [Fri, 21 Apr 2006 14:56:34 +0000 (08:56 -0600)]
[IA64] Compile iosapic within xen

Compile iosapic within xen. Part of code from Tristan.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

19 years ago[IA64] add base iosapic files
awilliam@xenbuild.aw [Fri, 21 Apr 2006 14:56:24 +0000 (08:56 -0600)]
[IA64] add base iosapic files

Add base iosapic files from Linux-2.6.16 in preparation for
Kevin's iosapic changes.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agoFix inverted BUG_ON().
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 13:03:07 +0000 (14:03 +0100)]
Fix inverted BUG_ON().

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoBuild blkdev_backend in the kernel.
vhanquez@kneesa.uk.xensource.com [Fri, 21 Apr 2006 12:48:58 +0000 (12:48 +0000)]
Build blkdev_backend in the kernel.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
19 years agoThis patch adds an entry to the xend-config.sxp man page about the
emellor@leeni.uk.xensource.com [Fri, 21 Apr 2006 10:58:25 +0000 (11:58 +0100)]
This patch adds an entry to the xend-config.sxp man page about the
external device migration entry.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoThe attached patch replaces the current numbers identifying the
emellor@leeni.uk.xensource.com [Fri, 21 Apr 2006 10:57:34 +0000 (11:57 +0100)]
The attached patch replaces the current numbers identifying the
individual steps of device migration with constants.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoThis patch adds a test case for local virtual machine migration with a
emellor@leeni.uk.xensource.com [Fri, 21 Apr 2006 10:56:40 +0000 (11:56 +0100)]
This patch adds a test case for local virtual machine migration with a
virtual TPM attached.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoThe attached patch allows external devices to migrate. The patch
emellor@leeni.uk.xensource.com [Fri, 21 Apr 2006 10:54:12 +0000 (11:54 +0100)]
The attached patch allows external devices to migrate. The patch
contains code that allows to at least detect local migration of a
virtual machine and handles this for the virtual TPM (results in a no-op
for local migr.). If migration of a virtual machine with attached vTPM
to another machine is attempted, XenD will return an error.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>