We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee6352b commit 50cc02eCopy full SHA for 50cc02e
arch/x86/kernel/kvm.c
@@ -245,17 +245,13 @@ NOKPROBE_SYMBOL(kvm_read_and_reset_pf_reason);
245
dotraplinkage void
246
do_async_page_fault(struct pt_regs *regs, unsigned long error_code, unsigned long address)
247
{
248
- enum ctx_state prev_state;
249
-
250
switch (kvm_read_and_reset_pf_reason()) {
251
default:
252
do_page_fault(regs, error_code, address);
253
break;
254
case KVM_PV_REASON_PAGE_NOT_PRESENT:
255
/* page is swapped out by the host. */
256
- prev_state = exception_enter();
257
kvm_async_pf_task_wait((u32)address, !user_mode(regs));
258
- exception_exit(prev_state);
259
260
case KVM_PV_REASON_PAGE_READY:
261
rcu_irq_enter();
0 commit comments