Previously VTI-domain only supported contiguous memory,
this patch is intended to make VTI-domain support non-contiguous memory.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
This patch can work around virtual memmap/discontig memory issues,
but memory gain may not be realized.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
vhpt_paddr & vhpt_pend are now per-cpu variables, since VHPT is allocated
per cpu. This should really improve stability.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
On up host, only when rr7 is changed, efi_map_pal_code() is called to
remap pal code on new rr7. But on smp host, efi_map_pal_code is also
called to map pal code for other processors, which may not satisfy rr7
change condition, thus pal code may not be mapped in some processors,
while ia64_pal_halt_light called in startup_cpu_idle_loop will cause
machine crash.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
1. Vmx_check_pending_irq should not be called in vmx_vcpu_set_eoi,
because vmx_vcpu_increment_iip is called after vmx_vcpu_set_eoi. That
is, the first instruction of guest interrupt handler will be skipped.
2. Remove code segment which was used to send events to VTIdomain, when
dom0 was VTIdomain. This is not needed any more, and will cause
VTIdomain on SMP-HOST complain "Unexpected interrupt ..." .
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
This patch adds some functions' prototype declaration in corresponding
header file and removes issues suce as redefinition of some macros.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
This patch removes most of the warnings such as incompatible assignment,
unused variables, return value type of some functions and so on.
Signed-off-by: Zhang Xiantao <xiantao.zhang @intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
There are two definitions of raw_smp_processor_id()
One is in file xen/include/asm-ia64/linux/asm/smp.h
#define raw_smp_processor_id() (current_thread_info()->cpu)
The other is in file /xen/include/asm-ia64/config.h
#define raw_smp_processor_id() current->processor
In fact, the first one takes effect, that's not correct.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
This patch is to remove more unused linux files inside xen and also some
duplicated ones, like slab.h and cpumask.h. This should help reduce
duplicated definitions conflicting with xen's.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
Looks like we accidentially added a compliment op here, adding
one more to nullify. Fixed dom0 not booting.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
make dtlb miss handler to handle xen/ia64 identity mapping area.
xen/ia64 enables vhpt walker for all regions unlink Linux.
So dtlb misses on identity mapping area are catched by
dtlb miss handler, not alt dltb miss handler.
- dtlb miss on identity mapping area must be handled
- alt dtlb miss must be handled
- itlb miss on the identity mapping area must not occur
panic via page_fault().
- alt itlb miss by a guest must be handled
it occurs during dom0 boot.
- alt itlb miss by xen must not occur
panic by FORCE_CRASH
vmx_ivt.S already has such tweaks by checking psr.vm bit.
TODO: optimization
dtlb miss handlers are performance critical so that
it should be heavily optimized like alt_dtlb_miss.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This patch handles the pal_freq_ratio and pal_freq_base request breaked
to Xen by GFW for VTi domain. and it fixed the wrong frequency ratio
and base of VTi domian. So,i with this patch, VTi domian can get the
right time ,itc,cpu frequency, freqency base and other kernel params rely
on right frequency_ratio.
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Yu Ke <ke.yu@intel.com>
uses slow iret path every time (but most returns will do that
anyway, since they'll be to userspace). Fast return (to kernel)
can be implemented inside the macro and respect the
supervisor_mode_kernel feature flag.
Signed-off-by: Keir Fraser <keir@xensource.com>
Fail to boot if domain 0 requires features that Xen does not
understand or support (for domain 0).
Remove stale dom0_translate boot option.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>