Commit Graph
16381 Commits
Author SHA1 Message Date
Keir Fraser cdad5edb46 xend: readDomTxn() and friends use dompath, not vmpath.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2007-11-15 22:14:13 +00:00
Keir Fraser 2132040846 Fix header dependencies list, broken by c/s 16133.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-11-13 20:13:50 +00:00
Keir Fraser 39b6f0629a x86: Do not read/write EFER MSR if it doesn't exist.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2007-11-13 20:08:39 +00:00
Keir Fraser 3192c29b6a Fix non-portable grep usage. Solaris doesn't have -q option.
Signed-off-by: John Levon <john.levon@sun.com>
2007-11-13 19:26:55 +00:00
Keir Fraser 1619a1757f x86: GDT reserved page should be a full page.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2007-11-13 19:21:00 +00:00
Keir Fraser dd7c8c5aef vmx: Restore correct host SYSENTER parameters on vmexit.
Also simplify vmx_set_host_env().
HOST_GDT_BASE does not have to change when we shift CPU.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2007-11-13 19:05:27 +00:00
Keir Fraser 9e2034fe2d vmx: Set HOST_FS and HOST_GS to unusable on vmexit.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-13 18:30:47 +00:00
Keir Fraser ad703ba167 tools: Avoid -nostdlib argument to $(LD).
This interacts badly with GNU ld on Solaris.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-13 17:57:22 +00:00
Keir Fraser 6d659d7442 Revert 16067:9f9f9b68cd08a03fc8cfad9f5ab702e50b6b6463.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-13 17:28:44 +00:00
Keir Fraser 1e76993878 libxc: Consistently print errno on write() error in domain_save code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-11 18:28:57 +00:00
Keir Fraser c316590403 libxc: Consolidate read()/write() syscall wrappers to read/write an
exact number of bytes. The consolidated versions are more watertight
than the various versions previously distributed around the library
source code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-11 18:22:33 +00:00
Keir Fraser bbceef66ea solaris, xend: Fix FMRI for Solaris SMF.
Update the FMRI for SMF to reflect reality (again).

Signed-off-by: John Levon <john.levon@sun.com>
2007-11-10 10:55:27 +00:00
Keir Fraser b1a8a810f7 xend: Fix appending policy module to end of grub's config file
This patch fixes the case where a module line is supposed to be added
to the very end of the file but the file does not end in with a new
line. Also fixes a problem that in some cases the module line would
not be properly be removed.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-11-10 10:54:32 +00:00
Keir Fraser 0ff15a3002 vmx: Enable WBINVD intercepts to avoid real WBINVD for non-vtd guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-09 12:59:58 +00:00
Keir Fraser b8620de2f1 svm: Intercept and disallow MONITOR/MWAIT.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-09 12:08:37 +00:00
Keir Fraser ecf59a3e73 x86, hvm: Better handling of INVD/WBINVD on VMX and SVM.
Also better handling of MONITOR/MWAIT on VMX.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-09 12:05:27 +00:00
Keir Fraser 9248fea19f Merge with ia64 tree. 2007-11-08 18:15:36 +00:00
Keir Fraser 97d6861d5e Fix i386 Xen build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-08 18:14:00 +00:00
Keir Fraser 2f3f6d2092 Fix xend startup after 16344:0ebac857649591.
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
2007-11-08 16:27:03 +00:00
Alex Williamson de00e868f2 [IA64] Add paddr_to_pfn for upstream changes
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-11-08 09:05:26 -07:00
Alex Williamson 66bb99644d merge with xen-unstable.hg (staging) 2007-11-08 09:37:06 -07:00
Keir Fraser 5ac841d232 xend: Allow for non-existent xen-python-path binary.
On Solaris, xen-python-path is unnecessary.

Signed-off-by: John Levon <john.levon@sun.com>
2007-11-08 15:32:14 +00:00
Keir Fraser 86c60bb2d5 hvm: Clean up buf_ioreq handling.
Also, disable stdvga caching on hvm save/restore, as the shadow vga
state is not preserved.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-08 14:50:01 +00:00
Keir Fraser eff0be9daf x86, vt-d: Clean up utils code.
Signed-off-by: Weidong Han <weidong.han@intel.com>
2007-11-08 13:14:03 +00:00
Keir Fraser f89c5d1f1c x86, hvm: Clean up periodic timer code a little. This leads naturally
to a no-missed-tick-accounting mode which is a combination of ticks
delivered 'off beat' immediately upon re-scheduling when ticks are
missed, then reverting to delivering ticks 'on beat' as usual.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-08 10:33:18 +00:00
Keir Fraser 940897106a xm: Fix long options of xm sched-credit
Long options of xm sched-credit command are ignored (--domain,
--weight, --cap). This patch fixes it.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-11-08 10:23:22 +00:00
Keir Fraser 2c26432779 x86, hvm: Fix boot of HVM guests with pass-thru devices. Cache
attributes should not be propagated for Xen-heap pages.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-08 10:21:47 +00:00
Keir Fraser 2e2b5fdae1 Replace is_xen_heap_frame() with is_xen_heap_{page,mfn}(). Callers are
changed to use whichever is more convenient.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-08 10:19:18 +00:00
Alex Williamson 406724ba5a [IA64] Fix breakage from upstream and remove duplicate code
- Get rid of PAGE_SIZE usage in arch-ia64.h when building tools.
- Now that more of xen_init_fv is identical to x86 code, share the
  code rather than duplicate it.
- Change a few things that came over from the ia64 tree to use the
  XC_* macros as already done upstream.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-11-07 15:11:44 -07:00
Alex Williamson 1e349b81ce merge with xen-unstable.hg (staging) 2007-11-07 14:48:48 -07:00
Alex Williamson d0a2f225e3 [IA64] Simplify thash_purge_and_insert()
This patch simplifies thash_purge_and_insert() for readability.
PV domain never use this function.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-11-07 11:01:23 -07:00
Alex Williamson 1632c4aa7b [IA64] Remove panic_domain in guest_write_eoi() for NULL_VECTOR
Triggered attempting kexec of an HVM domain.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2007-11-07 10:53:41 -07:00
Alex Williamson e55e060895 [IA64] Clean up of vcpu_init_regs().
Use symbolical macro value instead of magic number.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-11-07 10:45:35 -07:00
Alex Williamson 46c2db9a22 [IA64] vti save-restore: ia64 qemu-dm boot clean up.
Use xc_get_hvm_param()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-11-07 10:41:43 -07:00
Alex Williamson f0ed01dec3 [IA64] vti save-restore: ia64 hvm builder clean up with respect to hvm params.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-11-07 10:34:09 -07:00
Alex Williamson 4b7a0cb986 [IA64] vti save-restore: hvm domain io page clean up.
- set_hvm_param hypercall clean up.
- The reference counts of the io pages must be incremented.
- Buffered pio wasn't SMP safe.
- Clean up get_vio() parameter.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-11-07 10:31:09 -07:00
Alex Williamson 90c0baa8e8 [IA64] vti save-restore: clean up arch_get/set_info_guest()
- Update comment in copy_rbs()
- Don't warn when rbs_size = 0 for cpu initialization case.
- Remove struct vcpu_guest_context_regs::rbs_nat member which isn't used.
  and add num_phys_stacked to struct vcpu_guest_context_regs.
  so far rbs_nat and rbs_rnat isn't, so it is allowed to change the offset
  of rbs_rnat.
- Add check when setting vRR[].
- Don't set vRR[] if val is zero.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-11-07 10:19:21 -07:00
Alex Williamson eeae2c0399 [IA64] vti save-restore: reap ioreq after resume.
Otherwise ioreq is left as STATE_IORESP_READY
so that the domain will be paniced.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-11-07 10:10:20 -07:00
Alex Williamson 800b18726c [IA64] vti save-restore: clean up of PV region register handling.
Fix rr handling to avoid resrved registers/field fault in xen

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-11-07 10:07:06 -07:00
Keir Fraser 93aac49128 network-bridge: Make detection of gateway device more robust.
Signed-off-by: Guillaume Rousse <Guillaume.Rousse@inria.fr>
2007-11-07 16:55:13 +00:00
Keir Fraser 5cd7a86251 ioemu: Do not use PAGE_SHIFT/PAGE_SIZE/PAGE_MASK macros. Use the libxc
provided versions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-07 16:51:08 +00:00
Alex Williamson a07e2229ff [IA64] Fix spinlock initializer.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-11-07 09:47:40 -07:00
Keir Fraser 111b6ba18b vt-d: Support intra-domain shared interrupt.
Inter-domain shared interrupt has been supported by timeout method,
but it still doesn't support intra-domain shared interrupt, that is
assigning multiple devices which share a physical irq to the same
domain. This patch implements intra-domain shared interrupt
support. In addition, this patch maps link to guest device/intx
instead of directly mapping isairq in pt_irq_create_bind_vtd(),
because at this point the isairqs got from pci_link are always 0.

Note that assigning multiple devices to guests which uses PIC to
handle interrupts may be failed, because different links possibly
connect to same irq.

Signed-off-by: Weidong Han <weidong.han@intel.com>
2007-11-07 15:20:06 +00:00
Keir Fraser 30efc7f5f0 x86, hvm: Fix typo in no-missed-tick-accounting timer mode.
From: Dave Winchell <dwinchell@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-07 14:53:32 +00:00
Keir Fraser 731a2050ac x86: Fix PV guest CR4 handling. We should not leak hidden CR4 bits
into guest CR4 value.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-07 14:15:44 +00:00
Keir Fraser e6eaa683bc [SHADOW] Fix up change that allowed MMIO mappings to be shadowed
so it doesn't let us map INVALID_MFN as a shadow pagetable page.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
2007-11-07 13:41:29 +00:00
Keir Fraser 55f97f49b7 x86: Change cache attributes of Xen 1:1 page mappings in response to
guest mapping requests.
Based on a patch by Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-07 11:44:05 +00:00
Keir Fraser b2f3f8e649 Enable loopback disk image files on readonly nfs filesystem.
When we losetup a file on readonly nfs filesystem, it fails with:
# losetup /dev/loop7 /data/vm/xen_el5_i386_para/system.raw
/data/vm/xen_el5_i386_para/system.raw: Permission denied

New version of losetup has add a "-r" option for readonly loop, which
Linux kernel has supported for a long time. Some distribution (EL5
update, Fedora 8, etc.) have shipped it. This patch benefit this
option while doesn't break the old versions of losetup.

Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
2007-11-07 09:22:31 +00:00
Keir Fraser 78a146f3c3 HVM device passthru: Correct PCI_EXP_DEVCTL_FLR
This patch corrects PCI_EXP_DEVCTL_FLR so that function level reset
will be really executed, and also replaces some magic numbers with
macros.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
2007-11-07 09:21:16 +00:00
Keir Fraser c095f1cb08 vt-d: Disable PMR on every vt-d engine.
Signed-off-by Gang Wei (Jimmy) <gang.wei@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>
2007-11-07 09:13:48 +00:00