Commit Graph
16370 Commits
Author SHA1 Message Date
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
Alex Williamson 2e53497808 [IA64] Ignore SAL_PHYSICAL_ID_INFO
Newer upstream Linux kernels calls this.  Simply return
unimplemented for now.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-11-06 14:20:05 -07:00
Alex Williamson 8dc1d02981 [IA64] Cleanup: remove unused fields from struct arch_domain
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-11-06 14:05:50 -07:00
Alex Williamson 68882a6c19 [IA64] Cleanup: remove unused functions, add static.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-11-06 14:03:36 -07:00
Keir Fraser 5051eb04ca xentrace: Add missing xentrace format entries for HVM guests.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-11-06 16:04:13 +00:00
Keir Fraser 2dd224822c [PV-ON-HVM] Fix evtchn of unbind_from_irqhandler()
When xm block-detach command was done on PV-ON-HVM, the response of
other disks was lost. It is because a wrong event channel was
invalidated when detaching it. Not the evtchn number but the irq
number is invalidated specifying it.

Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
2007-11-06 11:49:15 +00:00
Keir Fraser 58a2569e71 vt-d: Free memory of g2m_ioport_list.
This patch frees memory of g2m_ioport_list when remove g2m_ioport or
destroy iommu domain to avoid memory leak. In addtion, does some
cleanup on domctl.c.

Signed-off-by: Weidong Han <weidong.han@intel.com>
2007-11-06 09:43:22 +00:00
Keir Fraser d0206a01a8 Users manual updates:
1) PAE as 32-bit Xen default
 2) IA64 and Power are supported
 3) AMD Virtualization is supported
 4) Add console_timestamps boot param

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
2007-11-06 09:41:57 +00:00
Keir Fraser e02df44279 xenstored: Recover from corrupt tdb on reboot
Xen cannot work when xenstored's tdb is corrupt.  When that happens
somehow (and we've seen it happen), even reboot doesn't recover from
it.  It could: there is no state in tdb that needs to be persisted
across reboots.

This patch arranges that tdb is removed before xenstored is started,
provided it doesn't already run.  This is safe, because:

* xenstored cannot be restarted.  If it dies, Xen's screwed until
  reboot.

* /usr/sbin/xend always starts xenstored anyway.

* xenstored locks its pid-file (see write_pidfile() in
  tools/xenstore/xenstored_core.c), and refuses to start when it
  can't.

* My patch makes /usr/sbin/xend remove tdb iff it can lock the
  pid-file.  In other words, it removes tdb only when xenstored is not
  running, and locks it out until it is done.

  Bonus fix: it also removes stale copies of the tdb xenstored tends
  to leave behind when it exits uncleanly.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
2007-11-06 09:40:44 +00:00
Keir Fraser fca749bf8d xend: Fix startup crash for some network configurations.
From: Guillaume Rousse <Guillaume.Rousse@inria.fr>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-06 09:39:25 +00:00
Keir Fraser 31b083a50c [SHADOW] Fix error paths in guest-pagetable walker.
Real hardware sets PFEC_page_present regardless of the access bits,
and doesn't write back _PAGE_ACCESSED except after a successful walk.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
2007-11-05 16:38:47 +00:00
Keir Fraser a9ed24081c Small cleanups to console-input-redirect code in Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-11-05 16:37:48 +00:00