]> xenbits.xensource.com Git - xen.git/log
xen.git
17 years agoxenbaked: Fix for new trace format.
Keir Fraser [Thu, 4 Oct 2007 08:38:40 +0000 (09:38 +0100)]
xenbaked: Fix for new trace format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years ago[hotplug scripts] Unlock the 'block' lock before bailing.
Keir Fraser [Thu, 4 Oct 2007 08:37:33 +0000 (09:37 +0100)]
[hotplug scripts] Unlock the 'block' lock before bailing.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agosvm: Enable nested paging only on x86/64.
Keir Fraser [Thu, 4 Oct 2007 08:36:18 +0000 (09:36 +0100)]
svm: Enable nested paging only on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: More changes to reduce size of domain structure.
Keir Fraser [Wed, 3 Oct 2007 15:33:23 +0000 (16:33 +0100)]
hvm: More changes to reduce size of domain structure.
It is now smaller than a page (4kB) on x86/32 and x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Do not include full hvm_hw_hpet in 'struct domain'. It is very
Keir Fraser [Wed, 3 Oct 2007 14:47:47 +0000 (15:47 +0100)]
hvm: Do not include full hvm_hw_hpet in 'struct domain'. It is very
large due to the number of (unused) reserved registers. This
unnecessarily blots the size of the domain structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxm: Add accel option to xm network-attach.
Keir Fraser [Wed, 3 Oct 2007 13:56:31 +0000 (14:56 +0100)]
xm: Add accel option to xm network-attach.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agosvm: Actually remove disabling of CR4-read-intercept when using NPT.
Keir Fraser [Wed, 3 Oct 2007 13:41:28 +0000 (14:41 +0100)]
svm: Actually remove disabling of CR4-read-intercept when using NPT.
Should have been in the previosu changeset. Oops.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agosvm: Can only avoid CR3 reads when NPT is enabled.
Keir Fraser [Wed, 3 Oct 2007 13:33:57 +0000 (14:33 +0100)]
svm: Can only avoid CR3 reads when NPT is enabled.
CR0 and CR4 reads must still be intercepted.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMerge with ia64 tree.
Keir Fraser [Wed, 3 Oct 2007 13:07:30 +0000 (14:07 +0100)]
Merge with ia64 tree.

17 years agoxend: Check access to the privcmd interface before doing the call to
Keir Fraser [Wed, 3 Oct 2007 13:06:06 +0000 (14:06 +0100)]
xend: Check access to the privcmd interface before doing the call to
fetch the currently enforced policy. Assign 'INACCESSIBLE' to the
policy if it cannot be retrieved due to the user not being
privileged.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoExtend 'xm dumppolicy' to support Xen-API
Keir Fraser [Wed, 3 Oct 2007 13:04:51 +0000 (14:04 +0100)]
Extend 'xm dumppolicy' to support Xen-API

I am extending 'xm dumppolicy' to be used via the Xen-API. For this
there are two new functions in the ACM policy class:
 - get the currently enforced policy including statistical data from
   the hypervisor
- get the ACM 'ssidref' of a Domain. Since this may be a ACM-specific
  variable or type (int) I put it into the ACM class.

I extended the Xen-API documentation with the two new functions.

Signed-off-by: Stefan Berger <Stefanb@us.ibm.com>
17 years agomerge with xen-unstable.hg (staging)
Alex Williamson [Tue, 2 Oct 2007 17:31:55 +0000 (11:31 -0600)]
merge with xen-unstable.hg (staging)

17 years ago[IA64] micro-optimize and comments in vmx_ivt.S
Alex Williamson [Tue, 2 Oct 2007 16:07:35 +0000 (10:07 -0600)]
[IA64] micro-optimize and comments in vmx_ivt.S

Comments added + micro-optimizations.
In PHY_D mode, alt tlb misses can call vmx_hpw_miss.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agox86/64: Fix build.
Keir Fraser [Tue, 2 Oct 2007 16:07:18 +0000 (17:07 +0100)]
x86/64: Fix build.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] cleanup in vmx headers
Alex Williamson [Tue, 2 Oct 2007 16:04:56 +0000 (10:04 -0600)]
[IA64] cleanup in vmx headers

Reduce size of arch_vmx_struct (flags is now 1 byte).
Remove unused macro.
Add VMX_MMU_MODE macro.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years ago[IA64] Cleanup: remove useless #ifndef and indentation.
Alex Williamson [Tue, 2 Oct 2007 15:59:27 +0000 (09:59 -0600)]
[IA64] Cleanup: remove useless #ifndef and indentation.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agovtd: Dynamically allocate IRQ-tracking structures, only for those
Keir Fraser [Tue, 2 Oct 2007 15:59:07 +0000 (16:59 +0100)]
vtd: Dynamically allocate IRQ-tracking structures, only for those
domains that actually have PCI-passthru devices. Greatly reduces size
of 'struct domain'.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Remove warnings.
Alex Williamson [Tue, 2 Oct 2007 15:58:09 +0000 (09:58 -0600)]
[IA64] Remove warnings.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years ago[IA64] xenitp improvements
Alex Williamson [Tue, 2 Oct 2007 15:31:45 +0000 (09:31 -0600)]
[IA64] xenitp improvements

Remove all the casts by using char * instead of unsigned char *.
The go command now accept a number.
The disass command can now accept a range.
Number of TRs is not hard-coded.
'-' (minus) can now be used in expressions.
'$iip' and '$b0' can be used in expressions.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agox86/32: Re-factor mapcache data structure into per-domain and per-vcpu
Keir Fraser [Tue, 2 Oct 2007 15:28:58 +0000 (16:28 +0100)]
x86/32: Re-factor mapcache data structure into per-domain and per-vcpu
components. Greatly reduces size of 'struct domain'.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] xenitp: Display symbolic names of cr.
Alex Williamson [Tue, 2 Oct 2007 15:20:41 +0000 (09:20 -0600)]
[IA64] xenitp: Display symbolic names of cr.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years ago[IA64] Fix + more cr regs for vcpu_get_context
Alex Williamson [Tue, 2 Oct 2007 15:18:38 +0000 (09:18 -0600)]
[IA64] Fix + more cr regs for vcpu_get_context

Do not hard code number of TRs in vcpucontext.
Correctly fill rr7 and add more cr registers for get_vcpu_context.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agoxentop: Flush batch output on SIGTERM or SIGINT.
Keir Fraser [Tue, 2 Oct 2007 12:19:25 +0000 (13:19 +0100)]
xentop: Flush batch output on SIGTERM or SIGINT.
Signed-off-by: INAKOSHI Hiroya <inakoshi.hiroya@jp.fujitsu.com>
17 years agohvm svm: Fix #MC intercept routine for AMD SVM.
Keir Fraser [Tue, 2 Oct 2007 09:53:14 +0000 (10:53 +0100)]
hvm svm: Fix #MC intercept routine for AMD SVM.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agoAdd XENPF_getidletime.
Keir Fraser [Tue, 2 Oct 2007 09:46:23 +0000 (10:46 +0100)]
Add XENPF_getidletime.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoClean up and fix XEN_SYSCTL_getcpuinfo error path.
Keir Fraser [Tue, 2 Oct 2007 09:45:53 +0000 (10:45 +0100)]
Clean up and fix XEN_SYSCTL_getcpuinfo error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxend: Fix name/uuid uniqueness checks.
Keir Fraser [Tue, 2 Oct 2007 09:01:10 +0000 (10:01 +0100)]
xend: Fix name/uuid uniqueness checks.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
17 years agoRevert 15642:207582c8d88b532783da5c6f5839336187556f0a.
Keir Fraser [Tue, 2 Oct 2007 08:59:39 +0000 (09:59 +0100)]
Revert 15642:207582c8d88b532783da5c6f5839336187556f0a.

This patch is now bogus since 15168:a717cb2fac90 is reverted
by 15973:8817a53c030f.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
17 years agoFix external-device-migrate infinite loop.
Keir Fraser [Tue, 2 Oct 2007 08:56:53 +0000 (09:56 +0100)]
Fix external-device-migrate infinite loop.

For some (yet) unknown reason extern-device-migrate is called
twice, once with a missing domname argument.

The following invocation loops forever:
 external-device-migrate -domname
because "shift 2" never shifts ($# < 2) and $# is always 1.

From: Pascal Bouchareine <pascal@gandi.net>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxenctx: Print EFLAGS for i386 and x86/64.
Keir Fraser [Tue, 2 Oct 2007 08:41:10 +0000 (09:41 +0100)]
xenctx: Print EFLAGS for i386 and x86/64.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Fix HVMOP_flush_tlbs to flush paging-mode state.
Keir Fraser [Tue, 2 Oct 2007 08:35:37 +0000 (09:35 +0100)]
hvm: Fix HVMOP_flush_tlbs to flush paging-mode state.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxentrace: Fix xentrace_format for new file format.
Keir Fraser [Tue, 2 Oct 2007 08:31:40 +0000 (09:31 +0100)]
xentrace: Fix xentrace_format for new file format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years agoxentrace: Fix man page (remove xentrace_cpuinfo(1)).
Keir Fraser [Tue, 2 Oct 2007 08:30:36 +0000 (09:30 +0100)]
xentrace: Fix man page (remove xentrace_cpuinfo(1)).
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years agoFix ioemu compile on Solaris
Keir Fraser [Tue, 2 Oct 2007 08:29:23 +0000 (09:29 +0100)]
Fix ioemu compile on Solaris
Solaris doesn't have RLIMIT_RSS at least; don't try to set rlimits.
Signed-off-by: John Levon <john.levon@sun.com>
17 years agoFix non-portabilities in libflask.
Keir Fraser [Tue, 2 Oct 2007 08:29:00 +0000 (09:29 +0100)]
Fix non-portabilities in libflask.
Signed-off-by: John Levon <john.levon@sun.com>
17 years agoxend: Fix refactoring done in CS 15938 in security.py.
Keir Fraser [Tue, 2 Oct 2007 08:27:22 +0000 (09:27 +0100)]
xend: Fix refactoring done in CS 15938 in security.py.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoxm-test: Fix bugzilla #1051.
Keir Fraser [Tue, 2 Oct 2007 08:26:18 +0000 (09:26 +0100)]
xm-test: Fix bugzilla #1051.

This is a patch to fix xm-test's network errors
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1051

From: Lukasz Szymanski <Lukasz.Szymanski@unisys.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agomerge with xen-unstable.hg
Alex Williamson [Mon, 1 Oct 2007 19:59:37 +0000 (13:59 -0600)]
merge with xen-unstable.hg

17 years ago[IA64] xenitp: correctly size vcpu_ctx array
Alex Williamson [Mon, 1 Oct 2007 15:59:24 +0000 (09:59 -0600)]
[IA64] xenitp: correctly size vcpu_ctx array

vcpu_ctx[] array size should be MAX_VIRT_CPUS instead of 1.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Fix wrong insertion of TLB entry in region 0
Alex Williamson [Mon, 1 Oct 2007 15:57:50 +0000 (09:57 -0600)]
[IA64] Fix wrong insertion of TLB entry in region 0

On PV domain with metaphysical mode, emulation of itc.d in region 0
doesn't work well and inserts an wrong TC entry.
Because set_one_rr() doesn't set the machine region register.
i.e. metaphyisical_rr0 is used instead of guest's rr[0].

This bug causes Dom0/U crash when an application uses region 0.
Actually I met the crash when I was building open GFW (java uses
region 0).

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years ago[IA64] xenctx: fix rse arithmetic
Alex Williamson [Mon, 1 Oct 2007 15:53:48 +0000 (09:53 -0600)]
[IA64] xenctx: fix rse arithmetic

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Replace mode_flags by mmu_mode
Alex Williamson [Mon, 1 Oct 2007 15:52:14 +0000 (09:52 -0600)]
[IA64] Replace mode_flags by mmu_mode

Replace mode_flags by mmu_mode and put it into arch_vmx structure.
Cleanup in vmx_phy_mode.c to prepare for half-physical mode (dt=0,it=1)

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agox86: Rename math_state_restore() to more logical
Keir Fraser [Mon, 1 Oct 2007 14:38:58 +0000 (15:38 +0100)]
x86: Rename math_state_restore() to more logical
do_device_not_available(), following naming convection for all other C
exception handlers.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Clean up arch_set_info_guest() by having HVM VCPUs bail early.
Keir Fraser [Mon, 1 Oct 2007 14:28:18 +0000 (15:28 +0100)]
x86: Clean up arch_set_info_guest() by having HVM VCPUs bail early.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Avoid need for ugly setcpucontext() in HVM domain builder by
Keir Fraser [Mon, 1 Oct 2007 14:12:05 +0000 (15:12 +0100)]
hvm: Avoid need for ugly setcpucontext() in HVM domain builder by
pre-setting the vcpu0 to runnable inside Xen, and have the builder
insert a JMP instruction to reach the hvmloader entry point from
address 0x0.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Re-jig event delivery logic to better integrate TPR management.
Keir Fraser [Mon, 1 Oct 2007 13:11:15 +0000 (14:11 +0100)]
hvm: Re-jig event delivery logic to better integrate TPR management.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agolibxenctrl: Fix lock_pages()/unlock_pages() region-size calculation.
Keir Fraser [Mon, 1 Oct 2007 12:18:19 +0000 (13:18 +0100)]
libxenctrl: Fix lock_pages()/unlock_pages() region-size calculation.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agox86: Fix time going backwards on CPU frequency change.
Keir Fraser [Mon, 1 Oct 2007 08:32:25 +0000 (09:32 +0100)]
x86: Fix time going backwards on CPU frequency change.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Fix debug build.
Keir Fraser [Mon, 1 Oct 2007 08:32:04 +0000 (09:32 +0100)]
x86: Fix debug build.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxm: Print xend config via 'xm info --config'.
Keir Fraser [Mon, 1 Oct 2007 05:39:00 +0000 (06:39 +0100)]
xm: Print xend config via 'xm info --config'.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
17 years agoxsm:acm: Fix nul dereference bug (take 2).
Keir Fraser [Mon, 1 Oct 2007 05:36:25 +0000 (06:36 +0100)]
xsm:acm: Fix nul dereference bug (take 2).
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
17 years agoRevert 15975:96f46954c7f1.
Keir Fraser [Mon, 1 Oct 2007 05:35:40 +0000 (06:35 +0100)]
Revert 15975:96f46954c7f1.

17 years agovt-d: Allocate iommu pages from domheap rather than xenheap.
Keir Fraser [Mon, 1 Oct 2007 05:34:40 +0000 (06:34 +0100)]
vt-d: Allocate iommu pages from domheap rather than xenheap.

xenheap size is 9M on x86/32 xen, it's not enough to setup 1:1 mapping
page table for dom0. It causes dom0 cannot boot successfully. Instead
of xenheap, this patch setup 1:1 mapping page tabel in domheap, and
use map_domain_page() to get temporary mappings when need them.

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agohvm: Clean up EFER handling. Check CR0/CR4/EFER on HVM restore.
Keir Fraser [Fri, 28 Sep 2007 15:00:44 +0000 (16:00 +0100)]
hvm: Clean up EFER handling. Check CR0/CR4/EFER on HVM restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxsm:acm: fix a null dereference bug.
Keir Fraser [Fri, 28 Sep 2007 14:05:11 +0000 (15:05 +0100)]
xsm:acm: fix a null dereference bug.
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
17 years agohvm: Enable HAP by default (NPT on AMD SVM systems).
Keir Fraser [Fri, 28 Sep 2007 14:03:50 +0000 (15:03 +0100)]
hvm: Enable HAP by default (NPT on AMD SVM systems).
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Kexec: Implement elf_core_save_regs()
Alex Williamson [Thu, 27 Sep 2007 22:29:43 +0000 (16:29 -0600)]
[IA64] Kexec: Implement elf_core_save_regs()

Implement elf_core_save_regs() by porting (un #ifdefing)
ia64_elf_core_copy_regs() from Linux.

This ommits the calls to ia64_get_user_rbs_end() and ia64_sync_user_rbs()
in do_copy_task_regs(). Supplying them would seem to involve a reasonably
involved ammount of porting. I'm really not sure that its neccessary.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: Zap VHPT in relocate_kernel
Alex Williamson [Thu, 27 Sep 2007 22:26:34 +0000 (16:26 -0600)]
[IA64] Kexec: Zap VHPT in relocate_kernel

On XEN do_ia64_purge_tlb unpins the VHPT entry, so it seems
logical that relocate_kernel should do the same thing.
It seems to work, but is it correct?

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: Fix ia64_do_tlb_purge so that it works with XEN
Alex Williamson [Thu, 27 Sep 2007 22:24:02 +0000 (16:24 -0600)]
[IA64] Kexec: Fix ia64_do_tlb_purge so that it works with XEN

Fix ia64_do_tlb_purge, its broken in too many ways

1. Call SET_PER_CPU_DATA before making any calls to GET_THIS_PADDR
   to ensure that per-cpu data is set up correctly.

2. Use the per_cpu variable to derive CURRENT_STACK_OFFSET rather
   than reading it from a kernel register. See 1) for explanation
   of why.

3. In the VHPT pruning code, don't use r25 as ia64_jump_to_sal,
   which branches to ia64_do_tlb_purge expects r25 to be preserved.
   There seems no reason not to use r2 as per the other purges
   done in ia64_do_tlb_purge.  Furthermore use r16 and r18 instead
   of r20 and r24 for consistency reasons.

4. Move __va_ul(vcpu_vhpt_maddr(v)) comment outside of
   #if VHPT_ENABLED as it also applies to code further down that
   is outside the #if

Cc: Tristan Gingold <tgingold@free.fr>,
Cc: Yutaka Ezaki <yutaka.ezaki@jp.fujitsu.com>,
Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com>,
Cc: Kazuhiro Suzuki <kaz@jp.fujitsu.com>,
Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: partial port of CPU_HOTPLUG
Alex Williamson [Thu, 27 Sep 2007 21:35:02 +0000 (15:35 -0600)]
[IA64] Kexec: partial port of CPU_HOTPLUG

* Enable CONFIG_CPU_HOTPLUG

* Add #ifndef CONFIG_XEN as appropriate around portions that are not
  needed for kexec - it is used to take down cpus on SMP systems
  before kexecing.

* Port various xen-specific bits as neccessary
  - This has mainly been done in the existing kexec-related files,
    as kexex is currently the only user of this code. If a full
    port of CPU_HOTPLUG was done then this code would either disapear
    or be relocated elsewhere.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: Add kexec_disable_iosapic
Alex Williamson [Thu, 27 Sep 2007 21:12:58 +0000 (15:12 -0600)]
[IA64] Kexec: Add kexec_disable_iosapic

Ported from Linux, this shuts down iosapic before preforming kexec.
This resolves a problem whereby the serial port on an HP RX2620
(which uses IOSAPIC) was not able to accept input. It probably
resolves a bunch of other as yet unseen problems too.

Thanks to Takebe-san for working out the solution to this puzzle.

Cc: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kdump: Save dom0_mm_pgd_mfn in vmcore on ia64
Alex Williamson [Thu, 27 Sep 2007 21:10:42 +0000 (15:10 -0600)]
[IA64] Kdump: Save dom0_mm_pgd_mfn in vmcore on ia64

On Xen dom0_mm_pgd_mfn needs to be saved in the vmcore in
order to allow the crash utility to navigate the vmcore file.

Cc: Itsuro ODA <oda@valinux.co.jp>
Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] kexec for xen
Alex Williamson [Thu, 27 Sep 2007 21:08:13 +0000 (15:08 -0600)]
[IA64] kexec for xen

Basic port of kexec to xen

Signed-Off-By: Simon Horman <horms@verge.net.au>
17 years agomerge with xen-unstable.hg (staging)
Alex Williamson [Thu, 27 Sep 2007 18:22:16 +0000 (12:22 -0600)]
merge with xen-unstable.hg (staging)

17 years agoxend: Fix name uniqueness check (revert 15168:a717cb2fac90).
Keir Fraser [Thu, 27 Sep 2007 17:08:11 +0000 (18:08 +0100)]
xend: Fix name uniqueness check (revert 15168:a717cb2fac90).

Changeset 15168:a717cb2fac90 altered check_name() in XendDomainInfo so
that it compares domain IDs instead of UUIDs. This breaks a number of
things

 - You can no longer use 'xm new' to define a persistent config file for
   a running guest. This breaks the key OS provisioning scenario where
   you boot a kenrel+initrd for the installer, and at the same time
   define a permanent config with pygrub.

 - It lets you define multiple inactive guests with different UUIDs, but
   the same name because all inactive guests have a domid of None. So
   you can now end up with multiple guests with same name, which is
   contrary to the goal implied by the patch which was name uniqueness.

It is unclear from the original commit logs just what scenario it was
trying to protect against, but the original checking of uniqueness
based on UUID was correct & is what was used in previous releases XenD.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
17 years agoxend: fix server/netif.py so that it respects type=None.
Keir Fraser [Thu, 27 Sep 2007 16:44:03 +0000 (17:44 +0100)]
xend: fix server/netif.py so that it respects type=None.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
17 years agox86: If e820 map overflows, leak memory in a safe manner.
Keir Fraser [Thu, 27 Sep 2007 15:50:52 +0000 (16:50 +0100)]
x86: If e820 map overflows, leak memory in a safe manner.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoioemu: Fixes for BSD.
Keir Fraser [Thu, 27 Sep 2007 15:36:23 +0000 (16:36 +0100)]
ioemu: Fixes for BSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years ago[IA64] Consolidate DELIVER_PSR_CLR and DELIVER_PSR_SET definition.
Alex Williamson [Thu, 27 Sep 2007 15:16:23 +0000 (09:16 -0600)]
[IA64] Consolidate DELIVER_PSR_CLR and DELIVER_PSR_SET definition.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Make viosapic SMP-safe adding lock/unlock similar to x86 vioapic
Alex Williamson [Thu, 27 Sep 2007 15:08:26 +0000 (09:08 -0600)]
[IA64] Make viosapic SMP-safe adding lock/unlock similar to x86 vioapic

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] make vacpi SMP-safe by adding lock similar to x86 pmtimer
Alex Williamson [Thu, 27 Sep 2007 15:03:43 +0000 (09:03 -0600)]
[IA64] make vacpi SMP-safe by adding lock similar to x86 pmtimer

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Merge vmx_dispatch_itlb_miss and vmx_dispatch_dtlb_miss
Alex Williamson [Thu, 27 Sep 2007 15:01:42 +0000 (09:01 -0600)]
[IA64] Merge vmx_dispatch_itlb_miss and vmx_dispatch_dtlb_miss

They were identical.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years ago[IA64] asm-offsets.s must depend on $(HDRS)
Alex Williamson [Thu, 27 Sep 2007 15:00:06 +0000 (09:00 -0600)]
[IA64] asm-offsets.s must depend on $(HDRS)

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agoxend: Fix dummy security_policy_dir.
Keir Fraser [Thu, 27 Sep 2007 14:22:29 +0000 (15:22 +0100)]
xend: Fix dummy security_policy_dir.

Changeset 15951:ad339d88639d split policy_dir_prefix into
security_dir_prefix and policy_dir_prefix in acm code.  I think this
needs to be reflected in the dummy module as well (otherwise we blowup
when bootloader.py tries to reference security.security_dir_prefix).
Fixed in below patch.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agolibaio: Fix for *BSD
Keir Fraser [Thu, 27 Sep 2007 14:13:54 +0000 (15:13 +0100)]
libaio: Fix for *BSD
  - Remove unused linux specific header
  - Include <sys/time.h> needed for struct timespec
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years ago[IA64] Use same RID fro rr0 and rr4 in metaphysical mode.
Alex Williamson [Wed, 26 Sep 2007 19:22:17 +0000 (13:22 -0600)]
[IA64]  Use same RID fro rr0 and rr4 in metaphysical mode.

Renames metaphysical_rr0 to metaphysical_rid_dt
Renames metaphysical_rr4 to metaphysical_rid_d
Add comments in optvfault.S
cleanup and update vmx_phy_mode.[ch]

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years ago[IA64] clean up xenitp build warnings
Alex Williamson [Wed, 26 Sep 2007 18:43:41 +0000 (12:43 -0600)]
[IA64] clean up xenitp build warnings

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoxend: Slightly finesse allocation of vmpath in xenstore.
Keir Fraser [Wed, 26 Sep 2007 16:11:07 +0000 (17:11 +0100)]
xend: Slightly finesse allocation of vmpath in xenstore.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Fix task switch update of TR state.
Keir Fraser [Wed, 26 Sep 2007 15:50:28 +0000 (16:50 +0100)]
hvm: Fix task switch update of TR state.
Also remove unneeded duplicate paging_update_cr3().
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[xend,xenapi] Fix handling of scheduler params
Keir Fraser [Wed, 26 Sep 2007 13:39:56 +0000 (14:39 +0100)]
[xend,xenapi] Fix handling of scheduler params

When creating domains that specify scheduler parameters with XenAPI,
the specified parameters are not used when starting the domain. This
patch collapses cpu_weight and cpu_cap in XendConfig into the
vcpus_params dictionary. The patch has been tested using xm and
XenAPI on config with and without scheduler parameters.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
17 years agox86: force DMI table to not be in E820 RAM region
Keir Fraser [Wed, 26 Sep 2007 13:14:16 +0000 (14:14 +0100)]
x86: force DMI table to not be in E820 RAM region

In order for Dom0 to be able to map the DMI table, it must not be in
E820 RAM; since some BIOS versions apparently fail to set the type
correctly for the page(s) containing this table, adjust it before
starting to consume memory.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoioemu: security fixes for not-built or not-default-configured subsystems.
Keir Fraser [Wed, 26 Sep 2007 08:19:12 +0000 (09:19 +0100)]
ioemu: security fixes for not-built or not-default-configured subsystems.

Patches originally proposed by S. Caglar Onur and cleaned up for
xen-unstable by Robert Buchholz <rbu@gentoo.org>.

Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agovt-d: Fix crash on x86/32.
Keir Fraser [Wed, 26 Sep 2007 08:15:34 +0000 (09:15 +0100)]
vt-d: Fix crash on x86/32.

On 32-bit xen, dom0 crashes when using VT-d to assign devices. It is
caused by setting m2p in clear_mmio_p2m_entry(), because
machine_to_phys_map[] entry for mmio address is not mapped.

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agohvm: Improve tcgbios code for finding ACPI RSDP.
Keir Fraser [Wed, 26 Sep 2007 08:14:33 +0000 (09:14 +0100)]
hvm: Improve tcgbios code for finding ACPI RSDP.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoxenapi: add xen_xspolicy.h to libxen includes file
Keir Fraser [Wed, 26 Sep 2007 08:11:46 +0000 (09:11 +0100)]
xenapi: add xen_xspolicy.h to libxen includes file
Signed-off by: Reiner Sailer <sailer@us.ibm.com>

17 years agofirmware: fix romimage generation for *bsd
Keir Fraser [Wed, 26 Sep 2007 08:10:41 +0000 (09:10 +0100)]
firmware: fix romimage generation for *bsd

 - portability fix in Makefile: mkhex is not bash specific
 - GNU od separates column with one blank, BSD od uses eight blanks.
   Change sed to deal with this.
 - Add a fourth sed to fix a build error on NetBSD

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agohvm: eflags[1] must remain set across task switch.
Keir Fraser [Tue, 25 Sep 2007 21:28:17 +0000 (22:28 +0100)]
hvm: eflags[1] must remain set across task switch.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxend: Fix VIF MAC address being lost across localhost migration.
Keir Fraser [Tue, 25 Sep 2007 14:35:17 +0000 (15:35 +0100)]
xend: Fix VIF MAC address being lost across localhost migration.
VIF details in /vm/<uuid> directory in xenstore get deleted by old
domain dying.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoFix xend start after xsm:acm bootloader changes.
Keir Fraser [Tue, 25 Sep 2007 09:40:38 +0000 (10:40 +0100)]
Fix xend start after xsm:acm bootloader changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoFix tools dependency-check scripts for *BSD.
Keir Fraser [Tue, 25 Sep 2007 09:21:07 +0000 (10:21 +0100)]
Fix tools dependency-check scripts for *BSD.

zlib and crypto libs are part of the base system in *BSD.
So no need to check for them on *BSD. This conveniently avoids
executing a non-portable usage of ldconfig.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agominios: Remove unnecessary padding and unused sections from x86/64
Keir Fraser [Tue, 25 Sep 2007 09:12:49 +0000 (10:12 +0100)]
minios: Remove unnecessary padding and unused sections from x86/64
linker script.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoFix security vulnerability CVE-2007-4993.
Keir Fraser [Tue, 25 Sep 2007 08:34:36 +0000 (09:34 +0100)]
Fix security vulnerability CVE-2007-4993.

Protect pygrub from possible malicious content in guest grub
config file.  This fixes CVE-2007-4993.  Original patch from
Jeremy Katz, I updated to close 2 remaining issues pointed out
by Christian and Keir, and to use setattr(self, ...).

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
17 years agoxend memory ballooning: do not bother if guest will not fit in
Keir Fraser [Tue, 25 Sep 2007 08:30:00 +0000 (09:30 +0100)]
xend memory ballooning: do not bother if guest will not fit in
physical memory constraints.

If users require domain memory size larger than a physical memory
size, we do not need waiting for ballooning, and should cause
xm create command error right away.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years ago[Xend/ACM] Automatic loading of policy after xend has started.
Keir Fraser [Mon, 24 Sep 2007 20:52:10 +0000 (21:52 +0100)]
[Xend/ACM] Automatic loading of policy after xend has started.

On systems where the grub bootloader is not available or active the
to-be-activated policy is written a simple textfile. Once xend has
started the contents can be read. Using 'xm setpolicy' the policy can
be activated and the Domain-0 label set (using 'xm addlabel').
I fixed some bugs in the grub bootloader handler on the way and
removed some dead functions.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agox86: Auto-probe the serial port baud rate if 'com1' or 'com2' is
Keir Fraser [Mon, 24 Sep 2007 20:41:46 +0000 (21:41 +0100)]
x86: Auto-probe the serial port baud rate if 'com1' or 'com2' is
specified as a Xen console target. Avoids need for 'com1=' or 'com2='
command-line option in some cases.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] update .hgignore for xenitp
Alex Williamson [Mon, 24 Sep 2007 20:21:02 +0000 (14:21 -0600)]
[IA64] update .hgignore for xenitp

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Add xenitp tool
Alex Williamson [Mon, 24 Sep 2007 20:17:04 +0000 (14:17 -0600)]
[IA64] Add xenitp tool

Xenitp is a low-level debugger for ia64

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agoAnother msised netbsd file.
Keir Fraser [Mon, 24 Sep 2007 15:03:11 +0000 (16:03 +0100)]
Another msised netbsd file.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMissed files in previous changeset.
Keir Fraser [Mon, 24 Sep 2007 14:41:20 +0000 (15:41 +0100)]
Missed files in previous changeset.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agoxenstat/xenstore: NetBSD fixes.
Keir Fraser [Mon, 24 Sep 2007 14:38:52 +0000 (15:38 +0100)]
xenstat/xenstore: NetBSD fixes.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>