]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: ia64: fix fp fault/trap handler
authorYang Zhang <yang.zhang@intel.com>
Thu, 8 Jan 2009 07:13:31 +0000 (15:13 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 15 Feb 2009 00:47:35 +0000 (02:47 +0200)
commitd39123a486524fed9b4e43e08a8757fd90a5859a
tree5dc86ba2864f9de9144340646d3afaa66aff18d8
parentd2f8d7ee1a9b4650b4e43325b321801264f7c37a
KVM: ia64: fix fp fault/trap handler

The floating-point registers f6-f11 is used by vmm and
saved in kvm-pt-regs, so should set the correct bit mask
and the pointer in fp_state, otherwise, fpswa may touch
vmm's fp registers instead of guests'.

In addition, for fp trap handling,  since the instruction
which leads to fp trap is completely executed, so can't
use retry machanism to re-execute it, because it may
pollute some registers.

Signed-off-by: Yang Zhang <yang.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/process.c