xen.git
17 years agoUpdate Xen version for 3.3.0-rc6-pre
Keir Fraser [Fri, 15 Aug 2008 14:01:38 +0000 (15:01 +0100)]
Update Xen version for 3.3.0-rc6-pre

17 years agoAdded tag 3.3.0-rc5 for changeset b4dba6a0e97cb6dd080fa566468e3cc972c34d7a
Keir Fraser [Fri, 15 Aug 2008 14:01:04 +0000 (15:01 +0100)]
Added tag 3.3.0-rc5 for changeset b4dba6a0e97cb6dd080fa566468e3cc972c34d7a

17 years agoUpdate Xen version for 3.3.0-rc5
Keir Fraser [Fri, 15 Aug 2008 14:00:57 +0000 (15:00 +0100)]
Update Xen version for 3.3.0-rc5

17 years agox86, hvm: Fix softtsc for AMD-V
Keir Fraser [Fri, 15 Aug 2008 13:59:41 +0000 (14:59 +0100)]
x86, hvm: Fix softtsc for AMD-V

The softtsc code for AMD does not update the ip; enabling it on AMD-V
results in the domain spinning on the RDTSC instruction. The patch is
against xen-unstable 18331.

Signed-off-by: John Byrne <john.l.byrne@hp.com>
17 years agox86 shadow: Fix OOS typecounting.
Keir Fraser [Thu, 14 Aug 2008 15:26:06 +0000 (16:26 +0100)]
x86 shadow: Fix OOS typecounting.

From: Gianluca Guida <gianluca.guida@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agopv-grub: On x86_64, also build an x86_32 pv-grub
Keir Fraser [Thu, 14 Aug 2008 12:46:48 +0000 (13:46 +0100)]
pv-grub: On x86_64, also build an x86_32 pv-grub

This requires suffixing obj directories and having grub compiled
outside sources.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoFix restore crash with certain guest memory sizes
Keir Fraser [Thu, 14 Aug 2008 09:18:08 +0000 (10:18 +0100)]
Fix restore crash with certain guest memory sizes

This fixes a crash when restoring guests with certain memory sizes (eg
223MB).  The ROUNDUP in the call to memcpy, was the main offender, but
I didn't care for the inplace resizing of the p2m entries either.

Signed-off-by: Bruce Rogers <brogers@novell.com>
17 years agox86, shadow: Fix OOS on domain crash.
Keir Fraser [Thu, 14 Aug 2008 09:14:32 +0000 (10:14 +0100)]
x86, shadow: Fix OOS on domain crash.

I couldn't reproduce the Nevada crash on my testbox, but this should
fix the first Xen crash that was seen in the Nevada HVM (bugzilla
#1322).

What I think most probably happened there is that the set_l2e call in
shadow_get_and_create_l1e() has tried to resync a page, but somehow we
weren't unable to remove the shadow (the real bug we should actually
look after). sh_resync() then removes the page from the OOS hash and
later in the page fault path we find the gw.l1mfn to be still OOS, so
we try to update the snapshot and the bug happens.

This should fix this and other unlikely (like sh_unsync() failing to
remove for hash collision the current gw.l1mfn) cases.

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
17 years ago[ia64] remove the runtime warning when hvmop_set_mem_type is used.
Isaku Yamahata [Thu, 14 Aug 2008 02:00:35 +0000 (11:00 +0900)]
[ia64] remove the runtime warning when hvmop_set_mem_type is used.

remove the runtime warning when HVMOP_set_mem_type is used.
But the hypercall just returns -ENOSYS. It isn't implemented yet.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agomerge with xen-unstable.hg
Isaku Yamahata [Wed, 13 Aug 2008 13:22:21 +0000 (22:22 +0900)]
merge with xen-unstable.hg

17 years agoshadow: Fix BUILD_BUG_ON().
Keir Fraser [Wed, 13 Aug 2008 12:54:17 +0000 (13:54 +0100)]
shadow: Fix BUILD_BUG_ON().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoMSI-X: enhancement
Keir Fraser [Wed, 13 Aug 2008 12:45:39 +0000 (13:45 +0100)]
MSI-X: enhancement

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
17 years agoxend: Allow xenconsoled to be passed arguments at startup
Keir Fraser [Wed, 13 Aug 2008 12:42:30 +0000 (13:42 +0100)]
xend: Allow xenconsoled to be passed arguments at startup

Attached patch allows to pass arguments to xenconsoled
via XENCONSOLED_TRACE env. variable analogous to xenstored.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agoxend: Make sure that 'PV_kernel' config param is not blank when
Keir Fraser [Wed, 13 Aug 2008 12:40:38 +0000 (13:40 +0100)]
xend: Make sure that 'PV_kernel' config param is not blank when
assigning it to 'loader' param. This fixes a failure of 'xm create'
via xen-api.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
17 years agox86: Simplify arch_virq_is_global().
Keir Fraser [Wed, 13 Aug 2008 12:39:40 +0000 (13:39 +0100)]
x86: Simplify arch_virq_is_global().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Fix shadow code's handling of p2m superpage changes
Keir Fraser [Wed, 13 Aug 2008 11:13:59 +0000 (12:13 +0100)]
x86: Fix shadow code's handling of p2m superpage changes

When a p2m superpage entry is shattered, it's important not to
unshadow any parts of the 2MB region that are still there afterwards.
Otherwise shattering a superpage that contains the guest's top-level
pagetable will cause the guest to be killed.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
17 years agox86 shadow: Relax BUILD_BUG_ON() regarding struct sizes.
Keir Fraser [Wed, 13 Aug 2008 11:12:08 +0000 (12:12 +0100)]
x86 shadow: Relax BUILD_BUG_ON() regarding struct sizes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86, shadow, oos: Remove overzealous warning and simplify code.
Keir Fraser [Wed, 13 Aug 2008 10:09:46 +0000 (11:09 +0100)]
x86, shadow, oos: Remove overzealous warning and simplify code.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86 mcheck: mce_disabled is not __initdata: it's referenced on S3 resume
Keir Fraser [Wed, 13 Aug 2008 08:57:42 +0000 (09:57 +0100)]
x86 mcheck: mce_disabled is not __initdata: it's referenced on S3 resume
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agovtd: Add checking on return value of init_vtd_hw()
Keir Fraser [Wed, 13 Aug 2008 08:56:15 +0000 (09:56 +0100)]
vtd: Add checking on return value of init_vtd_hw()

This ensures correct actions will be taken if init_vtd_hw()
fails. Especially, when 'iommu=force' is used, Xen should not
boot if init_vtd_hw() fails.

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years ago[IA64] fix vtlb flush
Isaku Yamahata [Wed, 13 Aug 2008 04:18:06 +0000 (13:18 +0900)]
[IA64] fix vtlb flush

Live migration with uninitialized vcpu will crash xen by null pointer.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years agoUpdate Xen version for 3.3.0-rc5-pre
Keir Fraser [Tue, 12 Aug 2008 09:23:34 +0000 (10:23 +0100)]
Update Xen version for 3.3.0-rc5-pre

17 years agoAdded tag 3.3.0-rc4 for changeset 96d0a48e87ee46ba7b73e8c906a7e2e0baf60e2e
Keir Fraser [Tue, 12 Aug 2008 09:23:02 +0000 (10:23 +0100)]
Added tag 3.3.0-rc4 for changeset 96d0a48e87ee46ba7b73e8c906a7e2e0baf60e2e

17 years agoUpdate Xen version for 3.3.0-rc4
Keir Fraser [Tue, 12 Aug 2008 09:22:53 +0000 (10:22 +0100)]
Update Xen version for 3.3.0-rc4

17 years agoxend/xenapi: Initialize a VLAN PIF's record with the MAC and MTU size
Keir Fraser [Mon, 11 Aug 2008 15:51:02 +0000 (16:51 +0100)]
xend/xenapi: Initialize a VLAN PIF's record with the MAC and MTU size
of the created network interface

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoAdd guide to using the kexec and kdump facility in xen.
Keir Fraser [Mon, 11 Aug 2008 14:44:47 +0000 (15:44 +0100)]
Add guide to using the kexec and kdump facility in xen.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years agoxend/xen-api: Have the VDI record return the security label
Keir Fraser [Mon, 11 Aug 2008 14:01:34 +0000 (15:01 +0100)]
xend/xen-api: Have the VDI record return the security label

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agostubdom: for safety, tell lwip we use the heap in the event handler
Keir Fraser [Mon, 11 Aug 2008 14:00:06 +0000 (15:00 +0100)]
stubdom: for safety, tell lwip we use the heap in the event handler

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agopage scrub: Serialise softirq with a new lock.
Keir Fraser [Mon, 11 Aug 2008 11:20:11 +0000 (12:20 +0100)]
page scrub: Serialise softirq with a new lock.
Avoids holding up acquiring page_scrub_lock in free_domheap_pages().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxend: Better support for legacy HVM config of ia64
Keir Fraser [Mon, 11 Aug 2008 10:27:40 +0000 (11:27 +0100)]
xend: Better support for legacy HVM config of ia64

On ia64, direct Linux boot is not supported, and 'Flash.fd' or
'guest_firmware.bin' has been used as a value of the 'kernel'
option. Cset:17016 ignores those strings and overrides them with
"/usr/lib/xen/boot/hvmloader".

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoSerialize scrubbing pages
Keir Fraser [Mon, 11 Aug 2008 10:18:50 +0000 (11:18 +0100)]
Serialize scrubbing pages

I noticed that parallel scrubbing pages is not efficient
due to spinlock contention. (also memory bandwidth?)
Actually heap_lock becomes a bottleneck.

In my investigation, it often takes 1 millisec just to acquire
the lock on ia64 with 8cpus. It's very wasteful.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years agox86, xenoprof: Add Nehalem to list of ppro cores
Keir Fraser [Mon, 11 Aug 2008 09:52:18 +0000 (10:52 +0100)]
x86, xenoprof: Add Nehalem to list of ppro cores

Straight port from Linus's tree:

commit 4b9f12a3779c548b68bc9af7d94030868ad3aa1b
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Thu Jul 24 17:29:00 2008 -0700

    x86/oprofile/nmi_int: add Nehalem to list of ppro cores

    ..otherwise oprofile will fall back on that poor timer interrupt.

    Also replace the unreadable chain of if-statements with a
    "switch()"
    statement instead. It generates better code, and is a lot clearer.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
17 years agotools build: add cross-install to find the right "strip"
Keir Fraser [Mon, 11 Aug 2008 09:49:57 +0000 (10:49 +0100)]
tools build: add cross-install to find the right "strip"

Signed-off-by: Aron Griffis <aron@hp.com>
17 years agomerge with xen-unstable.hg
Isaku Yamahata [Mon, 11 Aug 2008 02:04:52 +0000 (11:04 +0900)]
merge with xen-unstable.hg

17 years ago[IA64] Print ACPI signature before overwriting it
Isaku Yamahata [Mon, 11 Aug 2008 01:59:39 +0000 (10:59 +0900)]
[IA64] Print ACPI signature before overwriting it

We're printing out the ACPI table signature after we overwrite it
with "OEMx".  Let's print it out before so we know that the table was.
Also limit print to 4 chars so we don't get garbage output.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agox86: adjust placement of pause insn in _raw_spin_lock()
Keir Fraser [Fri, 8 Aug 2008 14:02:19 +0000 (15:02 +0100)]
x86: adjust placement of pause insn in _raw_spin_lock()

React to lock becoming available as quickly as possible.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agox86: also show event upcall mask when dumping guest state
Keir Fraser [Fri, 8 Aug 2008 14:00:01 +0000 (15:00 +0100)]
x86: also show event upcall mask when dumping guest state

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Update guest timestamps on frequency change.
Keir Fraser [Fri, 8 Aug 2008 11:08:09 +0000 (12:08 +0100)]
x86: Update guest timestamps on frequency change.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Reduce restrictions on dom0_max_vcpus.
Keir Fraser [Fri, 8 Aug 2008 10:22:44 +0000 (11:22 +0100)]
x86: Reduce restrictions on dom0_max_vcpus.
Place a BUILD_BUG_ON() in mm.c to replace one of the restrictions.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoia64: PV driver domains - ugly python hacks
Keir Fraser [Fri, 8 Aug 2008 09:53:40 +0000 (10:53 +0100)]
ia64: PV driver domains - ugly python hacks

x86 IOMMU support added a lot of assumptions about what PCI buses look
like and where to find bridge devices.  On ia64, we don't yet have
virtualization friendly IOMMUs, so for the moment, we just want to
keep "unsafe" PV PCI pass through working as well as it did in Xen
3.2. Looking at the code, it almost seems like x86 has thrown out
support for the old style driver domain.  Things that don't
necessarily work on every PCI compliant architecture:

      * You can't assume that just because there's a device at 01:01.0
        that there's also a bridge at 01:00.0 and blow-up when you
        don't find it.  On HP ia64 boxes, PCI root bridges are not
        necessarily exposed as a PCI device.  This pretty much means
        we can't call into any of the "FLR" code paths.
      * BAR alignment: it's hard to have BAR alignment when your page
        size is 16k.  This wasn't a requirement for previous PV driver
        domains, so I assume it's only for IOMMU support.

This is ugly, so I'm open to suggestions.  It seems that all of these
architecture checks could be replaced by checking some "iommu_present"
variable to test whether the extra requirements are necessary.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoprefix mini-os lists with minios_, drop QEMU_ prefix from QEMU_LIST_*
Keir Fraser [Fri, 8 Aug 2008 09:48:48 +0000 (10:48 +0100)]
prefix mini-os lists with minios_, drop QEMU_ prefix from QEMU_LIST_*

That permits to reduce the amount of difference with upstream.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoioemu: fix typo in serial emulation
Keir Fraser [Fri, 8 Aug 2008 09:46:39 +0000 (10:46 +0100)]
ioemu: fix typo in serial emulation

There is a small bug on the serial emulation code that prevents kgdb
from working correctly over the serial.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
17 years agostubdom: turn off_t 64bit on x86
Keir Fraser [Fri, 8 Aug 2008 09:45:30 +0000 (10:45 +0100)]
stubdom: turn off_t 64bit on x86

We can decide to make off_t 64bit instead of implementing the LFS
tricks.  Name corresponding functions foo64 to permit simple caml
programs linking.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years ago[IA64] Remove VT-i no opcode warning
Isaku Yamahata [Fri, 8 Aug 2008 02:38:21 +0000 (11:38 +0900)]
[IA64] Remove VT-i no opcode warning

I've never been sure why we have such a big scary warning around this,
when I have yet to see any system that does provide opcode decoding.
Let's remove it.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Cleanup ACPI checksum warnings
Isaku Yamahata [Fri, 8 Aug 2008 02:38:20 +0000 (11:38 +0900)]
[IA64] Cleanup ACPI checksum warnings

On bootup, I get a couple of these:

(XEN) ACPI Warning (tbutils-0219): Incorrect checksum in table [APIC] - CE, should be 04 [20070126]
(XEN) ACPI Warning (tbutils-0219): Incorrect checksum in table [APIC] - CE, should be 04 [20070126]

I don't remember seeing them before, but they're pretty easy to fix.
The problem is we update the lsapics, causing the checksum to be wrong,
then we look for platform interrupt sources, which spits out a warning,
and finally we look for the MADT again to fix the checksum, which also
prints a warning.  If we grab a pointer to the MADT before these, we can
update the checksum after each step and avoid the warnings.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] backport EFI version warning fix
Isaku Yamahata [Fri, 8 Aug 2008 02:38:17 +0000 (11:38 +0900)]
[IA64] backport EFI version warning fix

We have boxes that report EFI version 2.00 now, so adopt upstream linux
patch to only warn on versions less that 1.00.  Based on linux-2.6.git
873ec746158403af82c57ce26780166aafc159e1.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Fix PV driver domains - xen stubs
Isaku Yamahata [Fri, 8 Aug 2008 02:38:08 +0000 (11:38 +0900)]
[IA64] Fix PV driver domains - xen stubs

Stub out new hypercalls in the hypervisor.  The only odd one here is
map/unmap_pirq.  This seems to be for MSI support, which I don't believe
we currently support for driver domains, so this is actually similar to
the x86 code path.  The tools code doesn't allow us to return -ENOSYS
here :(

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoUpdate Xen version for 3.3.0-rc4-pre
Keir Fraser [Thu, 7 Aug 2008 08:56:22 +0000 (09:56 +0100)]
Update Xen version for 3.3.0-rc4-pre

17 years agoAdded tag 3.3.0-rc3 for changeset 57fca3648f25dcc085ee380954342960a7979987
Keir Fraser [Thu, 7 Aug 2008 08:55:57 +0000 (09:55 +0100)]
Added tag 3.3.0-rc3 for changeset 57fca3648f25dcc085ee380954342960a7979987

17 years agoUpdate Xen version for 3.3.0-rc3
Keir Fraser [Thu, 7 Aug 2008 08:55:48 +0000 (09:55 +0100)]
Update Xen version for 3.3.0-rc3

17 years agounmodified drivers: update README
Keir Fraser [Thu, 7 Aug 2008 08:05:54 +0000 (09:05 +0100)]
unmodified drivers: update README

update unmodified_drivers/linux-2.6/README.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoxm: fix trivial typo. s/ciredump-restore/coredump-restart/
Keir Fraser [Thu, 7 Aug 2008 08:05:31 +0000 (09:05 +0100)]
xm: fix trivial typo. s/ciredump-restore/coredump-restart/

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoRevert 18242:f20fb83dac2c (Xen 3.3 after all)
Keir Fraser [Thu, 7 Aug 2008 08:04:53 +0000 (09:04 +0100)]
Revert 18242:f20fb83dac2c (Xen 3.3 after all)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agomerge with xen-unstable.hg
Isaku Yamahata [Thu, 7 Aug 2008 02:57:34 +0000 (11:57 +0900)]
merge with xen-unstable.hg

17 years ago[IA64] allocate percpu area in the xen va area.
Isaku Yamahata [Thu, 7 Aug 2008 02:47:34 +0000 (11:47 +0900)]
[IA64] allocate percpu area in the xen va area.

To guarantee that the percpu is pinned down,
move its virtual address from the xen identity mapped area
to the xen va area which is pinned by DTR[IA64_TR_KERNEL].
Then unnecessary tlb miss fault will be avoided.
Sometimes per cpu area is accessed from very critial
point where tlb miss isn't allowed.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoUse legacy ioemu on ia64 for Xen 4.0
Keir Fraser [Wed, 6 Aug 2008 14:19:13 +0000 (15:19 +0100)]
Use legacy ioemu on ia64 for Xen 4.0

Signed-off-by: Aron Griffis <aron@hp.com>
17 years agoiommu: Make the iommu boot parameters more generic and flexible
Keir Fraser [Wed, 6 Aug 2008 14:18:17 +0000 (15:18 +0100)]
iommu: Make the iommu boot parameters more generic and flexible

Make the 'iommu' boot parameter take a comma separated value
indicating whether iommu is required to boot and whether to enable
iommu for pv domains.

Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
17 years agoioemu-stubdom: fix initialization of vm_change_state_head
Keir Fraser [Wed, 6 Aug 2008 10:38:42 +0000 (11:38 +0100)]
ioemu-stubdom: fix initialization of vm_change_state_head
That is actually a no-op since it just sets it to NULL again, but
makes sense.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agostubdom: fix documentation file names
Keir Fraser [Wed, 6 Aug 2008 10:38:20 +0000 (11:38 +0100)]
stubdom: fix documentation file names

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agovtd: Update vtd.txt
Keir Fraser [Wed, 6 Aug 2008 09:56:58 +0000 (10:56 +0100)]
vtd: Update vtd.txt

Add "iommu=1" option in grub, due to VT-d is not enabled by default.

In addition, describes how to enable MSI/MSI-x for assigned devices.

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agoioemu: Fix I/O BAR mapping problem
Keir Fraser [Wed, 6 Aug 2008 09:54:55 +0000 (10:54 +0100)]
ioemu: Fix I/O BAR mapping problem

Check BAR type indicator to avoid I/O BAR being mistaken as 64-bit =
memory BAR.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
17 years agoioemu: fix a bug in serial_load
Keir Fraser [Wed, 6 Aug 2008 08:46:25 +0000 (09:46 +0100)]
ioemu: fix a bug in serial_load

Currently we are trying to read the same value twice in the
serial_load function, this patch fixes that.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
17 years agovtd: Tiny cleanups.
Keir Fraser [Wed, 6 Aug 2008 08:40:50 +0000 (09:40 +0100)]
vtd: Tiny cleanups.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
17 years agoxend: Expose persistent domain path in xend conf file
Keir Fraser [Wed, 6 Aug 2008 08:38:43 +0000 (09:38 +0100)]
xend: Expose persistent domain path in xend conf file

This patch exposes the persistent (aka managed) domain path in xend
configuration file.  This option is already supported in XendOptions
but is not annotated in the configuration file.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
17 years agovtd: Add 'force_iommu' option
Keir Fraser [Wed, 6 Aug 2008 08:37:53 +0000 (09:37 +0100)]
vtd: Add 'force_iommu' option

For security reasons, add 'force_iommu' option to ensure that it
should not be possible under any conditions to boot Xen w/o VT-d being
enabled. This would only be specified by users that really want the
added security.

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agovtd: cleanups
Keir Fraser [Wed, 6 Aug 2008 08:37:01 +0000 (09:37 +0100)]
vtd: cleanups
- Flush iotlb in iommu_page_mapping() after page mapping
- Change BUG_ON() to ASSERT() in iommu_flush_iotlb_psi()
- Add iommu_flush_write_buffer() if iommu_flush_iotlb_psi() fails in
  dma_pte_clear_one()
- Change panic() message to easily know where panic happens

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agoinstall more documentation to /usr/share/doc/xen and /etc/xen
Keir Fraser [Wed, 6 Aug 2008 08:34:55 +0000 (09:34 +0100)]
install more documentation to /usr/share/doc/xen and /etc/xen
Also resync xmexample3 with xmexample1 and 2.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agostubdom: add *_URL variables to permit to use e.g. local mirrors.
Keir Fraser [Wed, 6 Aug 2008 08:33:10 +0000 (09:33 +0100)]
stubdom: add *_URL variables to permit to use e.g. local mirrors.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoUpdate version number 3.3->4.0.
Keir Fraser [Tue, 5 Aug 2008 12:55:14 +0000 (13:55 +0100)]
Update version number 3.3->4.0.

17 years agoRemove vncconsole from example HVM configs. It's deprecated.
Keir Fraser [Tue, 5 Aug 2008 12:45:53 +0000 (13:45 +0100)]
Remove vncconsole from example HVM configs. It's deprecated.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxend: vncconsole config option mustn't be a string
Keir Fraser [Tue, 5 Aug 2008 12:45:25 +0000 (13:45 +0100)]
xend: vncconsole config option mustn't be a string
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoioemu: Do not pass -m (memory) option to qemu, as ioemu-remote rejects
Keir Fraser [Tue, 5 Aug 2008 12:23:59 +0000 (13:23 +0100)]
ioemu: Do not pass -m (memory) option to qemu, as ioemu-remote rejects
memory sizes greater than 2GB when built as a 32-bit binary.

Instead, direct HVM Linux loading approximates end of low memory via a
different method.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Remove WARN_ON() in domain_relinquish_resources().
Keir Fraser [Tue, 5 Aug 2008 09:48:53 +0000 (10:48 +0100)]
x86: Remove WARN_ON() in domain_relinquish_resources().
It can fire if domain0 (e.g., qemu-dm) has Xen heap pages mapped.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agofs-back: build fix for BSD
Keir Fraser [Tue, 5 Aug 2008 08:59:01 +0000 (09:59 +0100)]
fs-back: build fix for BSD
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agoxend: remove default NIC in qemu when no vif configured
Keir Fraser [Tue, 5 Aug 2008 08:29:42 +0000 (09:29 +0100)]
xend: remove default NIC in qemu when no vif configured

Latest QEMU would add a NIC device by default, unless specify the
"-nic none". So end user still get a unusable NIC even no vif in the
config file.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
17 years agox86: debug key prints memory node info of each domain
Keir Fraser [Tue, 5 Aug 2008 08:28:24 +0000 (09:28 +0100)]
x86: debug key prints memory node info of each domain

This patch will collect memory location (the domain has how many pages
in different node) of each domain and display if you input debug key.

Signed-off-by: Zhou Ting <ting.g.zhou@intel.com>
17 years agox86: Actually mdelay() in machine_restart().
Keir Fraser [Tue, 5 Aug 2008 08:25:10 +0000 (09:25 +0100)]
x86: Actually mdelay() in machine_restart().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoRevert 18232:2e47722d3501
Keir Fraser [Mon, 4 Aug 2008 22:00:30 +0000 (23:00 +0100)]
Revert 18232:2e47722d3501

17 years agoRevert to old ioemu for now.
Keir Fraser [Mon, 4 Aug 2008 19:54:22 +0000 (20:54 +0100)]
Revert to old ioemu for now.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agostubdom: install stubdom kernels as data
Keir Fraser [Mon, 4 Aug 2008 17:11:12 +0000 (18:11 +0100)]
stubdom: install stubdom kernels as data
since they do not need to be directly executed

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoPV-GRUB: add sample config file
Keir Fraser [Mon, 4 Aug 2008 17:10:51 +0000 (18:10 +0100)]
PV-GRUB: add sample config file

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agox86: rendezvous-based local time calibration
Keir Fraser [Mon, 4 Aug 2008 17:08:51 +0000 (18:08 +0100)]
x86: rendezvous-based local time calibration

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoRevert 18102:85a83b919653 (clocksource=tsc)
Keir Fraser [Mon, 4 Aug 2008 16:04:21 +0000 (17:04 +0100)]
Revert 18102:85a83b919653 (clocksource=tsc)

17 years agoRevert 18150:b47e503f3282
Keir Fraser [Mon, 4 Aug 2008 15:57:42 +0000 (16:57 +0100)]
Revert 18150:b47e503f3282

17 years agostubdom: rename the ioemu-dm domain config file to domainname-dm,
Keir Fraser [Mon, 4 Aug 2008 15:47:52 +0000 (16:47 +0100)]
stubdom: rename the ioemu-dm domain config file to domainname-dm,
which is shorter, makes more sense, and sorts better.

From: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agomini-os: Fix 32bit compilation of fs-front.c
Keir Fraser [Mon, 4 Aug 2008 15:45:11 +0000 (16:45 +0100)]
mini-os: Fix 32bit compilation of fs-front.c

Reported-by: Trolle Selander <trolle.selander@eu.citrix.com>
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoFix make help for stubdom
Keir Fraser [Mon, 4 Aug 2008 15:44:14 +0000 (16:44 +0100)]
Fix make help for stubdom

This patch fixes "make help".
"make stubdomain" does not work.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
17 years agoFix a few typos
Keir Fraser [Mon, 4 Aug 2008 10:25:20 +0000 (11:25 +0100)]
Fix a few typos

From: Diego Ongaro <diego.ongaro@eu.citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years ago.hgignore: ignore any kind of tag file anywhere
Keir Fraser [Mon, 4 Aug 2008 10:16:02 +0000 (11:16 +0100)]
.hgignore: ignore any kind of tag file anywhere

From: Diego Ongaro <diego.ongaro@eu.citrix.com>
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agostubdom: Fix the Makefile to avoid brace expansion
Keir Fraser [Mon, 4 Aug 2008 10:15:24 +0000 (11:15 +0100)]
stubdom: Fix the Makefile to avoid brace expansion

While building stubdom, I saw an error.

  install: cannot stat `lib/{config,header,pci,types}.h': No such file
  or directory

It seems brace expansion is not available in some environments, so we
had better avoid using it.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
17 years ago.hgignore updates for MiniOS
Keir Fraser [Mon, 4 Aug 2008 10:13:27 +0000 (11:13 +0100)]
.hgignore updates for MiniOS

From: Diego Ongaro <diego.ongaro@eu.citrix.com>
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agovtd: Fix a missing spin_unlock_irqrestore()
Keir Fraser [Mon, 4 Aug 2008 10:12:15 +0000 (11:12 +0100)]
vtd: Fix a missing spin_unlock_irqrestore()

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
17 years agoxend: Fix handling of pci creation failure in device_create().
Keir Fraser [Mon, 4 Aug 2008 10:11:24 +0000 (11:11 +0100)]
xend: Fix handling of pci creation failure in device_create().

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
17 years agoxm on xenapi: Enable 'xm pci-list' via Xen-API
Keir Fraser [Mon, 4 Aug 2008 10:11:02 +0000 (11:11 +0100)]
xm on xenapi: Enable 'xm pci-list' via Xen-API

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
17 years agoxend: fix finding pci capability
Keir Fraser [Mon, 4 Aug 2008 10:10:27 +0000 (11:10 +0100)]
xend: fix finding pci capability

Xend doesn't start up on my laptop which has a PCI-CardBus bridge.
PCI-CardBus bridge device doesn't have a capability chain.
Also sanity checking of a capability chain.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years agostubdom: fix read-only disks access
Keir Fraser [Mon, 4 Aug 2008 10:07:17 +0000 (11:07 +0100)]
stubdom: fix read-only disks access

There is no need for a flush on read-only disks.  It would actually
even error out and disturb the guest.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoxm: fix up exception handling when spawning vnc viewer.
Keir Fraser [Mon, 4 Aug 2008 10:06:31 +0000 (11:06 +0100)]
xm: fix up exception handling when spawning vnc viewer.

From: Ian Jackson <Ian.Jackson@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoDelay 5 seconds on reboot *after* stopping all CPUs.
Keir Fraser [Mon, 4 Aug 2008 09:59:22 +0000 (10:59 +0100)]
Delay 5 seconds on reboot *after* stopping all CPUs.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoFix stubdom makefile mistake.
Keir Fraser [Fri, 1 Aug 2008 14:38:07 +0000 (15:38 +0100)]
Fix stubdom makefile mistake.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agostubdom: fix clean target after distclean
Keir Fraser [Fri, 1 Aug 2008 14:25:02 +0000 (15:25 +0100)]
stubdom: fix clean target after distclean

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>