Commit Graph
14251 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 63d7a82fae linux: Prefer testing io_bitmap_ptr to the TIF_IO_BITMAP.
Former is safer (in case TIF_IO_BITMAP is out-of-sync with actual
existence of an I/O bitmap for this process) and more readable, and
probably results in faster code too.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 14:20:26 +00:00
kfraser@localhost.localdomain 91d86d5e62 linux: Remove unnecessary locking from pcifront free_root_bus_devs().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 14:09:19 +00:00
Ian Campbell 62c679ef7f [LINUX] CONFIG_X86_TSC is defined upstream in arch/i386/Kconfig.cpu so use that
instead of duplicating it in arch/i386/Kconfig.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-05 14:04:45 +00:00
kfraser@localhost.localdomain 3660aa4b7b linux 2.6.18: constify instances of 'struct file_operations'
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 14:00:05 +00:00
kfraser@localhost.localdomain 12b8d19b31 linux 2.6.18: miscellaneous
Various minor changes not fitting elsewhere and not warranting
separate patches.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:57:11 +00:00
kfraser@localhost.localdomain cd93260c63 linux 2.6.18: assembly annotations
This adds (or moves to the proper place) annotations paralleling those
added in native code in 2.6.18. To make this look less ugly, it
required moving around a few things.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:49:11 +00:00
kfraser@localhost.localdomain efebe9a73e linux 2.6.18: eliminate Xen special: x8664_ksyms.c
The differences of arch/x86_64/kernel/x8664_ksyms-xen.c over its
native original are benign - the Xen special can therefore be
removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:33:42 +00:00
kfraser@localhost.localdomain e1bfccbe5a linux 2.6.18: eliminate Xen special: alternative.c
The sole (x86-64 specific) difference of
arch/i386/kernel/alternative-xen.c
over its native original can be eliminated by slightly adjusting
x86-64's make_readonly(), and the Xen special can then be removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:32:50 +00:00
kfraser@localhost.localdomain 4d660bb597 linux 2.6.18: eliminate Xen special: intel_cacheinfo.c
arch/i386/kernel/cpu/intel_cacheinfo-xen.c is identical to
arch/i386/kernel/cpu/intel_cacheinfo.c, hence the Xen special can be
removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:30:52 +00:00
kfraser@localhost.localdomain 546bba8ad5 linux/x86-64: allow kernel init memory to be freed.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:27:51 +00:00
kfraser@localhost.localdomain b3abd36a51 VM.actions_after_[shutdown|reboot|suspend|crash] were not set properly
in VM record returned via Xen API.
This patch fixes typos in key name for these fields.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-03-05 13:18:28 +00:00
Tim Deegan 1ad3803046 [XEN] Shadow: fix predicate for when to use up-pointers
which was broken by the introduction of "pinnable" types
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-05 11:54:55 +00:00
kfraser@localhost.localdomain 4dea0800d7 xen: Remove bogus file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 11:23:34 +00:00
kfraser@localhost.localdomain 28de4c4148 Merge with xenppc-unstable.hg 2007-03-05 11:18:55 +00:00
Christian Limpach 1111378ea3 [xen] Fix deferred mmu op logic on invalidate shadow ldt.
On domain destroy, put_page_from_l1e is called on a domain
which is not current.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-05 11:17:52 +00:00
kfraser@localhost.localdomain 4df0bbfe89 Merge with xenppc-unstable.hg 2007-03-05 11:14:15 +00:00
kfraser@localhost.localdomain 49064b3101 xen: Make dom0 domain builder behaviour match that of domU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 10:52:54 +00:00
kfraser@localhost.localdomain 4f636f3065 xen: Fix ACPI SLIT/SRAT parsing to correctly map highmem.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 10:37:01 +00:00
kfraser@localhost.localdomain 738c5625ac linux: Clean up mm_pin/unpin.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 10:26:45 +00:00
Christian Limpach 87832ae661 [domain builder] Remove unnecessary alignment of virtual address base.
Unbreaks loading NetBSD kernels with the new ^^ domain builder.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-03 20:42:38 +00:00
Keir Fraser 3a65ca09cd linux: Some save/restore simplifications and cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 23:01:36 +00:00
Keir Fraser 0ada151b05 x86/64: Save/restore user pagetable pointer for x86/64 PV guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 22:57:27 +00:00
kfraser@localhost.localdomain 8ede8a78de Fix -xen build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 16:57:24 +00:00
kfraser@localhost.localdomain 55fcb979e1 linux: xenbus dev write function resets packet data on *all* error conditions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 16:29:48 +00:00
kfraser@localhost.localdomain 8666439e6a linux: Fix xenbus device write function.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 16:26:56 +00:00
kfraser@localhost.localdomain 2651400e34 tpm: Code style cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 16:15:28 +00:00
kfraser@localhost.localdomain 5ba41352cd [Linux] [TPM driver] Resume frontend after checkpointing
This patch implements TPM frontend driver resume after checkpointing a
domain. I also now let the front-end wait for the response from the
TPM until the response is there. A response must come due to the
strict request/response nature of the protocol, but the time until the
responses arrives depends on the type of operation that is executed by
the vTPM. Resending a request is not possible with this type of device.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-02 16:03:21 +00:00
kfraser@localhost.localdomain 9807b9f09a linux: Use old-mode of save/restore for uniproc guests (it's faster).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 16:00:22 +00:00
kfraser@localhost.localdomain 700ba2f69b linux: allow use of split page table locks
This changes netback to use struct page's mapping field instead of the
index one, and the PageForeign logic the other way around. That way,
CONFIG_SPLIT_PTLOCK_CPUS doesn't have to be suppressed anymore for x86.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-02 15:59:12 +00:00
kfraser@localhost.localdomain 02e0af9533 [PVFB][TOOLS] Terminate backend when frontend vanishes early
Ensure the backend terminates when the frontend vanishes before the
connection is established.  This happens when the guest doesn't have
the devices.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
2007-03-02 15:32:42 +00:00
kfraser@localhost.localdomain e6de910c4d linux/x86: avoid a re-definition warning on x86-64 and change i386
similarly to be consistent.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-02 15:12:54 +00:00
kfraser@localhost.localdomain f8173e13af .S->.o generation should depend on asm-offsets.h
While object files generated from C sources should generally not
depend on asm-offsets.h, those generated from assembly sources
should.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-02 15:10:54 +00:00
kfraser@localhost.localdomain 47a066703b xend: Fix startup when dom0 does not see all physical cpus.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 15:08:26 +00:00
kfraser@localhost.localdomain 573e20d4bc xend: Catch VmError exception when creating a domain and do
appropriate cleanup.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-02 14:57:18 +00:00
kfraser@localhost.localdomain e182664256 acm: Fix bogus domain_rcu_lock() invocations to rcu_unlock_domain().
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-02 14:42:25 +00:00
Tim Deegan 41ec7cd7be [XEN] Remove a race condition in shadow mark_dirty code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-02 13:46:39 +00:00
kfraser@localhost.localdomain 188ac9feda linux: Support new 'fast suspend' mode which does not require us to
hotplug all auxiliary CPUs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 12:11:52 +00:00
kfraser@localhost.localdomain a7c824cbf1 tools: Advertise save/restore multiple VCPU contexts capability.
This capability means that save/restore will remember contexts of all
online VCPUs at the time of final guest suspend. Any initialised but
offline VCPUs will not be saved!
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 12:11:10 +00:00
Christian Limpach f67b5ead29 [xenstored] Fix error path when xc_map_foreign_range fails.
If xc_map_foreign_range fails, the new domain object is freed,
but it is not removed from the connection list.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-02 11:25:12 +00:00
kfraser@localhost.localdomain 06cffd6c17 Save/restore context of all online VCPUs in PV save/restore/migrate.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-01 17:59:17 +00:00
Christian Limpach c93712d655 [tools] Set guest address size to be the same as dom0 address size on restore.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-01 17:28:31 +00:00
Christian Limpach 631f828097 [XEN] Check that the cr3 mfn is valid before using it.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-01 17:27:31 +00:00
kfraser@localhost.localdomain 9e1f289303 linux: No need to kmem_cache_shrink(pgd_cache) on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-01 15:56:45 +00:00
kfraser@localhost.localdomain 5d8d99be04 Fully reset the xenstore connection when a domain is (re)introduced to xenstored.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-01 14:51:12 +00:00
Tim Deegan 4bbfa3da11 [HVM] Save/restore: remove bogus "valid state" check
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-01 14:00:05 +00:00
kfraser@localhost.localdomain 154753acf2 hvm: Clean up console-information passing via xenstore.
Each serial, parallel and monitor device in qemu that is connected to
a pty creates a xenstore node of the form:
 <domain-path>/monitor/tty
 <domain-path>/serial/<n>/tty
 <domain-path>/parallel/<n>/tty

In addition, serial/0 (com1) also registers its information at:
 <domain-path>/console/tty

Also fix a realloc() failure memory leak.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
2007-03-01 13:57:25 +00:00
kfraser@localhost.localdomain 279a6c16e6 Fix Xend domain_lookup error report when looking up an invalid
domain: raise the correct error code (XendInvalidDomain instead of
XendError). Also remove redundance exception code that is handled by
domain_lookup.

Signed-off-by: Yung Giang <ygiang@gmail.com>
2007-03-01 13:48:31 +00:00
kfraser@localhost.localdomain 0ba49c38df acm: Fix the traversal of the event channel buckets and use the active
grant table entries instead of the shared ones. I had to move some
functions from grant_table.c into grant_table.h to make them usable by
the ACM module.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-01 13:45:53 +00:00
kfraser@localhost.localdomain 5fca0f03a3 Create P2M map during Mini-OS boot (fixes 'xm dump-core').
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2007-03-01 12:23:44 +00:00
kfraser@localhost.localdomain 84e23d3ec9 Fix PAE Mini-OS build.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2007-03-01 12:23:04 +00:00