[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54BCEDD5.40301@redhat.com>
Date: Mon, 19 Jan 2015 12:43:17 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: kvm@...r.kernel.org
Subject: Re: [PATCH 5/5] KVM: nVMX: Enable nested posted interrupt processing.
Hi Wincy,
there is only one thing that I don't understand in this patchset, and it is:
On 16/01/2015 06:59, Wincy Van wrote:
> + /*
> + * if vcpu is in L2, we are fast enough to complete
> + * before L1 changes/destroys vmcs12.
> + */
... this comment. What do you mean exactly?
Paolo
> + local_irq_save(flags);
> + vmcs12 = get_vmcs12(vcpu);
> + if (!is_guest_mode(vcpu) || !vmcs12) {
> + r = -1;
> + goto out;
> + }
> + if (vector == vmcs12->posted_intr_nv &&
> + nested_cpu_has_posted_intr(vmcs12)) {
> + if (vcpu->mode == IN_GUEST_MODE)
> + apic->send_IPI_mask(get_cpu_mask(vcpu->cpu),
> + POSTED_INTR_VECTOR);
> + else {
> + r = -1;
> + goto out;
> + }
> +
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists