From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkZ45-0000Yr-8i for qemu-devel@nongnu.org; Fri, 09 Oct 2015 10:54:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkZ40-00015L-9u for qemu-devel@nongnu.org; Fri, 09 Oct 2015 10:54:33 -0400 Received: from relay.parallels.com ([195.214.232.42]:42570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkZ40-00014y-20 for qemu-devel@nongnu.org; Fri, 09 Oct 2015 10:54:28 -0400 Date: Fri, 9 Oct 2015 17:53:59 +0300 From: Roman Kagan Message-ID: <20151009145358.GT27239@rkaganb.sw.ru> References: <1444397988-20167-1-git-send-email-den@openvz.org> <1444397988-20167-3-git-send-email-den@openvz.org> <5617D20B.1080402@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <5617D20B.1080402@redhat.com> Subject: Re: [Qemu-devel] [PATCH 2/2] kvm/x86: Hyper-V kvm exit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Gleb Natapov , qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, Andrey Smetanin , "Denis V. Lunev" , Vitaly Kuznetsov , "K. Y. Srinivasan" On Fri, Oct 09, 2015 at 04:41:15PM +0200, Paolo Bonzini wrote: > On 09/10/2015 15:39, Denis V. Lunev wrote: > > A new vcpu exit is introduced to notify the userspace of the > > changes in Hyper-V synic configuraion triggered by guest writing to the > > corresponding MSRs. > > Why is this exit necessary? The guest writes to synic-related MSRs and that should take "immediate" effect. E.g. it may decide to disable or relocate the message page by writing to SIMP MSR. The host is then supposed to stop accessing the old message page before the vCPU proceeds to the next instruction. Hence the exit, to allow the userspace to react accordingly before reentering the guest. Roman.