qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v1 6/7] kvm/x86: Hyper-V SynIC message slot pend


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v1 6/7] kvm/x86: Hyper-V SynIC message slot pending clearing at SINT ack
Date: Wed, 25 Nov 2015 17:52:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0


On 25/11/2015 16:20, Andrey Smetanin wrote:
> +static void synic_clear_sint_msg_pending(struct kvm_vcpu_hv_synic *synic,
> +                                     u32 sint)
> +{
> +     struct kvm_vcpu *vcpu = synic_to_vcpu(synic);
> +     struct page *page;
> +     gpa_t gpa;
> +     struct hv_message *msg;
> +     struct hv_message_page *msg_page;
> +
> +     gpa = synic->msg_page & PAGE_MASK;
> +     page = kvm_vcpu_gfn_to_page(vcpu, gpa >> PAGE_SHIFT);
> +     if (is_error_page(page)) {
> +             vcpu_err(vcpu, "Hyper-V SynIC can't get msg page, gpa 0x%llx\n",
> +                      gpa);
> +             return;
> +     }
> +     msg_page = kmap_atomic(page);

But the message page is not being pinned, is it?

Paolo

> +     msg = &msg_page->sint_message[sint];
> +     msg->header.message_flags.msg_pending = 0;
> +
> +     kunmap_atomic(msg_page);
> +     kvm_release_page_dirty(page);
> +     kvm_vcpu_mark_page_dirty(vcpu, gpa >> PAGE_SHIFT);
> +}
> +



reply via email to

[Prev in Thread] Current Thread [Next in Thread]