aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update version to 3.2.0-rc43.2.0-rc4Keir Fraser2007-12-291-1/+1
|
* vmx: Fix the 2nd argument of cpuid_count() in vmx_cpuid_intercept()Keir Fraser2007-12-291-1/+2
| | | | | | | For input 0x00000004, the value of "*ecx" has been overwritten by the cpuid() in hvm_cpuid(), causing a bad value passed to cpuid_count(). Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* vtpm: Fix GetCapabilityOwner functionKeir Fraser2007-12-291-0/+15
| | | | | | | | GetCapabilityOwner function's behavior is different from that of a real tpm device. By the difference, a TPM Manager in an HVM domain could not detect whether TPM device has an owner or not. Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
* Rename uintN_t guest handles to uintN, to avoid nameclash with uintN_tKeir Fraser2007-12-2812-35/+32
| | | | | macros during the handle definitions. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xentrace bug fix: data format of hvmtrace is changed.Keir Fraser2007-12-282-4/+4
| | | | Signed-off-by: Disheng Su <disheng.su@intel.com>
* vt-d: Only setup rmrr identity mappings of the assigned devicesKeir Fraser2007-12-281-7/+10
| | | | | | | | | | | | | | Current implementation setups identity mappings for all the rmrrs whether the assigned device has rmrr or not. It's wasteful and not necessary, because only USB controllers and UMA integarated graphics devices have rmrr. This patch only setups rmrr identity mappings of the assigned devices. If the assigned devices don't have rmrr, needn't to setup rmrr identity mapping for guest. BTW, this patch fixes the VT-d bug (Fail to boot smp Linux guest with VT-d NIC assigned on IA32e platform). Signed-off-by: Weidong Han <weidong.han@intel.com>
* In C99 (7.19.6.2.10), the behavior of scanf("stuff... %n", ..., &n) isKeir Fraser2007-12-282-6/+2
| | | | | | | said to be undefined if the value to be put is n can't fit. I guess we can safely consider that the same applies to printf. Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
* hvm: copy_{to,from}_user_hvm shoudl return appropriate error codes.Keir Fraser2007-12-271-4/+8
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86, hvm, rombios: INT13 LBA48 support for disks bigger than 128GB.Keir Fraser2007-12-271-19/+44
| | | | | | The new limit should be 2TB. Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
* Fix pygrub handling of many kernelsKeir Fraser2007-12-271-4/+12
| | | | | | | | If there are a large number of kernel images configured in grub.conf there will be too many to fit in the limited size pygrub display. This patch fixes this so that the list of kernels scrolls as needed. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* gdbstub: Various fixes.Keir Fraser2007-12-2711-93/+406
| | | | | | | | | Highlights: - Removed panics and smp stop calls in favour of an smp pause mechanism. - Added x86_64 register mapping for gdb serial protocol support. Signed-off-by: Dan Doucette <doucette.daniel@gmail.com>
* libxc: Fix xc_domain_bind_pt_irq().Keir Fraser2007-12-271-5/+9
| | | | Signed-off-by: Guy Zana <guy@neocleus.com>
* tapaio check return value from read()Keir Fraser2007-12-271-2/+18
| | | | | | | | | | | | In tools/blktap/drivers/tapaio.c there is a call to read(2) whose return value is not checked. The attached patch attempts to do something vaguely sensible in cases of error. Fully comprehensive error handling in this area would be quite tough to introduce now but at least with this change when things go wrong you stand a chance of getting some information about what happened. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Fix xend xenstore handling.Keir Fraser2007-12-273-23/+33
| | | | | | | | | xend can get into a situation where two processes are attempting to interact with the xenstore socket, with disastrous results. Fix the two bad users of xstransact, add a big warning, and fix the destructor so future mistakes will be detected earlier. Signed-off-by: John Levon <john.levon@sun.com>
* vmx: Map the VLAPIC access page as mmio-direct in the p2m. ThisKeir Fraser2007-12-271-2/+2
| | | | | | | | prevents emulated accesses to this page, which would not be handled in the correct way (VMX handles accesses to that page in non-root mode in a very super-special way). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: For functions which translate virtual addresses to machineKeir Fraser2007-12-279-146/+164
| | | | | | | | | | | | | addresses, page faults should only be raised when the gva->gfn translation fails. These should be distinguished from gfn->mfn translation failures. The main effect of this is to change the behaviour of functions derived from __hvm_copy(), which now returns a three-way enumeration, and also can automatically inject #PF when the gva->gfn translation fails. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Cannot use ring_3() macro on HVM guests. It does not work becauseKeir Fraser2007-12-278-16/+28
| | | | | | | | | the CS field is not saved/restored and also because CS.RPL does not always equal the DPL (e.g., when executing in real mode). Instead we must interrogate SS.DPL, or CPL directly (SVM supports this). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Register fields CS,DS,ES,FS,GS,SS,etc. are all undefined duringKeir Fraser2007-12-276-1/+58
| | | | | | | HVM execution as they are not saved/restore on vmexit/vmentry. To prevent accidental usage of these fields, poison them with 16-bit value 0xbeef (debug builds only). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Fix PAE build.Keir Fraser2007-12-221-5/+5
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Update version to 3.2.0-rc4-preKeir Fraser2007-12-221-1/+1
|
* hvm: More physaddrs in unsigned longs.Keir Fraser2007-12-212-4/+4
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* Added tag 3.2.0-rc3 for changeset ed79613b48817d5e0d1f9b3cf104c0e4e8b0d8cfKeir Fraser2007-12-201-0/+1
|
* 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>