Commit Graph
14212 Commits
Author SHA1 Message Date
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
kfraser@localhost.localdomain 167b02743b x86: No need to take full reference when doing mmu_update on a foreign
domain. Also fix a pre-existing race setting PGT_pinned versus
clearing it during domain_kill().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-01 12:14:53 +00:00
kfraser@localhost.localdomain 87a9ee2521 xen: Cleanups and bug fixes after the rcu_lock_domain patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-01 11:38:55 +00:00
Tim Deegan 7260c49e05 Remove Xen workaround for HVM builder now that it's fixed
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-01 11:08:49 +00:00
Tim Deegan 80148cff3f Merge 2007-03-01 11:04:45 +00:00
Tim Deegan 05519dcda3 [HVM] Builder must know which kind of vcpu context struct to use
when the tools are being run in a compat-mode domain
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-01 11:04:23 +00:00
kfraser@localhost.localdomain 0dbfd093a2 xen: Use RCU-based domain-locking functions where appropriate.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
2007-03-01 10:44:40 +00:00
kfraser@localhost.localdomain df706e41ce xen: Last minute rename of RCU domain get/put functions:
find_domain_rcu_lock -> rcu_lock_domain_by_id
 domain_rcu_unlock    -> rcu_unlock_domain
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-01 10:32:52 +00:00
kfraser@localhost.localdomain 9a1c30f1b9 hvm/ia64: Fix IDE PIO acceleration.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-03-01 10:24:19 +00:00
kfraser@localhost.localdomain 7f1cb71544 Change compat-check in set_vcpucontext again. Give caller leeway for
HVM guests only.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-01 10:01:51 +00:00
Tim Deegan 257769ca8a [XEN] Fix cset 14166
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-01 09:52:40 +00:00
Wim Colgate d82f821904 Use stat to poll on phantom device until it becomes ready
Signed-off by Wim Colgate <wim@xensource.com>
2007-02-28 12:35:36 -08:00
kfraser@localhost.localdomain 6065dcf331 libxc: Quieten the discard_file_cache() function. Preserve errno
across it. No longer make calls to the function dependent on 'non-live
save/restore': it's not a good test of whether the fd is a socket.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 18:15:42 +00:00
kfraser@localhost.localdomain 4092caa643 Fix init.d/xendomains startup script so log_error and log_success
will also work on redhat-based distributions before RHEL 5. See
discussion "xendomains init script" about a year ago on xen-devel.

Signed-off-by: Florian Kirstein <ray@ray.net>
2007-02-28 18:06:56 +00:00
kfraser@localhost.localdomain ed372f4e41 linux: More save/restore fixes. Fix deadlock of cpu_hotplug_lock vs
workqueue_mutex. This is a new deadlock since the workqueue_mutex is
acquired in the workqueue_cpu_calbback() function across
CPU_UP_PREPARE->CPU_ONLINE.

The fix is for us not to rudely grab the cpu_hotplug_lock() during
save/restore -- it's really not necessary.

This patch is applicable to any of our 2.6 kernels, but is absolutely
required from 2.6.18 onwards.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 17:55:19 +00:00
George Dunlap 397a059280 [XEN][SHADOW] Use slow method for early-unshadow
The "fast" method fails a significant portion of the time.
unshadow will still use the "fast" method, but will fall
back to a brute-force method if it fails.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
2007-02-28 11:13:49 -05:00
George Dunlap c2198fde19 [XEN][SHADOW] Fix early-unshadow logic.
Make sure to reset the early-unshadow logic when we
do a fast-path propagate or when we emulate a non-zero
write.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
2007-02-28 11:11:22 -05:00
kfraser@localhost.localdomain a227a47981 hvm: Only do hvm_disable() on HVM-enabled systems.
Original patch by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 14:44:52 +00:00
kfraser@localhost.localdomain 82972d6f10 linux: Disable idle-loop alternatives.
ACPI and APM idle functions in particular are not suitable choices
when running on Xen.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 14:34:25 +00:00
kfraser@localhost.localdomain ed2bd98ac2 linux: Split suspend_mutex into watch_mutex and transaction_mutex.
This clarifies their usage and relationship with request_mutex and
response_mutex.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 14:26:26 +00:00
kfraser@localhost.localdomain c70b3e5890 More PV save/restore fixes.
Related changesets:
 14148:b67c253d1cdb4f502dec2
 13519:b4a8000e76db6b4b27341

These three changesets must be applied as a set!

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 14:13:09 +00:00
Tim Deegan 96b0fdf67b Fix 32-bit x86 compile 2007-02-28 13:22:20 +00:00
Tim Deegan 9ee002e88b [XEN] Compat-mode dom0 always provides compat vcpu_guest_context structs.
Update arch_set_info_guest to do the right thing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-28 13:19:16 +00:00
Tim Deegan e4c182e03a [XEN] Make the compat-mode l4 page table look more like a page table
and remove some special-case code in the shadows.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-28 13:17:27 +00:00
Christian Limpach 990718d0bd [XEN] No need to change the compat mode of the guest in xen.
The tools set the compat mode already explicitly.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-02-28 10:40:52 +00:00
kfraser@localhost.localdomain 72e4f39c3f Loop on actual elfnote array size rather than depending on ELFNOTE_MAX
macro.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-28 09:44:59 +00:00
kfraser@localhost.localdomain 7954a48c41 Add suspend_cancel flag to linux elf notes.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-02-28 09:41:02 +00:00