Commit Graph
14200 Commits
Author SHA1 Message Date
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
kfraser@localhost.localdomain 1066e48e86 Add xm save -c/--checkpoint option
xm save --checkpoint leaves the domain running after creating the
snapshot.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-02-28 09:39:23 +00:00
kfraser@localhost.localdomain e5d4e1285c Let xend choose to do hard or soft domain resumption depending on
whether the domain advertises support for soft resumption in its
elfnotes.

Signed-off-by: Brendan Cully <brendan@kublai.com>
2007-02-28 09:39:03 +00:00
kfraser@localhost.localdomain 5f7ac4f0bc Fix off-by-one preventing the last elfnote from being read in xc.c.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-02-28 09:38:14 +00:00
kfraser@localhost.localdomain 1f95747a4f Add openssl-dev and xorg-x11-dev to README
Attached is a documentation patch to the top-level README file; it
just adds two notes saying that you need to have openssl-devel and
xorg-x11-devel installed to successfully complete a "make world" at
the top level.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
2007-02-27 20:27:18 +00:00
kfraser@localhost.localdomain e76c2ace24 [XEN] [ACM] Simplify the event channel scanning
This patch simplifies the scanning of a domain's event channels
considering that an 'ECS_UNBOUND' event channel is not connected and
can be skipped.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-02-27 20:22:36 +00:00
kfraser@localhost.localdomain a2d9dd3374 Fix for Solaris compile/output for VBDs in xentop.
Signed-off-by: John Levon <john.levon@sun.com>
2007-02-27 16:13:08 +00:00
Ian Campbell 8ca1a72e79 merge 2007-02-27 15:40:37 +00:00
Ian Campbell 0a650f1a63 [TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-02-27 15:39:08 +00:00
kfraser@localhost.localdomain facf57a667 Accelerate IDE PIO on HVM/IA64 [3/3]
Add a bufferring mechanism for IDE PIO in a hypervisor.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-02-27 15:34:55 +00:00
kfraser@localhost.localdomain e60659a59b Accelerate IDE PIO on HVM/IA64 [2/3]
Add one more page to the guest for IDE PIO.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-02-27 15:34:24 +00:00
kfraser@localhost.localdomain cfb8ffa9f9 Accelerate IDE PIO on HVM/IA64 [1/3]
Add a bufferring mechanism for IDE PIO in qemu.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-02-27 15:33:25 +00:00
Steven Hand c516e5ec52 Fix save/restore (and non-live migrate) on PAE.
Plus add some more debug output to help us spot similar issues in the future.

Signed-off-by: Steven Hand <steven@xensource.com>
2007-02-27 14:33:07 +00:00