Keir Fraser [Fri, 11 Jul 2008 11:51:26 +0000 (12:51 +0100)]
x86: allow control domain to limit machine addresses given to a particular guest
This allows domains which make buggy assumptions about the maximum
possible MFN to be worked around.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Keir Fraser [Fri, 11 Jul 2008 11:49:14 +0000 (12:49 +0100)]
iommu: make interrupt remapping more generic
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Keir Fraser [Fri, 11 Jul 2008 11:48:45 +0000 (12:48 +0100)]
amd iommu: add interrupt remapping support
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Keir Fraser [Fri, 11 Jul 2008 11:47:50 +0000 (12:47 +0100)]
xend: Ignore errors from dying domains in RPC server
When a domain is in the process of shutting down there is a small
window when the domain is known to XenD, but it will be unable to form
an SXPR for it due it being in the middle of device hot-unplug. This
causes the 'xm list' command to totally fail with an error like
# xm list
Error: Device 0 not connected
Usage: xm list [options] [Domain, ...]
The 'xm list' command calls into the 'domains' method of
XMLRPCServer.py in XenD. This method just iterates over the list of
domains, fetching the sxpr for each in turn, but with no exception
handling. So if a single domain fails to generate an sxpr, no data is
returned even for other domains which are still functional. This
patch simply makes XenD ignore and skip over domains which throw an
exception, logging the problematic domain.
NB, this problem only hits 'xm list' if it is configured to use the
legay XMLRPC server instead of XenAPI.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Keir Fraser [Fri, 11 Jul 2008 11:46:33 +0000 (12:46 +0100)]
vt-d: Fix Host Address Width
Host Address Width of the platform should be computed as N+1,
where N is the value reported in dmar acpi table.
Signed-off-by: Ameya Palande <2ameya@gmail.com>
Keir Fraser [Fri, 11 Jul 2008 11:45:06 +0000 (12:45 +0100)]
stubdom: do not use realpath, new in make 3.81
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Fri, 11 Jul 2008 11:44:15 +0000 (12:44 +0100)]
Fix memory leak in xend
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Keir Fraser [Fri, 11 Jul 2008 11:43:33 +0000 (12:43 +0100)]
tapdisk: in case O_DIRECT fails, retry again with o_flags but
O_DIRECT, instead of fixed value O_RD_WR | O_LARGEFILE
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Fri, 11 Jul 2008 11:33:00 +0000 (12:33 +0100)]
ioemu: drop shadow vram
We can now actually drop the shadow vram entirely thanks to dirty page
tracking.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Fri, 11 Jul 2008 11:31:32 +0000 (12:31 +0100)]
hvmloader, rombios: Make use of new rom-lock facility in ioemu platform device.
Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 10 Jul 2008 16:33:23 +0000 (17:33 +0100)]
vt-d: Fixup when mapping devices on non-PCIe buses
The source-id for transactions on non-PCIe buses seem to originate
from devfn=0 on the secondary bus behind the bridge. Map that ID as
well when assigning the device. The ID to use in these scenarios is
not particularly well documented anywhere.
Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
Keir Fraser [Thu, 10 Jul 2008 16:29:06 +0000 (17:29 +0100)]
ioemu: drop unused 4MB video memory
Since we only emulate the cirrus VGA video card which is only able to
expose 4MB video memory, we don't need more than that.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Thu, 10 Jul 2008 15:15:37 +0000 (16:15 +0100)]
ioemu: create a rom-protect platform flag.
Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 10 Jul 2008 14:45:18 +0000 (15:45 +0100)]
x86 hvm: New boot option 'softtsc' to cause RDTSC to be trapped-and-emulated.
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 10 Jul 2008 14:32:18 +0000 (15:32 +0100)]
stubdom: Fixes for gcc 4.2.4 32bit
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Thu, 10 Jul 2008 14:30:39 +0000 (15:30 +0100)]
x86 hvm: New hvm_op "set_mem_type" which allows marking ram page
ranges as ro, rw, or mmio_dm.
Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
Keir Fraser [Thu, 10 Jul 2008 14:19:56 +0000 (15:19 +0100)]
x86: Do not allow write access to p2m_ram_ro memory type.
Log and discard such access attempts.
Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 10 Jul 2008 13:20:15 +0000 (14:20 +0100)]
PV-GRUB: Enable xfs support
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Thu, 10 Jul 2008 13:17:28 +0000 (14:17 +0100)]
PV-GRUB: xfs support
i386 doesn't have PAE anyway.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Thu, 10 Jul 2008 13:15:46 +0000 (14:15 +0100)]
stubdom: fixes to compile with qemu-xen
This adds fixes to the stub domain build into compiling Ian Jackson's
qemu-xen. The most notable change is that mini-os headers now
#include each other through a mini-os/ prefix, so that we can turn all
-I into -isystem and still be sure that we include Mini-OS headers
(and not qemu's console.h or blktaplib's list.h for instance...).
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Thu, 10 Jul 2008 10:26:42 +0000 (11:26 +0100)]
intel: Stricter check for cpuid feature mask MSR availability.
Signed-off-by: Liping Ke <liping.ke@intel.com>
Signed-off-by: Jun Nakajima <nakajima.jun@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 10 Jul 2008 09:07:32 +0000 (10:07 +0100)]
vt-d: Fix double spin_lock_irqsave().
The duplicate spin_lock_irqsave() flushes the original EFLAGS saved,
and thus disables local irqs permanently.
Signed-off-by: Xin, Xiaohui <Xiaohui.xin@intel.com>
Signed-off-by: Tian, Kevin <Kevin.Tian@intel.com>
Keir Fraser [Thu, 10 Jul 2008 09:02:15 +0000 (10:02 +0100)]
Fix a couple of Grzegorz Milos copyright lines.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 9 Jul 2008 15:00:05 +0000 (16:00 +0100)]
minios: Add missing fcntl.h.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 9 Jul 2008 14:58:20 +0000 (15:58 +0100)]
stubdom: add stub functions to reduce qemu patches
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 9 Jul 2008 13:21:42 +0000 (14:21 +0100)]
stubdom: Add root Makefile targets, disabled by default for now
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 9 Jul 2008 13:08:58 +0000 (14:08 +0100)]
Make PCI device release function generic
Release all pci devices before doing iommu domain teardown. Also
moved pdev_flr() into generic pci code.
Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
Keir Fraser [Wed, 9 Jul 2008 12:01:16 +0000 (13:01 +0100)]
stubdom: fix missing evtchn.h header
We actually do not need any since we include MiniOS' headers.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 9 Jul 2008 12:00:23 +0000 (13:00 +0100)]
Update .hgignore
Keir Fraser [Wed, 9 Jul 2008 11:59:40 +0000 (12:59 +0100)]
vgabios: Delete autogenerated file from repository.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 9 Jul 2008 10:51:46 +0000 (11:51 +0100)]
stubdom: make compilation independent of tools/ by building our own copy of the includes
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 9 Jul 2008 10:42:45 +0000 (11:42 +0100)]
Some latest Intel CPU models support cpuid feature mask.
CPUID.1.EAX>0x00010674.CPUID mask feature is intended to be used to
limit the feature flags reported by CPUID.1.EDX:ECX.
Signed-off-by: Liping Ke <liping.ke@intel.com>
Signed-off-by: Jun Nakajima <nakajima.jun@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 9 Jul 2008 10:05:26 +0000 (11:05 +0100)]
Switching to merged (git) qemu by default
The merged qemu tree is now on xenbits at:
http://xenbits.xensource.com/git-http/qemu-xen-unstable.git
(and a corresponding staging tree in /staging).
That's a raw git tree fetchable by `git-clone http://....', so not
really browseable. There will be gitweb, and a real git server, set
up shortly, as well as a one-way Mercurial gateway.
The tools/ioemu subdirectory will remain in the xen-unstable tree for
this release, as an alternative.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Keir Fraser [Wed, 9 Jul 2008 10:04:18 +0000 (11:04 +0100)]
p2m: Support page orders other than 0 (4kB) and 9 (2MB)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 9 Jul 2008 10:02:37 +0000 (11:02 +0100)]
x86 p2m superpage fix: Re-insert missing shadow code from the original
patch that was submitted to xen-devel, to remove mappings when we're
removing a p2m 2mb page.
Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
Keir Fraser [Wed, 9 Jul 2008 09:41:49 +0000 (10:41 +0100)]
Blktapctrl compatibility layer
I originally had just changed the NEWINTF ioctl to send over 48-bits
of information, which works on 64-bit but not on 32-bit (since the arg
is an unsigned long). Additionally, the previous changes would break
an older userland against a new kernel. For that reason, introduce a
new ioctl (NEWINTF_EXT) that fixes both of these problems. This is
the dom0 userland side.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
Keir Fraser [Wed, 9 Jul 2008 09:39:42 +0000 (10:39 +0100)]
ioemu: pass-through: XC_PAGE_SIZE should be used
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Keir Fraser [Wed, 9 Jul 2008 09:39:13 +0000 (10:39 +0100)]
ioemu: pass-through: pt_bar_mapping fix
In pt_bar_mapping function, r->addr should not be changed by invalid
value(-1). This value(-1) causes failure of mapping BAR when I/O Space
or Memory Space enable bit is updated repeatedly by native windows
driver.
This situation occurs in Windows Vista guest.
Signed-off-by: Naoki Nishiguchi <nisiguti@jp.fujitsu.com>
Keir Fraser [Wed, 9 Jul 2008 09:38:20 +0000 (10:38 +0100)]
Fix xm vcpu-pin for Domain-0
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Keir Fraser [Wed, 9 Jul 2008 09:37:20 +0000 (10:37 +0100)]
Revert dependency on new GNUMake feature.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 8 Jul 2008 16:25:04 +0000 (17:25 +0100)]
stubdom: use a newlib snapshot instead of the slow cvs checkout.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 8 Jul 2008 16:15:23 +0000 (17:15 +0100)]
stubdom: do not build tapdisk as it it not supposed to build and we don't need it
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 8 Jul 2008 16:03:53 +0000 (17:03 +0100)]
Change PCI-dump debug key: Fixes boot with debug=y and perfc=y
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 8 Jul 2008 15:12:23 +0000 (16:12 +0100)]
stubdom: fix copy/paste typo in select()
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 8 Jul 2008 13:26:09 +0000 (14:26 +0100)]
Improve plumbing for calling external qemu builds
* Remove ioemu-dir before replacing it with a symlink so that
switching between trees doesn't go wrong.
* Remove case-based arrangement for making XEN_ROOT absolute
and replace with $(abspath ...) since we depend on GNU make
anyway.
* `make clean' recurses into ioemu-dir
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Keir Fraser [Tue, 8 Jul 2008 11:24:14 +0000 (12:24 +0100)]
stubdom: Fix modified_memory size calculation
>> is less prioritized than -
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 8 Jul 2008 08:28:50 +0000 (09:28 +0100)]
pvSCSI: fix xend
Previous "xend" assumed initial Xenbus state would be "Connected" when
LUN hot-plug starts. However it was not guaranteed in general, and it
may cause some problems.
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
Keir Fraser [Tue, 8 Jul 2008 08:26:58 +0000 (09:26 +0100)]
Fix passthrough of PCI capability structures.
Signed-off-by: Naoki Nishiguchi <nisiguti@jp.fujitsu.com>
Keir Fraser [Mon, 7 Jul 2008 15:13:53 +0000 (16:13 +0100)]
Revert c/s 17975 -- enumerate PCI devices in Xen allowing old dom0
kernels to work with iommu-capable platforms.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Mon, 7 Jul 2008 09:45:50 +0000 (10:45 +0100)]
MTRR virtualization for Intel EPT
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Keir Fraser [Mon, 7 Jul 2008 09:29:56 +0000 (10:29 +0100)]
ioemu: e1000: fix a TSE bug
Previously, all data descriptors used TSE context descriptor. It's not
correct, per spec, data descriptor uses TSE bit to indicate whether
use TSE. Legacy data descripter never use TSE.
Signed-off-by; Anthony Xu <anthony.xu@intel.com>
Keir Fraser [Sun, 6 Jul 2008 19:16:24 +0000 (20:16 +0100)]
Set default domain_to_node() allocation preference before dropping
domain reference when calling alloc_domheap_pages().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Sun, 6 Jul 2008 16:22:58 +0000 (17:22 +0100)]
Only use domain_to_node() on non-null domain pointer.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Sat, 5 Jul 2008 13:43:37 +0000 (14:43 +0100)]
numa: Extend MEMOP_ allocation functions to take a node argument.
The address_bits field will be limited to 8 bits and is now embedded
in the mem_flags member, which additionally contains the node number
(limited to 8 bit).
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Sat, 5 Jul 2008 13:42:08 +0000 (14:42 +0100)]
Update .hgignore list
Keir Fraser [Sat, 5 Jul 2008 13:01:27 +0000 (14:01 +0100)]
OOS cleanup: Fixup arrays instead of fixup tables.
This patch avoids compromises with evil concepts (reverse maps) in the
shadow code and limits to a maximum value the number of writable
mappings of OOS pages.
Code is simpler and performance do not degrade.
Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
Keir Fraser [Sat, 5 Jul 2008 13:00:19 +0000 (14:00 +0100)]
stubdom: fix pass-through compilation
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Sat, 5 Jul 2008 13:00:03 +0000 (14:00 +0100)]
stubdom: fix parallel build
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Sat, 5 Jul 2008 12:58:27 +0000 (13:58 +0100)]
Update changelog for pci add/remove physdevop hypercalls.
Keir Fraser [Fri, 4 Jul 2008 17:00:04 +0000 (18:00 +0100)]
stubdom: gcc-4.3 support
It seems we need to provide limits.h in the gcc-4.3 case.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Fri, 4 Jul 2008 16:58:40 +0000 (17:58 +0100)]
xen: Fix debug build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 4 Jul 2008 16:55:33 +0000 (17:55 +0100)]
Remove PCI device enumaration in VT-d code
Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
Keir Fraser [Fri, 4 Jul 2008 16:52:50 +0000 (17:52 +0100)]
Add hypercall for adding and removing PCI devices
The add hypercall will add a new PCI device and register it. The
remove hypercall will remove the pci_dev strucure for the device. The
IOMMU hardware (if present) will be notifed as well.
Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
Signed-off-by: Joshua LeVasseur <joshua.levasseur@netronome.com>
Keir Fraser [Fri, 4 Jul 2008 16:52:24 +0000 (17:52 +0100)]
Add management and locking of PCI device structures
Add functions for managing pci_dev structures. Create a list
containing all current pci_devs. Remove msi_pdev_list. Create a
read-write lock protecting all pci_dev lists. Add spinlocks for
pci_dev access. Do necessary modifications to MSI code.
Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
Keir Fraser [Fri, 4 Jul 2008 16:51:42 +0000 (17:51 +0100)]
Restructure VT-d device scope and PCI bridge handling
Create a bitmap for each device scope indicating which buses are
covered by the scope. Upon mapping PCI-PCI bridges we now detect
whether we have a bridge to a non-PCIe bus. If so, all devices mapped
on that bus are squashed to the requester-id of the bridge. Bridges
to PCIe busses are ignored. The requester-id squashing also
determines the iommu device group id for the device.
Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
Keir Fraser [Fri, 4 Jul 2008 16:51:16 +0000 (17:51 +0100)]
PCI device register/unregister + pci_dev cleanups
Move pci_dev lists from hvm to arch_domain
Move the pci_dev list from hvm to arch_domain since PCI devs are no
longer hvm specific. Also removed locking for pci_dev lists. Will
reintroduce them later.
Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
Keir Fraser [Fri, 4 Jul 2008 16:50:31 +0000 (17:50 +0100)]
stubdom: Remove obsolete patch files.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 4 Jul 2008 16:47:11 +0000 (17:47 +0100)]
stubdom: use host's gcc
This makes stubdom use the host's gcc instead of downloading/compiling
binutils+gcc. That requires a bunch of changes and even uncovered a
few bugs, but saves a lot of time.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Fri, 4 Jul 2008 15:27:44 +0000 (16:27 +0100)]
x86: MCA support.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Fri, 4 Jul 2008 12:02:31 +0000 (13:02 +0100)]
vgabios: upgrade to CVS version
cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/vgabios
co vgabios
Patchs backported:
- vgabios: Support VESA power management extensions. (cs 17692)
- x86, hvm: Allow Cirrus VGA BIOS to clear framebuffer with minimal
PIO writes. (cs 16242)
This patch fixes the bug with the IDR boot CD.
Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Keir Fraser [Fri, 4 Jul 2008 11:39:18 +0000 (12:39 +0100)]
Cleanups to suspend-event-channel patches.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 4 Jul 2008 11:20:19 +0000 (12:20 +0100)]
Fix build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 4 Jul 2008 11:17:33 +0000 (12:17 +0100)]
Revert incorrectly checked-in changes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Fri, 4 Jul 2008 11:00:38 +0000 (12:00 +0100)]
Teach xc_save to use event-channel-based domain suspend if available.
If the guest provides a suspend event channel through xenstore,
xc_save will use it in preference to the old xenstore-based method.
Xend is still informed when the domain has suspended so that it can
perform device migration in parallel with last-round migration.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
Keir Fraser [Fri, 4 Jul 2008 11:00:24 +0000 (12:00 +0100)]
Add facility to get notification of domain suspend by event channel.
This event channel will be notified when the domain transitions to the
suspended state, which can be much faster than raising VIRQ_DOM_EXC
and waiting for the notification to be propagated via xenstore.
No attempt is made here to prevent multiple subscribers (last one
wins), or to detect that the subscriber has gone away. Userspace tools
should take care.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
Keir Fraser [Fri, 4 Jul 2008 10:54:21 +0000 (11:54 +0100)]
ioemu: Support more Capability Structures (including MSI/MSI-X)
and Device Specific Registers for pt device.
I implemented following Capability Structures and Device Specific
Registers.
* Configuration Header Type 0
-> emulation.
"emulation" does not mean no accessing real I/O device.
Access real I/O device, but guest value and real value
might be different.
* MSI Capability Structure
-> emulation.
Behavior is not changed from existed implementation in
pt-msi.c, although code is changed.
* MSI-X Capability Structure
-> emulation.
Behavior is not changed from existed implementation in
pt-msi.c, although code is changed.
* PCI Express Capability Structure
-> emulation.
* PCI Power Management Capability Structure
-> emulation.
* Vital Product Data Capability Structure
-> emulation.
Emulated register is only Next Capability Pointer
Register.
All other registers are passthrough.
* Vendor Specific Capability Structure
-> emulation
Emulated register is only Next Capability Pointer
Register.
All other registers are passthrough.
* Device Specific Register (exclude capability structures)
-> passthrough.
The device drivers in guest domain are allowed to access
Device Specific Register. So various I/O device will work.
I assigned following device to guest domain, and they worked fine.
- PCIe NIC (MSI)
- PCI NIC (MSI)
- UHCI (INTx interrupt)
- IDE Controller (INTx interrupt)
Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
Keir Fraser [Fri, 4 Jul 2008 10:51:59 +0000 (11:51 +0100)]
x86: MSI interrupt storm avoidance.
Signed-off-by: Shan Haitao <Haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 3 Jul 2008 12:39:06 +0000 (13:39 +0100)]
pvSCSI: xend changes
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
Keir Fraser [Thu, 3 Jul 2008 10:32:10 +0000 (11:32 +0100)]
xm-test: Remove a policy reset from acm test case
Remove the resetting of the policy from this point in the test case
since the new default policy has the '__UNLABELED__' label, which is
not expected in subsequent checks.
Signed-off-by; Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Thu, 3 Jul 2008 10:31:40 +0000 (11:31 +0100)]
vtpm: Add two missing quotes in the vTPM hotplug script.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Thu, 3 Jul 2008 09:59:43 +0000 (10:59 +0100)]
ioemu: Explicitly define certain PCI/MSI macros.
From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 3 Jul 2008 09:57:51 +0000 (10:57 +0100)]
Update tboot tarfile to latest version in Trusted Boot SourceForge site
Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
Keir Fraser [Thu, 3 Jul 2008 09:45:46 +0000 (10:45 +0100)]
[BUILD] Support cloning Linux tree from a git repository.
Integrate the linux-2.6-tip tree as linux-2.6-tip-latest
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Keir Fraser [Thu, 3 Jul 2008 09:44:13 +0000 (10:44 +0100)]
Support building of out-of-tree merged qemu from git
This provides support for building the new merged qemu from
qemu-xen.git, or from a local checkout.
The default is still to use the in-tree version, because the patchman
infrastructure for testing, and propagation from staging to
xen-unstable, needs a small amount of work to cope with git.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Keir Fraser [Thu, 3 Jul 2008 09:27:12 +0000 (10:27 +0100)]
XenAPI: Add Direct PCI Device (DPCI) Assignment Support
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
Keir Fraser [Thu, 3 Jul 2008 09:26:16 +0000 (10:26 +0100)]
XenAPI: Add Physical PCI Device (PPCI) Support
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
Keir Fraser [Wed, 2 Jul 2008 16:28:27 +0000 (17:28 +0100)]
iommu: Fix hvm_dpci_eoi for smp guest in ioapic interrupt mode
My testing shows, for some smp guests, ent->fields.mask will not be
unmasked when hvm_dpci_eoi() is invoked at the first time. In that
case, we should rely on timeout call back to do pirq_guest_eoi() and
should not stop the per-irq timer too early.
From: Wei Wang <wei.wang2@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 2 Jul 2008 16:26:42 +0000 (17:26 +0100)]
minios: PIRQ and MSI/MSI-X support
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 2 Jul 2008 16:25:05 +0000 (17:25 +0100)]
x86 hvm: Fix RTC handling.
1. Clean up initialisation/destruction.
2. Better handle per-domain time-offset changes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 2 Jul 2008 16:10:52 +0000 (17:10 +0100)]
Do not allow HVM save/restore of a dying domain.
It's not a sensible thing to do, and it is easier than auditing all
state save/restore functions for safety (most importantly, racing
against domain_relinquish_resources).
Also place a spin_barrier on domain_lock after asserting d->is_dying,
allowing critical regions under the domain_lock to safely check
is_dying and avoid races with domain_relinquish_resources().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 2 Jul 2008 12:54:20 +0000 (13:54 +0100)]
stubdom: PCI passthrough support via PV-PCI
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 2 Jul 2008 12:37:16 +0000 (13:37 +0100)]
pciif: do not depend on linux' msix_entries
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 2 Jul 2008 09:56:37 +0000 (10:56 +0100)]
x86: Remove inline declaration to fix build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 2 Jul 2008 08:45:18 +0000 (09:45 +0100)]
ioemu: Add check for mapping MSI pirqs.
From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 2 Jul 2008 08:44:09 +0000 (09:44 +0100)]
x86: Fix MSI cleanup.
Fixes bugzilla bug #1279.
From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 2 Jul 2008 08:42:37 +0000 (09:42 +0100)]
xend: Replace stray tab-indent with space-indent
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Isaku Yamahata [Wed, 2 Jul 2008 02:30:37 +0000 (11:30 +0900)]
merge with xen-unstable.hg
Keir Fraser [Tue, 1 Jul 2008 13:50:35 +0000 (14:50 +0100)]
minios: proper frees are now handled, so drop the FIXME comment
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 1 Jul 2008 12:27:41 +0000 (13:27 +0100)]
x86_emulate: (Almost) complete FPU emulation.
Provide emulation for all FPU instructions except fsave/frstore &
fnstenv/fldenv.
While the main purpose of the patch is to avoid current and future
"gotchas" on FPU intructions used by various OS boot-loaders, it is
complete enough to run DOS realmode FPU applications and benchmarks,
but don't expect to set any speed records.
Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 1 Jul 2008 10:41:43 +0000 (11:41 +0100)]
VT-d: Fix queue invalidation
Correct invalidate_sync(), and clean up qinval_setup().
Signed-off-by: Weidong Han <weidong.han@intel.com>