aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update version for 3.2.0-rc33.2.0-rc3Keir Fraser2007-12-201-1/+1
|
* Merge with ia64 treeKeir Fraser2007-12-201-5/+6
|\
| * [qemu-dm] Fix debugging output in tpm tis modelKeir Fraser2007-12-201-5/+6
| | | | | | | | | | | | | | | | This fixes the debugging output. Also I am tweaking on the code trying to establish a connection with the external vTPM. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* | [IA64] Fix missing put_domain in XEN_DOMCTL_set_opt_featureAlex Williamson2007-12-201-0/+1
|/ | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* Xend: don't check for device reuse if the device has no uname.Keir Fraser2007-12-201-1/+1
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* Fix some build system error handling.Keir Fraser2007-12-2016-39/+38
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* linux: Force build failure if modules build failsKeir Fraser2007-12-201-1/+1
| | | | | | | | | | | When building a linux kernel, if the modules build fails, then the build carries on regardless. The problem is simple - the "make modules" failure is not seen by the calling make since its return value is not what is returned. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
* hvm: Fix TPMD and QEMU connectionKeir Fraser2007-12-201-0/+5
| | | | | | | | | | | | In HVM domain, MA_Transmit function in tcgbios sometimes become an error (TCG_NO_RESPONSE). The cause of the error is not to make connection of QEMU and TPMD instance within a timeout of MA_Transmit function. Before the MA_Transmit function was called, the attached patch corrected so that connection of QEMU and TPMD might be completed. Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
* ioemu: Do not close slave half of a pty.Keir Fraser2007-12-201-2/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Added tag 3.2.0-rc2 for changeset 458dc123dd02d38aaa9acb513d6f237a1c6e967eKeir Fraser2007-12-191-0/+1
|
* Update version string for 3.2.0-rc23.2.0-rc2Keir Fraser2007-12-191-1/+1
|
* doc: Fix serial console command line.Keir Fraser2007-12-191-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* vmx: Do not set bit 1 of FEATURE_CONTROL MSR if SMX is not supportedKeir Fraser2007-12-193-21/+29
| | | | | by the CPU. Also generally beef up robustness of VMXON instruction. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools/examples/block better use of losetup -rKeir Fraser2007-12-191-3/+6
| | | | | | | | | | | | Use losetup -r when the vbd is specified to be readonly, but only if -r is supported (rather than always creating a writeable losetup mapping if possible). This was inspired by (but not derived from) a diff from the Fedora 8 patchset which uses -r iff the vbd is specified as readonly. We need to be cleverer upstream because not all systems have losetup -r. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Fix serial output of carriage return when using high-bit stream muxing.Keir Fraser2007-12-191-2/+2
| | | | | Original patch by Dan Doucette. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xend: Fix device duplicate check.Keir Fraser2007-12-191-7/+10
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* xend: Fix PCI Device ConfigurationKeir Fraser2007-12-192-47/+44
| | | | | | | Xend doesn't correctly work after restart, when there is a domU which owns a pci device (driver domain). This patch fixes the problem. Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* Fix master/slave handling in xenconsoled and qemuKeir Fraser2007-12-192-66/+141
| | | | | | | | | | | | | | | Fix a number of problems with the pty handling: - make openpty() implementation work on Solaris - set raw on the slave fd, not the master, as the master doesn't have a line discipline pushed on Solaris - make sure we don't leak the slave fd returned from openpty() - don't use the 'name' argument of openpty() as it's a security risk - note behaviour of a zero read of the master on Solaris - remove pointless tcget/setattr Signed-off-by: John Levon <john.levon@sun.com> Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
* xend: Indicate a resume operationKeir Fraser2007-12-192-0/+5
| | | | | | | Indicate that the domain is created as part of a resume operation rather than a 'create'. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* hvm: Some cleanups to vlapic emulation.Keir Fraser2007-12-191-16/+19
| | | | | Some of this was suggested by Dexuan Cui. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Shadow: tidy the virtual-TLB translation cache.Keir Fraser2007-12-193-60/+27
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* Shadow: Make gfn_t always an unsigned long. GFNs are passed aroundKeir Fraser2007-12-191-30/+23
| | | | | | | outside the shadow code, and although a 32-bit gfn_t is guaranteed to hold all GFNs that can be found in a 32-bit pagetable, comparisons with INVALID_GFN aren't safe when (-1UL) != (u32)(-1). Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* xentrace: Ensure virq gets sent even if we exactly hit the half water mark.Keir Fraser2007-12-191-2/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* [IA64] xenoprof: don't modify mPSR.pp. VTi caseAlex Williamson2007-12-173-6/+35
| | | | | | | Don't modify mPSR.pp for xenoprof. VTi domain case xenoprof manages mPSR.pp so that mPSR.pp shouldn't be modified. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [IA64] xenoprof: don't modify mPSR.pp. PV caseAlex Williamson2007-12-172-12/+39
| | | | | | | Don't change mPSR.pp for xenoprof for PV domain case. xenoprof manages mPSR.pp so that mPSR.pp shouldn't be modified. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [IA64] xenoprof: various fix on linux-xen/perfmon.cAlex Williamson2007-12-171-13/+98
| | | | | | | | | | | | | | | | Various fixes on xen/arch/ia64/linux-xen/perfmon.c - Fix starting/stopping sampling. So far IPI is used. but psr.pp isn't preserved when nested interrupt case with VTi domain. Instead timer is used. - Redefines ia64_set_pmc() to enable sampling of all xen VMM/guest kernel/guest user process. It supports only generic pmc/pmd. - Twist xenpfm_write_pmcs() It is also used when turning on pmcs. So bailing out when error is not appropriate. Even when error occures, it should continue to update next cpu's pmcs. - Add gdprintk(XENLOG_DEUBG) and BUG_ON()s. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [IA64] xenoprof: fix xenoprof_handler()Alex Williamson2007-12-171-7/+21
| | | | | | | | - Use profile_pc() to get instruction pointer. - Make xenoprof_handler() VTi domain aware - Pass current to xenoprofile_get_mode() instead of task=NULL. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [IA64] xenoprof: make xenoprofile_get_mode() vti domain awareAlex Williamson2007-12-171-13/+42
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [IA64] xenoprof: fix xenoprof_shared_gmfn()Alex Williamson2007-12-171-2/+7
| | | | | | | | | | | | | | | | fix panic after xenoprof shutdown as follows. (XEN) Xen BUG at mm.c:1265 (XEN) FIXME: implement ia64 dump_execution_state() (XEN) (XEN) **************************************** (XEN) Panic on CPU 0: (XEN) Xen BUG at mm.c:1265 (XEN) *************************************** The c/s 14624:64ab7d443549 changed the p2m table semantics so that xenoprof_shared_gmfn() also needs catch it up. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* HVM: support unaligned and page-crossing writes in the shadow emulatorKeir Fraser2007-12-153-120/+200
| | | | | | so that we can use it to support guests that clear CR0.WP. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* xend: Prevent XenD touching externally managed bridgesKeir Fraser2007-12-151-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With current XenD 3.0.4 or later try the following: brctl addbr demo ifconfig demo up /etc/init.d/xend start /etc/init.d/xend stop ifconfig demo down brctl delbr demo Now, start XenD again.... /etc/init.d/xend start And watch in horror as it re-creates your 'demo' bridge. The problem is that the 'XendNetwork' class does not distinguish between bridge devices that it is managing (ie those created via XenAPI) and those which it does not manage (ie those created by OS distro init scripts, or by apps like libvirt). While initially I thought I could just make XenD ignore externally-managed bridges completely, it seems to needs to know about them otherwise it can't hook up guest VIFs to them correctly. So the attached patch adds a 'managed' flag to the XendNetwork class. Externally managed bridges have this set to False. At startup XenD will now only re-create bridge devices which have the 'managed' flag set to 'True' - ie those created via XenAPI. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* x86: Fix e820 walk and allocator initialisation.Keir Fraser2007-12-151-6/+4
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* [IA64] Fix vmx_asm_thash typoAlex Williamson2007-12-141-1/+1
| | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* [IA64] Fix vulnerability of copy_to_user in PAL emulationAlex Williamson2007-12-141-12/+61
| | | | | | | | | | | | | | | | | | | | | | There is a security vulnerability in PAL emulation since alt-dtlb miss handler of HVM absolutely inserts a identity-mapped TLB when psr.vm=0. HVM guest can access an arbitrary machine physical memory with this security hole. Actually windows 2008 destroys the content of machine physical address 0x108000. I think this patch is enough for normal usage. Please see SDM Vol2 11.10.2.1.3 "Making PAL Procedure Calls in Physical or Virtual Mode". If the caller has a responsibility of providing DTR or DTC mapping, xencomm for PAL might be unnecessary. I confirmed there is no problem in linux, windows 2003, windows 2008 with this patch. As for PV domain, the same logic can't be used due to only one vTLB. This patch only checks that the buffer never points VMM address, that would avoid the vulnerability. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* merge with xen-unstable.hg (staging)Alex Williamson2007-12-1422-121/+218
|\
| * SVM: Treat the vlapic's tpr as the master copy and sync the vtpr to itKeir Fraser2007-12-145-43/+29
| | | | | | | | | | | | | | before every vm entry. This fixes HVM save/restore/migrate, as the vtpr value was only being synced on guest TPR writes before. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
| * hvm: Remove duplicate assignment of __HYPERVISOR_grant_table_op inKeir Fraser2007-12-141-3/+0
| | | | | | | | | | hypercall demux tables. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * cpufreq: Always return successfully from cpufreq MSR trapsKeir Fraser2007-12-141-11/+20
| | | | | | | | | | Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * hvm: Remove guest-triggerable assertions from vlapic emulation.Keir Fraser2007-12-142-29/+14
| | | | | | | | | | | | | | Currently our VLAPIC will happily deliver interrupts on vectors < 16. This could be emulated better, but probably does not matter. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
| * xenoprof: Fix more than one events can't be sampled concurrently for Intel ↵Keir Fraser2007-12-141-6/+20
| | | | | | | | | | | | | | | | | | CPU with family equal to 6 The original code only sets EN bit of IA32_PERFEVTSEL0 when profiling is started. Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
| * acm, xend: Serialize the execution of external scripts.Keir Fraser2007-12-141-13/+36
| | | | | | | | | | | | | | Instead of starting a thread per script, run a single thread and send orders to it. This serializes the execution of the scripts. Signed-off-by: Stefan Berger <stefanB@us.ibm.com>
| * xenoprof: flush remaining smples when sampling is stopped.Keir Fraser2007-12-141-0/+17
| | | | | | | | | | | | | | | | | | | | Xenoprof notifies guest kernel via VIRQ_XENOPROF when sampled. But it does coarsly based on heuristic so that sometimes VIRQ_XENOPROF isn't delivered resulting in that oprofile daemon collects no sample. To avoid that situation, always send VIRQ_XENOPROF when sampling is stopped. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * docs: Adds VT-d testing combinations and lists OS which VT-d works on.Keir Fraser2007-12-141-1/+17
| | | | | | | | Signed-off-by: Weidong Han <weidong.han@intel.com>
| * xsm: Implement missing functions in XSM dummy moduleKeir Fraser2007-12-141-1/+9
| | | | | | | | | | | | | | I am implementing some missing interface functions in the XSM dummy module. Also deactivating some debugging output. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
| * tools: Some fixes for 'make clean'.Keir Fraser2007-12-144-4/+5
| | | | | | | | Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
| * xenstore size limitsKeir Fraser2007-12-146-3/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Documents the existing 4kby size limit on xenstore message payloads * Causes xs.c in libxenstore to fail locally rather than violating said limit (which is good because xenstored kills the client connection if it's exceeded). * Introduces some limits on path lengths in xenstored. I trust no-one is using path lengths >2kby. This is good because currently a domain client can create a 4kby relative path that the dom0 tools cannot access since they'd have to specify the somewhat longer absolute path. * Removes uses of the host's PATH_MAX (!) Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
| * docs/misc/xenstore.txt minor fixesKeir Fraser2007-12-141-7/+13
| | | | | | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* | [IA64] Update README.xenia64Alex Williamson2007-12-131-18/+21
| | | | | | | | | | Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com> Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] Fix XenITP buildAlex Williamson2007-12-133-1/+3
|/ | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* Merge with ia64 tree.Keir Fraser2007-12-131-2/+2
|\