Re: [PATCH v6 02/12] Halt vcpu if page it tries to access is swappedout.

From: Avi Kivity
Date: Thu Oct 07 2010 - 09:30:30 EST


On 10/07/2010 03:24 PM, Rik van Riel wrote:
On 10/07/2010 05:50 AM, Avi Kivity wrote:

+static bool can_do_async_pf(struct kvm_vcpu *vcpu)
+{
+ if (unlikely(!irqchip_in_kernel(vcpu->kvm) ||
+ kvm_event_needs_reinjection(vcpu)))
+ return false;
+
+ return kvm_x86_ops->interrupt_allowed(vcpu);
+}

Strictly speaking, if the cpu can handle NMIs it can take an apf?

Strictly speaking, yes.

However, it may not be able to DO anything with it, since
it won't be able to reschedule the context it's running :)


I was thinking about keeping the watchdog nmi handler responsive.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/