Commit Graph
14855 Commits
Author SHA1 Message Date
Keir Fraser 3a8a387d6e Merge with xen-ia64-unstable.hg 2007-04-13 16:07:48 +01:00
Tom Wilkie e52527b9ed Fix TypeError with datetime() on old python version
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 16:02:41 +01:00
Alex Williamson 94bf994b37 [IA64] Fix ptc.ga emulation
ptc.ga infrequently clobbers the region register 0.

When vcpu1 purges TLBs of vcpu2 and ptc_ga_remote_func() is called
locally not via IPI (i.e. vcpu1 shares the same pcpu with vcpu2),
in ptc_ga_remote_func(),

  save vrr[0] of vcpu2
  ... => switch to vcpu2 and set a new value of vrr[0]
  restore vrr[0] of vcpu2 // the new value is lost

Windows will crash due to this issue.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-04-13 08:33:21 -06:00
Keir Fraser 6ba4666914 linux netfront: Fixes to locking after lockdep-derived changes, as
suggested by Herbert Xu.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-13 15:24:42 +01:00
Keir Fraser 0c8a05c142 hvm: Clean up treatment of is_dying per-domain boolean. All critical
checks are done under an appropriate lock, allowing the lock-free
protocols surrounding this boolean to be removed.

Also simplification and fixes to code for setting/zapping the ioreq
and buf_ioreq shared pages.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-13 14:59:06 +01:00
Tom Wilkie 4a507d9105 Add VM.migrate to XenAPI, add support to XM
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 13:55:10 +01:00
kfraser@localhost.localdomain 266760426a hvm: Fix some bugs in mmio decoder
Some instructions, like "add $imm8, r/m16"/"MOV $imm32, r/m64" require
the src immediate operand be sign-extented befere the op is executed,
but this is omitted in the current Xcode. The patch fixes this.
The patch also fixes an issue in handling address-size override
prefix, and fixes an issue in get_immediate().

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2007-04-13 12:30:04 +01:00
kfraser@localhost.localdomain 20a553aca3 hvm: Xen must take care to hold a reference to ioreq pages, to ensure
that domain runs only when it has valid mapped ioreq pages, and to
safely drop ioreq page references when a domain dies.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-13 12:29:06 +01:00
Ian Campbell da12cd1e94 Update .hgignore so it doesn't ignore buildconfigs/* only build-*
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-04-13 12:01:37 +01:00
Tom Wilkie bf57189edc Simplify code to map interfaces to bridges
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 11:43:50 +01:00
kfraser@localhost.localdomain 31fa3c4208 linux: netfront contains two locking problems found by lockdep:
1. rx_lock is a normal spinlock, and tx_lock is an irq spinlock.  This
   means that in normal use, tx_lock may be taken by an interrupt
   routine while rx_lock is held.  However, netif_disconnect_backend
   takes them in the order tx_lock->rx_lock, which could lead to a
   deadlock. Reverse them.
2. rx_lock can also be used in softirq context, so it should be
   taken/released with spin_(un)lock_bh.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
2007-04-13 11:28:04 +01:00
kfraser@localhost.localdomain 5e0ae4b087 pygriub: Fix GPT support.
- 64 bit support for starting of a GPT partition.
- detect partition types precisely.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2007-04-13 11:23:26 +01:00
kfraser@localhost.localdomain 1abe8d9d1e hvm svm: Fix nested paging to support domain save/restore.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
2007-04-13 11:20:11 +01:00
kfraser@localhost.localdomain 1eb99a262f Merge with xenppc-unstable-merge.hg 2007-04-13 11:14:26 +01:00
kfraser@localhost.localdomain ffc95ce4b8 Merge with xen-ia64-unstable.hg 2007-04-13 11:11:41 +01:00
kfraser@localhost.localdomain 8f1d9b4696 libxenguest: Remove bogus weak definitions of xc_{set,get}_hvm_param().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-13 11:09:58 +01:00
Hollis Blanchard f27ff037b1 [XEN][POWERPC] Fix dom0 boot when using built-in zImage.
We need to respect the ELF entry point.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-04-12 16:37:32 -05:00
Hollis Blanchard a7a2bc1a69 [XEN][POWERPC] Fix debug=y build.
When debug=y, we use -O0 for single-stepping. This breaks the force-link-error
trick used in __xchg(), so we provide a real function to link with.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-04-12 13:05:04 -05:00
Alex Williamson 0dd835abe0 merge with xen-unstable.hg 2007-04-12 10:30:12 -06:00
Alex Williamson 9f6552ac60 [IA64] Fix hyper_get_psr
It didn't return correct psr.i value.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-04-12 10:26:42 -06:00
Alex Williamson 4f712d4f73 [IA64] Formatting fix
This extra space after the newline causes printk to get confused
and re-evaluate do_print and leave start_of_line == 0.  Anything
printed after this will always print, regardless of intended
log level.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-04-12 10:24:53 -06:00
Hollis Blanchard 6547cc6bf0 [XEN][POWERPC] Fix garbage dom0 commandline.
Debugged by Amos Waterland <apw@us.ibm.com>.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-04-12 10:42:43 -05:00
Hollis Blanchard accdf061d4 [XEN][POWERPC] Fix xchg macro.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-04-12 10:27:05 -05:00
Tim Deegan 49eea4f3c3 Merge 2007-04-12 15:55:24 +01:00
Tim Deegan 1db798cdbe [HVM] Save/restore: catch more error cases in the tools
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-04-12 15:54:59 +01:00
Tom Wilkie 8ac66209be Add PyXML requirement for xm via XenAPI to docs
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 15:44:02 +01:00
Tim Deegan 68c5ac07e0 [HVM] Fix typo that broke x86_64 build
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-04-12 15:07:20 +01:00
Tim Deegan 833623e78a [HVM] Save/restore: save HVM GPRs and DRs with the rest of the CPU state
and remove the use of xc_vcpu_getcontext() from HVM save/restore.
Also fixes loss of CR2, DR6 and DR7 contents across HVM save/restore.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-04-12 15:02:03 +01:00
kfraser@localhost.localdomain a01197aeb4 HVM: First attempt at domain-resume on save-failure.
Not working yet as we are a bit too keen to kill the qemu-dm process,
before we know that the save has been successful.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 14:13:04 +01:00
kfraser@localhost.localdomain 40bb2e5fea HVM: Allow qemu monitor to be configured in domain config file.
From: Yongkang You <yongkang.you@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 13:21:26 +01:00
kfraser@localhost.localdomain 9919a2345e xend: Update config-format version, due to changes in 3.0.5.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-12 13:18:08 +01:00
Tom Wilkie 6e86084cbc Ensure xenapi create passes in values even if unused
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 12:48:27 +01:00
kfraser@localhost.localdomain 69a9bab277 HVM: Do not watch control/shutdown to force domain shutdowns when PV
drivers are not present. The feature-foo mechanism does not actually
work after save/restore since the fields do not get rewritten. And it
doesn't work when we actually need the guest to be shutdown through
Xen (e.g., on suspend). Since we can quite reasonably assume that the
only entity to screw with control/shutdown is xend, and since the one
place that does that now explicitly handles unenlightened HVM guests,
we can simply strip all this stuff out.

This has the nice benefit of making HVM save/restore with PV drivers
much more reliable.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 12:12:56 +01:00
kfraser@localhost.localdomain e03858f635 PV-on-HVM: More carefully synchronise with APs when putting them to
sleep in a spin loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 12:09:58 +01:00
Tom Wilkie 985378fb5c Make xm info more permissive
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 11:44:26 +01:00
Tom Wilkie de2c5005c6 Make Xm Test default to bridge when cannot read config file
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 11:32:25 +01:00
Tom Wilkie 60bd45b963 Fix typo and make create send proper bools
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 11:31:17 +01:00
kfraser@localhost.localdomain e17fb5f345 PV-on-HVM: Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 08:02:38 +01:00
Alex Williamson 097c62e7ad [IA64] Fix PV-on-HVM driver
xen-platform-pci fails to load w/ undefined symbols for some of the
sched_op hypercalls in machine_reboot.c.  This adds them to xencomm
mini to allow them to be called from modules.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-04-11 23:15:30 -06:00
Alex Williamson 11f28ac0c9 [IA64] Bugzilla 942 Fix (timer strangeness on restored PV domain)
Time interpolator remembers last status.  When domain is restored, it
should be forgotten. Otherwise the interpolator causes bad timer value.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-04-11 22:46:10 -06:00
Christian Limpach f138b72d1e [ioemu] Consistently extend all block device operations to include scsi disks.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-11 23:05:07 +01:00
Christian Limpach 58fcf598b5 [setup] Fix old style bridge setup.
Also only warn that we ran out of veth interfaces if we have any at all.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-11 19:04:10 +01:00
Ewan Mellor b0766f3da2 Add documentation and C bindings for VM.add_to_VCPUs_params_live,
VM.set_memory_dynamic_{min,max}_live.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-11 22:24:30 +01:00
Ewan Mellor 3e1494d774 Added documentation and bindings for host_cpu.features.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-11 21:55:05 +01:00
kfraser@localhost.localdomain 0fd1484f34 linux: Quieten blkfront output.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 14:34:08 +01:00
kfraser@localhost.localdomain b8680a8065 xend: Store canonical vnif config info in /vm/<uuid>/device
rather than in frontend store directory. Two advantages are that the
frontend cannot mess with the config information; also an
ioemu-specific vif does nto need a frontend directory at all. This
avoids confusing netfront pv-on-hvm driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 14:30:56 +01:00
Alex Williamson ec0addc57f merge with xen-unstable.hg 2007-04-11 07:30:02 -06:00
Alex Williamson 193ed84021 [IA64] Skip MCA setup on domU
This effectively automates passing the nomca flag to domUs,
preventing them from setting up CMC/CPE interrupts.  This saves
3 dynamic IRQs per processor and allows us to get domUs up to 64
vCPUs without increasing the number of dynamic IRQs available.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-04-11 07:28:29 -06:00
Alex Williamson 5ff2059b7d [IA64] Handle NAT bit for dom0 and domU
This fixes ia32 apps running under the IA32-EL.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2007-04-11 07:24:44 -06:00
kfraser@localhost.localdomain 30fbfa471f PV-on-HVM: Fixes for module loading.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 09:29:00 +01:00