Commit Graph
21326 Commits
Author SHA1 Message Date
Keir Fraser 1fccff02dc Added tag RELEASE-4.0.1 for changeset b536ebfba183 2010-08-25 09:22:52 +01:00
Keir Fraser c541e6a5cb Update Xen version to 4.0.1 RELEASE-4.0.1 2010-08-25 09:22:42 +01:00
Keir Fraser a14a09796c io: make shared ring pad field less enticing for users by adding a __ prefix
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Daniel Stodden <daniel.stodden@citrix.com>
Cc: Dongxiao Xu <dongxiao.xu@intel.com>
xen-unstable changeset:   a8c5e5e12ec1
xen-unstable date:        Fri Jul 02 18:58:28 2010 +0100
2010-08-17 19:27:20 +01:00
Keir Fraser f8eebecbe9 blktap2: make protocol specific usage of shared sring explicit
I don't think protocol specific data really belongs in this header
but since it is already there and we seem to be stuck with it let's at
least make the users explicit lest people get caught out by future new
fields moving the pad field around.

This is the Xen portion of this change. The kernel portion will be
sent separately. There is no dependency between the two.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Daniel Stodden <daniel.stodden@citrix.com>
Cc: Dongxiao Xu <dongxiao.xu@intel.com>
xen-unstable changeset:   feee0abed6aa
xen-unstable date:        Fri Jul 02 18:58:02 2010 +0100
2010-08-15 21:48:06 +01:00
Keir Fraser dfd003b8a3 Fix IOAPIC S3 with interrupt remapping enabled
In ioapic_suspend, it reads and saves ioapic RTEs. But when interrupt
remapping is enabled, io_apic_read will call io_apic_read_remap_rte to
convert remapped format interrupt to compatible format, this results
in 'dest' field may be changed in remap_entry_to_ioapic_rte. When in
ioapic_resume, it will write the saved RTEs with incorrect 'dest' to
interrupt remapping table.

Actually it needn't to convert RTEs regardless interrupt remapping is
enabled or not. It just needs to save and restore RTE values
directly. This patch just uses __io_apic_read and __io_apic_write,
which won't call Interrupt remapping functions to convert, to save and
restore RTEs in ioapic_suspend and ioapic_resume. Thus fix this issue.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset:   01d185dab39e
xen-unstable date:        Fri Aug 13 14:57:35 2010 +0100
2010-08-13 15:06:24 +01:00
Keir Fraser 8e60dbfbfa Added signature for changeset c467b2e6fabd 2010-08-13 09:25:46 +01:00
Keir Fraser 6f2bb04ab5 Added tag 4.0.1-rc6 for changeset c467b2e6fabd 2010-08-13 09:18:08 +01:00
Keir Fraser fac3ba8ed5 Update Xen version to 4.0.1-rc6 4.0.1-rc6 2010-08-13 09:18:02 +01:00
Keir Fraser 3833bd396d [Xen-devel] [PATCH] PoD: Fix domain build populate-on-demand cache
allocation Rather than trying to count the number of PoD entries we're
putting in, we simply pass the target # of pages - the vga hole, and
let the hypervisor do the calculation.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset:   6f059a340cdf
xen-unstable date:        Wed Aug 11 15:56:21 2010 +0100
2010-08-13 09:05:07 +01:00
Keir Fraser a12030927a linux buildconfig: Fix quoting error
Prevent shell syntax error if $(XEN_LINUX_CONFIG) is empty.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
xen-unstable changeset:   1f8a2d024379
xen-unstable date:        Fri Aug 13 08:46:45 2010 +0100
2010-08-13 09:01:19 +01:00
Keir Fraser 73e1f057e0 xl: Fix xl vcpu-list output on machines with more than 16 cores
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset:   cb71d0d30f0c
xen-unstable date:        Tue Aug 10 15:35:13 2010 +0100
2010-08-13 09:00:48 +01:00
Keir Fraser 0787f6e6e7 Clean up event-channel debug-key output, and use spin_lock().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   7d02b1046d14
xen-unstable date:        Fri Aug 13 08:39:11 2010 +0100
2010-08-13 09:00:18 +01:00
Keir Fraser aeaef912f8 x86: Allow dom0 pstate control to access APERF/MPERF/HWCR MSRs
The current version of the powernow driver uses the APERF/MPEF
and the HWCR MSRs.  Add cases in traps.c to let dom0 access
those MSRs.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
xen-unstable changeset:   6471b8b71401
xen-unstable date:        Fri Aug 13 08:38:35 2010 +0100
2010-08-13 08:59:52 +01:00
Keir Fraser 847c5ecffe svm: increment RIP over PAUSE instruction when emulating it
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset:   31d200e5b922
xen-unstable date:        Fri Aug 13 08:31:49 2010 +0100
2010-08-13 08:53:26 +01:00
Keir Fraser 7427d79daf msi: Avoid uninitialized msi descriptors
When __pci_enable_msix() returns early, output parameter (struct
msi_desc **desc) will not be initialized.  On my machine, a Broadcom
BCM5709 nic has both MSI and MSIX capability blocks and when guest
tries to enable msix interrupts but __pci_enable_msix() returns early
for encountering a msi block, the whole system will crash for fatal
page fault immediately.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
xen-unstable changeset:   786b163da49b
xen-unstable date:        Wed Aug 11 17:01:02 2010 +0100
2010-08-13 08:52:56 +01:00
Keir Fraser 0bd549240b xc: fix segfault in pv domain create if kernel is an invalid image
If libelf calls elf_err() or elf_msg() before elf_set_log() has been
called then it could potentially read an uninitialised log handling
callback function pointer from struct elf_binary. Fix this in libxc by
zeroing the structure before calling elf_init().

Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset:   1d67dd785ef4
xen-unstable date:        Mon Aug 09 17:43:18 2010 +0100
2010-08-13 08:52:08 +01:00
Keir Fraser 70aaae4025 Update default pv_ops kernel to 2.6.32.x
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
2010-08-13 08:48:28 +01:00
Keir Fraser f29344c091 Update git pull machinery
This is needed to pull a non-default branch, and to allow the test
infrastructure's bisection machinery to work.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
2010-08-13 08:48:08 +01:00
Keir Fraser 82c6982d50 x86: Detect and handle unexpected platform-timer counter wrap.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21346:7d4deb86b966
xen-unstable date:        Tue May 11 11:21:27 2010 +0100
2010-08-11 16:44:03 +01:00
Keir Fraser 6007502b57 Define ABS() library function. Use it.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21345:2077d6ad6078
xen-unstable date:        Tue May 11 11:19:23 2010 +0100
2010-08-11 16:43:44 +01:00
Keir Fraser d55a8f1a65 x86: Correctly cook command lines for GRUB2.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21883:4207549948a4
xen-unstable date:        Wed Jul 28 08:32:01 2010 +0100
2010-08-10 15:49:20 +01:00
Keir Fraser 11ad1ab5e0 vt-d: Fix ioapic_rte_to_remap_entry error path.
When ioapic_rte_to_remap_entry fails, currently it just writes value
to ioapic. But the 'mask' bit may be changed if it writes to the upper
half of RTE. This patch ensures to recover the original value of
'mask' bit in this case.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset:   21934:befd1814c0a2
xen-unstable date:        Mon Aug 09 16:33:45 2010 +0100
2010-08-09 16:51:30 +01:00
Keir Fraser d1ffda5cf5 vt-d: Fix ioapic write order in io_apic_write_remap_rte
At the end of io_apic_write_remap_rte, it writes new entry (remapped
interrupt) to ioapic. But it writes low 32 bits before high 32 bits,
it unmasks interrupt before writing high 32 bits if 'mask' bit in low
32 bits is cleared. Thus it may result in issues. This patch fixes
this issue by writing high 32 bits before low 32 bits.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
xen-unstable changeset:   21933:add40eb47868
xen-unstable date:        Mon Aug 09 16:32:45 2010 +0100
2010-08-09 16:51:03 +01:00
Keir Fraser 4f874dc24f x86: Fix NMI injection to PV guests
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
xen-unstable changeset:   21926:6f07d9ac1e7c
xen-unstable date:        Thu Aug 05 14:41:14 2010 +0100
2010-08-09 16:50:37 +01:00
Keir Fraser fb3f71889c gdbsx: Install into correct directory $(SBINDIR)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset:   21903:668f71224241
xen-unstable date:        Mon Aug 02 16:58:50 2010 +0100
2010-08-02 17:19:06 +01:00
Keir Fraser 0772f7b860 kexec: Clean up shutdown logic. Reinstate ACPI DMAR during kexec.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21886:578ed14c3c67
xen-unstable date:        Thu Jul 29 10:31:21 2010 +0100
2010-08-02 17:18:37 +01:00
Keir Fraser ffc1e7f154 xenpaging: Add a check to Xen for EPT.
There isn't seem to be a way to directly check for EPT, so instead
check for HAP and an Intel processor. If EPT isn't enabled, then
return an error to the tool.

Signed-off-by: Patrick Colp <pjcolp@cs.ubc.ca>
xen-unstable changeset:   21882:af52102e4dcf
xen-unstable date:        Wed Jul 28 07:54:40 2010 +0100
2010-08-02 17:17:55 +01:00
Keir Fraser cef33294d4 Walking the page lists needs the page_alloc lock
There are a few places in Xen where we walk a domain's page lists
without holding the page_alloc lock.  They race with updates to the
page lists, which are normally rare but can be quite common under PoD
when the domain is close to its memory limit and the PoD reclaimer is
busy.  This patch protects those places by taking the page_alloc lock.

I think this is OK for the two debug-key printouts - they don't run
from irq context and look deadlock-free.  The tboot change seems safe
too unless tboot shutdown functions are called from irq context or
with the page_alloc lock held.  The p2m one is the scariest but there
are already code paths in PoD that take the page_alloc lock with the
p2m lock held so it's no worse than existing code.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21881:57de3a3118bb
xen-unstable date:        Wed Jul 28 07:54:12 2010 +0100
2010-08-02 17:11:33 +01:00
Keir Fraser 5dd77158ed Update Xen version to 4.0.1-rc6-pre 2010-08-02 17:10:32 +01:00
Keir Fraser a5cf2389b2 Added signature for changeset f200573325ba 2010-08-02 11:18:41 +01:00
Keir Fraser ff34436956 Added tag 4.0.1-rc5 for changeset f200573325ba 2010-08-02 11:18:26 +01:00
Keir Fraser dabaff9971 Update Xen version to 4.0.1-rc5 4.0.1-rc5 2010-08-02 11:18:11 +01:00
Keir Fraser a4b4fa3d90 libxl: fix fstat implicit declaration build error
Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   21895:de62cfdd7b9f
xen-unstable date:        Fri Jul 30 14:28:39 2010 +0100
2010-08-02 11:17:22 +01:00
Keir Fraser 3a439302a5 tools/libxl: usbdevice should imply usb
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   21844:ef495616b946
xen-unstable date:        Fri Jul 23 16:58:35 2010 +0100
2010-08-02 11:16:57 +01:00
Keir Fraser 2e82f5311b Without this we leak an fd on each domain shutdown and eventually run
out of file descriptors meaning new the console of new domains are not
logged.

Seems to have been accidentally removed in 16638:28921e83000b.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   21818:9ccd024065c5
xen-unstable date:        Mon Jul 19 12:21:24 2010 +0100
2010-08-02 11:16:31 +01:00
Keir Fraser d7ac3b29bd Before this patch only log messages with precisely priority
LOG_WARNING (or precisely LOG_DEBUG if -v) would be logged.

xenconsoled only actually logs using LOG_ERR and LOG_DEBUG so for the
most part we would have been logging absolutely nothing up until now.

Linux provides a LOG_UPTO macro but I'm not sure how portable that is
so I have opencoded the list of levels.

Do I get some sort of prize for fixing a bug introduced in 2005?

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   21814:91ce0b0953ca
xen-unstable date:        Fri Jul 16 12:10:56 2010 +0100
2010-08-02 11:16:04 +01:00
Keir Fraser df6c652a15 xenconsole: do not exit if a pty device is missing
This can just mean we have raced with the bootloader exiting and if we
continue we will likely see the real domain console show up.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   21797:c18f43ed379e
xen-unstable date:        Wed Jul 14 16:36:47 2010 +0100
2010-08-02 11:15:30 +01:00
Keir Fraser f187d23f35 gdbsx: Always build -- remove build-time config option.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21702:2846fd19945c
xen-unstable date:        Fri Jul 02 18:52:12 2010 +0100

tools/debugger/gdbsx: build enabled by default

Submitted-by: Bruce Edge <bruce.edge@gmail.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset:   21752:29e545151078
xen-unstable date:        Thu Jul 08 16:50:34 2010 +0100

tools/debugger/gdbsx: enabled by only x86

The changeset 21752:29e545151078 breaks ia64, since gdbsx supports
only x86.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
xen-unstable changeset:   21788:8429a8a23241
xen-unstable date:        Tue Jul 13 19:08:48 2010 +0100
2010-08-02 11:11:53 +01:00
Keir Fraser 470427c7d6 x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded targets.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21860:2b768d52bc7f
xen-unstable date:        Sun Jul 25 22:20:47 2010 +0100
2010-07-25 22:22:43 +01:00
Keir Fraser 05ae586e30 tools: fix install bash-completion files to non-default locations.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen-unstable changeset:   21565:0c10e80e083b
xen-unstable date:        Wed Jun 09 07:21:32 2010 +0100

Bash completion scripts go to /etc/bash_completion.d/

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21517:9002641064d8
xen-unstable date:        Fri Jun 04 10:09:11 2010 +0100
2010-07-21 13:55:00 +01:00
Keir Fraser a902c96cb0 build: Make all GIT download URLs depend correctly on GIT_HTTP={y,n}
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21838:e8dbc1262f52
xen-unstable date:        Wed Jul 21 09:02:10 2010 +0100
2010-07-21 09:14:20 +01:00
Keir Fraser 94eae92de5 x86: New boot option availmem= to limit usable system RAM.
Unlike mem=, this specifies the limit on usable RAM, rather than a
limit on maximum physical address of RAM.

Original patch by Sarina Canelake <sarina.canelake@Oracle.Com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21837:3c00cb0d9bc4
xen-unstable date:        Wed Jul 21 08:43:35 2010 +0100
2010-07-21 09:11:25 +01:00
Keir Fraser 35d2934c08 vtd: Do not update-and-flush an IOMMU PTE if it does not change.
There are cases of identical repeated calls to
iommu_map_page(). Flushing is slow, so it's worth detecting these and
bailing early.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21813:07b718833c74
xen-unstable date:        Fri Jul 16 17:41:53 2010 +0100
2010-07-21 09:10:56 +01:00
Keir Fraser b02d5d2cd3 iommu: New options iommu=dom-strict and iommu=dom0-passthrough
The former strips dom0 of its usual 1:1 mapping of all memory, and
only provides it with mappings of its own memory, like any other
domain. The latter is a new consistent name for iommu=passthrough.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21771:42ccccfe1a6a
xen-unstable date:        Fri Jul 09 16:45:42 2010 +0100

iommu: Map dom0 initial allocation in 'dom0-strict' iommu mode.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21812:e382656e4dcc
xen-unstable date:        Fri Jul 16 16:19:51 2010 +0100
2010-07-21 09:10:27 +01:00
Keir Fraser 707a7f9424 xen: Send the debug VIRQ to guests after the rest of the domain dump is done.
Send the debug VIRQ to guests after the rest of the domain dump is
done. This stops all the 'q' debug-key output getting interleaved with
the debug-virq output from a pv-ops dom0 kernel.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21809:1f7c2418e58c
xen-unstable date:        Fri Jul 16 13:51:27 2010 +0100
2010-07-21 09:08:45 +01:00
Keir Fraser 2ad6087ede Update Xen version to 4.0.1-rc5-pre 2010-07-21 09:07:05 +01:00
Keir Fraser fdf19c85cf Added signature for changeset 1f6b423ee0c0 2010-07-16 14:03:25 +01:00
Keir Fraser b9e4781e86 Added tag 4.0.1-rc4 for changeset 1f6b423ee0c0 2010-07-16 14:03:15 +01:00
Keir Fraser bef56bbb4b Update Xen version to 4.0.1-rc4 4.0.1-rc4 2010-07-16 14:03:08 +01:00
Keir Fraser 72c32a22a1 xm: Do not check path of kernel if bootloader is specified
When create DomU, if bootloader is specified, 'kernel/ramdisk' will be
used by bootloader when boots DomU. So it is needless to check the
path is existent or not.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset:   21807:6fdb00dc93a5
xen-unstable date:        Thu Jul 15 16:32:50 2010 +0100
2010-07-16 14:02:30 +01:00