aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update version to xen-3.2.0-rc63.2.0-rc6Keir Fraser2008-01-131-1/+1
|
* x86: Fix PV PIT handler after previous changeset.Keir Fraser2008-01-121-4/+10
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Improve in-Xen PIO emulation to better handle string PIOKeir Fraser2008-01-127-102/+139
| | | | | instructions. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* svm: Properly mask unsupported bits in CPUID_80000001_ECX.Keir Fraser2008-01-121-0/+6
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: hpet: Tidy up hpet_to_ns_limit calculation.Keir Fraser2008-01-111-1/+1
| | | | | Suggested by Haitao Shan @ Intel. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* vmxassist: Emulate CLTS.Keir Fraser2008-01-111-0/+3
| | | | | Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86 hvm: hvm_maybe_deassert_evtchn_irq() needs to be called early inKeir Fraser2008-01-114-2/+4
| | | | | | vmexit handling, before IO-APIC can be EOIed or unmasked and resample the fake INTx line. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86_emulate: Fix near CALL/JMP <reg,mem>. Broken by c/s 16491.Keir Fraser2008-01-101-1/+1
| | | | | Thanks to AMD for narrowing this one down. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86_emulate: Certain opcodes are only valid with a memory operand.Keir Fraser2008-01-101-0/+4
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fix network-bridge shell quoting.Keir Fraser2008-01-101-2/+2
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Added tag 3.2.0-rc5 for changeset 36bb2ab4722733d919d32e4555eb46cc6a06cb8fKeir Fraser2008-01-091-0/+1
|
* Update version to 3.2.0-rc53.2.0-rc5Keir Fraser2008-01-091-1/+1
|
* x86_emulate: Fix handling of RIP-relative addressing.Keir Fraser2008-01-091-2/+2
| | | | | | The handling of SHLD/SHRD introduced in 16696:b5b3e27f1af3f7 was incorrect; thanks to Gary Grebus @ Virtual Iron for spotting it. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* vt-d: Fix print_vtd_entries walk VTd mapping table.Keir Fraser2008-01-093-72/+43
| | | | | | | | | DMA request to above guest physical memory will cause VTd fault, in which print_vtd_entries() tries to walk VTd mapping table. However, during walking, current Xen code didn't check if the PTE is valid and may access to invalid memory address. Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
* hvm: hpet: Clamp period to sane values to prevent excessive looping inKeir Fraser2008-01-091-6/+18
| | | | | hpet_timer_fn(), or excessive numbers of set_timer() callbacks. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86_emulate: Correct RIP-relative addressing offset for SHLD/SHRD withKeir Fraser2008-01-091-0/+3
| | | | | immediate byte third operand. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fix x86_emulate() handling of imul with immediate operands.Keir Fraser2008-01-091-8/+11
| | | | | | | This fixes a repeatable crash in RHEL 4.2 ext2 filesystem during boot. Signed-off-by: Gary Grebus <ggrebus@virtualiron.com> Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
* x86: Fix a comment in get_page_type().Keir Fraser2008-01-081-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: hpet: Fix overflow when converting to nanoseconds.Keir Fraser2008-01-082-2/+8
| | | | | | | | | | | | Currently in hpet_tick_to_ns, the approach is multiplying first, which easily causes overflow when tick is quite large. The patch cannot handle arbitratry large ticks duo to the precision requirement and 64bit's value range. But by optimize the equation, a larger ticks than current code can be supported. Also an overflow check is added before the calculation. From: Haitao Shan <haitao.shan@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: Fix evtchn-to-fake-pci interrupt propagation.Keir Fraser2008-01-085-19/+29
| | | | | | | | | | | Previously the evtchn_upcall_pending flag would only ever be sampled on VCPU0, possibly leading to long delays in deasserting the fake-pci-device INTx line if the interrupt is actually delivered to other than VCPU0. Diagnosed by Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Add a ChangeLog fileKeir Fraser2008-01-081-0/+65
| | | | | | Add a file for tracking API/ABI changes and additions. Signed-off-by: John Levon <john.levon@sun.com>
* hvm: time: Fixes to 'SYNC' (no_missed_ticks_pending) timer handling.Keir Fraser2008-01-081-2/+3
| | | | | Based on a patch by Dave Winchell <dwinchell@virtualiron.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* hvm: hpet: Fix per-timer enable/disable.Keir Fraser2008-01-081-12/+6
| | | | | | | | | | The enable/disable per timer interrupt bit is wrongly used as per timer enable/disable. According to spec, comparator value should constantly increasing when HPET is globally enabled, no matter whether the timer interrupt is enabled or not. From: Haitao Shan <haitao.shan@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Fixes for S3 suspend resume:Keir Fraser2008-01-082-1/+9
| | | | | | | | | - Fix wallclock resume by remembering the offset from CMOS time to UTC time - Restore dom0's CPU affinity (lost during continue_hypercall_on_cpu()) Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
* x86, hvm: Add a perf counter for CR0.WP=0 emulation.Keir Fraser2008-01-082-0/+4
| | | | Signed-off-by Kevin Tian <kevin.tian@intel.com>
* [Xend] Fix 2 problems related to SR classKeir Fraser2008-01-081-1/+5
| | | | | | | | This fixes two problems related to the SR class: - get_PBDs() was not implemented - get_physical_size did not work Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Merge with ia64 treeKeir Fraser2008-01-082-2/+3
|\
| * Handle netdev secondary addresses and labelsKeir Fraser2008-01-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the network-bridge logic to correctly transfer secondary IP address from $netdev to $bridge. e.g. if you add an secondary address/label/alias with: $> ip addr add 172.31.0.200/24 dev eth0 label eth0:00 then, "ip addr show dev eth0" gives e.g.: inet 172.31.0.10/24 brd 172.31.0.255 scope global eth0 inet 172.31.0.200/24 scope global secondary eth0:00 and transfer_addrs() tries to execute: ip addr add 172.31.0.10/24 brd 172.31.0.255 scope global dev tmpbridge ip addr add 172.31.0.200/24 scope global secondary dev tmpbridge:00 which causes the sript to fail because: 1) The device tmpbridge:00 doesn't exist 2) The "secondary" flag isn't valid This patch fixes the sed commands to instead give: ip addr add 172.31.0.10/24 brd 172.31.0.255 scope global dev tmpbridge label tmpbridge ip addr add 172.31.0.200/24 scope global dev tmpbridge label tmpbridge:00 Signed-off-by: Mark McLoughlin <markmc@redhat.com>
| * HVM vif without bridge.Keir Fraser2008-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When using xen without a bridge but NAT or routing, HVM domains can't boot, and qemu-dm-n.log contains: config qemu network with xen bridge for tap0 xenbr0 bridge xenbr0 does not exist! That's because the qemu-ifup script always tries to add the vif to a default-named xenbr0 bridge. On the contrary, PV domains just work fine with the same configuration file except HVM parameters. Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
* | [IA64] Sort out the XEN_IA64_OPTF_IDENT_MAP_REG[457] constants confusionAlex Williamson2007-12-306-21/+56
| | | | | | | | | | | | | | | | | | Currently the constants are used for two different purpose. one is for the OPTF hypercall sub command. another is bit flag for struct opt_feature::mask. They are different spaces, split them out. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Fix PV break fault handler.Alex Williamson2007-12-301-1/+6
| | | | | | | | | | | | | | PV domain break fault handler calls C routine reflect_event() with psr.ic = 0. It might cause unrecoverable tlb miss. set psr.ic=1 before calling it. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Fix XEN_DOMCTL_shadow_op. it should check copy_to_guest() return value.Alex Williamson2007-12-301-1/+2
| | | | | | | | | | | | Pointed out by Samuel Thibault. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] fix vmx_switch_rr7(). uninitialized register r3 was used. initialize it.Alex Williamson2007-12-301-3/+1
|/ | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Added tag 3.2.0-rc4 for changeset c5deb251b9dcece9e466a48a66d3528ca1797db4Keir Fraser2007-12-291-0/+1
|
* 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>