[SPARC64]: Bulletproof hypervisor TLB flushing.
Check TLB flush hypervisor calls for errors and report them. Pass HV_MMU_ALL always for now, we can add back the optimization to avoid the I-TLB flush later. Always explicitly page align the virtual address arguments. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1968,6 +1968,18 @@ void sun4v_dtlb_error_report(struct pt_regs *regs, int tl)
|
||||
prom_halt();
|
||||
}
|
||||
|
||||
void hypervisor_tlbop_error(unsigned long err, unsigned long op)
|
||||
{
|
||||
printk(KERN_CRIT "SUN4V: TLB hv call error %lu for op %lu\n",
|
||||
err, op);
|
||||
}
|
||||
|
||||
void hypervisor_tlbop_error_xcall(unsigned long err, unsigned long op)
|
||||
{
|
||||
printk(KERN_CRIT "SUN4V: XCALL TLB hv call error %lu for op %lu\n",
|
||||
err, op);
|
||||
}
|
||||
|
||||
void do_fpe_common(struct pt_regs *regs)
|
||||
{
|
||||
if (regs->tstate & TSTATE_PRIV) {
|
||||
|
Reference in New Issue
Block a user