Commit Graph
18365 Commits
Author SHA1 Message Date
Isaku Yamahata a8315a08c5 [IA64] minor fix vmx_ivt.
The constant string in vmx_ivt.S should be in rodata section,
not text.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-08-25 19:04:37 +09:00
Isaku Yamahata 0265a2e997 [IA64] introduce XEN_EFI_RR6 and XEN_EFI_RR7
for firmware rr6 is used for uncacned region
and rr7 is used for cachable region.
So rid must be different.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-08-25 19:04:37 +09:00
Isaku Yamahata 4148d1b92f [IA64] EFI mapping: restoring mapping correctly.
When swiching back from efi mapping, correctly switch back
depending on the current vcpu type.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-08-25 19:04:37 +09:00
Isaku Yamahata 83d84118e5 [IA64] move back pal.S into xen/arch/ia64/linux.
Now xen/arch/ia64/linux-xen/pal.S is the same as
arch/ia64/kernel/pal.S from linux 2.6.21.
So move it back into xen/arch/ia64/linux.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-08-25 19:04:37 +09:00
Isaku Yamahata 852ea7ee6b [IA64] fix PAL call in physical mode.
Now firmware code is mapped at its own virtual address space
which is same to Linux. So the calculation from virutal
address to physical address should be same to the linux one.
In practice firmware is located in low physical address area
so that masking 60 bit instead of 61 bits doesn't make difference.

I just checked and with the patch below,
xen/arch/ia64/linux-xen/pal.S becomes the same as
arch/ia64/kernel/pal.S from linux 2.6.21.

Signed-off-by: Simon Horman <horms@verge.net.au>
2008-08-25 19:04:37 +09:00
Isaku Yamahata 76d9022819 [IA64] add one BUG_ON() to allocate_metaphysical_rr()
add one BUG_ON() to allocate_metaphysical_rr() to make sure
that rid for metaphysical address isn't collided.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-08-25 19:04:37 +09:00
Keir Fraser 64a86b092f hvmloader: Debug build incorporates HVM environment tests which must
pass for the HVM guest to successfully boot.

Currently only one test (REP INS across page boundaries) but more will
be added in future.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-21 15:18:05 +01:00
Keir Fraser 93b891026d xentrace: Fix typo in xentrace_formats file.
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Zhou Ting <ting.g.zhou@intel.com>
2008-08-21 11:12:21 +01:00
Keir Fraser 50e4834c61 Added tag 3.3.0-branched for changeset 1e99ba54035623731bc7318a8357aa6a118c5da1 2008-08-21 11:07:31 +01:00
Keir Fraser b9c620d078 x86: fix l1_disallow_mask() for HVM guests with pass-thru devices.
Signed-off-by: Naoki Nishiguchi <nisiguti@jp.fujitsu.com>
3.3.0-branched
2008-08-21 10:52:01 +01:00
Keir Fraser a0685dba64 PV-on-HVM: unmask_evtchn() must always use hypercall.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-21 09:51:46 +01:00
Keir Fraser f480edacaa Update Xen version for 3.3.0-rc8-pre 2008-08-20 14:45:21 +01:00
Keir Fraser 456a0b5b82 Added tag 3.3.0-rc7 for changeset daf1193bcd11345d566a4747fe1f12c90b44452c 2008-08-20 14:44:48 +01:00
Keir Fraser 9dd93b24de Update Xen version for 3.3.0-rc7 3.3.0-rc7 2008-08-20 14:44:44 +01:00
Keir Fraser 8f34627d05 x86 hvm: Fix binary arithmetic in hvmemul_linear_to_phys().
PAGE_SIZE - (x & ~PAGE_MASK) is not equivalent to -x & ~PAGE_MASK

Also the early goto could be removed.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-20 14:43:52 +01:00
Keir Fraser 36154f9323 Update Xen version for 3.3.0-rc7-pre 2008-08-20 10:14:26 +01:00
Keir Fraser 40195a62bc Added tag 3.3.0-rc6 for changeset bc372510f1794ee41a8b0501cc84f8a65d05e094 2008-08-20 10:13:31 +01:00
Keir Fraser 1824ecbfee Update Xen version for 3.3.0-rc6 3.3.0-rc6 2008-08-20 10:13:22 +01:00
Keir Fraser 6d0480fe26 domctl: ssidref is not initialized if !XSM_ENABLE
The ssidref in getdomaininfo() is not initialized when XSM_ENABLE is
not defined. So, xentop might display a wrong value of ssid.

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
2008-08-20 09:06:58 +01:00
Keir Fraser 5ead8cb7ed x86: APs enable x2APIC only when BSP did so.
Signed-off-by: Jun Nakajima <jun.nakajikma@intel.com>
2008-08-20 09:04:33 +01:00
Keir Fraser 97b6b26dad ioemu: Fix unmapping issue on hot-removing pass-thru device
Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
2008-08-20 09:02:15 +01:00
Keir Fraser 724fc2e33f x86 hvm: Another clarifying comment in the HVM address translation emulation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 19:45:27 +01:00
Keir Fraser aa6af210f6 x86 hvm: Add clarifying comments about clipping repeated string
instructions to 4096 iterations.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 18:52:04 +01:00
Keir Fraser 1e827f9eab x86 hvm: Build fix: param is paddr_t not ulong.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 18:47:01 +01:00
Keir Fraser 7e1f3a300f x86, hvm: Observe EFLAGS.DF when performing segmentation checks and
address translations on multi-iteration string instructions.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 15:57:19 +01:00
Keir Fraser 5dfe4aa4ee x86_emulate: Do not request emulation of REP instructions beyond the
point at which the index register (SI/DI) wraps. This can cause a
discontinuity in the address range accessed by the repeated
instruction.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-19 15:56:31 +01:00
Keir Fraser 154ef9e3cc vtd: Don't do FLR when we create domain or hotplug device into guest.
VT-d hot-plug is done in such a way:  1) xend sends 'pci-ins' command
to ioemu via xenstore; 2) ioemu creates pass-through device and raises
SCI to guest OS; guest OS loads device driver, and device driver
initializes the hot-plugged device; 3) xend does FLR. There is a race
condition about 2) and 3). If 3) runs slow, we have troubles. Thanks
for Yuji Shimada's locating the issues.

We can work around the issues by not doing FLR when we create domain
or hotplug device into guest, namely, we only do FLR when we destroy
domain or hotplug device from guest.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2008-08-19 10:51:41 +01:00
Keir Fraser d74b976c41 xend: fixes a typo in the PIF class of the Xen-API code.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2008-08-19 10:48:39 +01:00
Keir Fraser 613e3fc198 x86: update ioport_quirks_tbl[] for the proliant DL7xx
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
2008-08-18 10:47:54 +01:00
Keir Fraser 4ec6fe513f Update Xen version for 3.3.0-rc6-pre 2008-08-15 15:01:38 +01:00
Keir Fraser 49d134a02f Added tag 3.3.0-rc5 for changeset b4dba6a0e97cb6dd080fa566468e3cc972c34d7a 2008-08-15 15:01:04 +01:00
Keir Fraser f515506e57 Update Xen version for 3.3.0-rc5 3.3.0-rc5 2008-08-15 15:00:57 +01:00
Keir Fraser a532271d47 x86, hvm: Fix softtsc for AMD-V
The softtsc code for AMD does not update the ip; enabling it on AMD-V
results in the domain spinning on the RDTSC instruction. The patch is
against xen-unstable 18331.

Signed-off-by: John Byrne <john.l.byrne@hp.com>
2008-08-15 14:59:41 +01:00
Keir Fraser 202b0e0dc0 x86 shadow: Fix OOS typecounting.
From: Gianluca Guida <gianluca.guida@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-14 16:26:06 +01:00
Keir Fraser 006e7188d4 pv-grub: On x86_64, also build an x86_32 pv-grub
This requires suffixing obj directories and having grub compiled
outside sources.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-08-14 13:46:48 +01:00
Keir Fraser f6c2c609f7 Fix restore crash with certain guest memory sizes
This fixes a crash when restoring guests with certain memory sizes (eg
223MB).  The ROUNDUP in the call to memcpy, was the main offender, but
I didn't care for the inplace resizing of the p2m entries either.

Signed-off-by: Bruce Rogers <brogers@novell.com>
2008-08-14 10:18:08 +01:00
Keir Fraser 32b397b0b4 x86, shadow: Fix OOS on domain crash.
I couldn't reproduce the Nevada crash on my testbox, but this should
fix the first Xen crash that was seen in the Nevada HVM (bugzilla
#1322).

What I think most probably happened there is that the set_l2e call in
shadow_get_and_create_l1e() has tried to resync a page, but somehow we
weren't unable to remove the shadow (the real bug we should actually
look after). sh_resync() then removes the page from the OOS hash and
later in the page fault path we find the gw.l1mfn to be still OOS, so
we try to update the snapshot and the bug happens.

This should fix this and other unlikely (like sh_unsync() failing to
remove for hash collision the current gw.l1mfn) cases.

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
2008-08-14 10:14:32 +01:00
Isaku Yamahata 1882e02837 [ia64] remove the runtime warning when hvmop_set_mem_type is used.
remove the runtime warning when HVMOP_set_mem_type is used.
But the hypercall just returns -ENOSYS. It isn't implemented yet.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2008-08-14 11:00:35 +09:00
Isaku Yamahata baf225c88b merge with xen-unstable.hg 2008-08-13 22:22:21 +09:00
Keir Fraser 24ed79393d shadow: Fix BUILD_BUG_ON().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 13:54:17 +01:00
Keir Fraser f9307cbb49 MSI-X: enhancement
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
2008-08-13 13:45:39 +01:00
Keir Fraser 68c053e8a9 xend: Allow xenconsoled to be passed arguments at startup
Attached patch allows to pass arguments to xenconsoled
via XENCONSOLED_TRACE env. variable analogous to xenstored.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2008-08-13 13:42:30 +01:00
Keir Fraser 74f9ac9665 xend: Make sure that 'PV_kernel' config param is not blank when
assigning it to 'loader' param. This fixes a failure of 'xm create'
via xen-api.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
2008-08-13 13:40:38 +01:00
Keir Fraser e8c1df443f x86: Simplify arch_virq_is_global().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 13:39:40 +01:00
Keir Fraser f507885bc3 x86: Fix shadow code's handling of p2m superpage changes
When a p2m superpage entry is shattered, it's important not to
unshadow any parts of the 2MB region that are still there afterwards.
Otherwise shattering a superpage that contains the guest's top-level
pagetable will cause the guest to be killed.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
2008-08-13 12:13:59 +01:00
Keir Fraser c954127bc6 x86 shadow: Relax BUILD_BUG_ON() regarding struct sizes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 12:12:08 +01:00
Keir Fraser a87b010c67 x86, shadow, oos: Remove overzealous warning and simplify code.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 11:09:46 +01:00
Keir Fraser 15b16e24df x86 mcheck: mce_disabled is not __initdata: it's referenced on S3 resume
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-08-13 09:57:42 +01:00
Keir Fraser 06b01c320b vtd: Add checking on return value of init_vtd_hw()
This ensures correct actions will be taken if init_vtd_hw()
fails. Especially, when 'iommu=force' is used, Xen should not
boot if init_vtd_hw() fails.

Signed-off-by: Weidong Han <weidong.han@intel.com>
2008-08-13 09:56:15 +01:00
Isaku Yamahata f601278990 [IA64] fix vtlb flush
Live migration with uninitialized vcpu will crash xen by null pointer.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2008-08-13 13:18:06 +09:00