Received: from eggs.gnu.org ([2001:4830:134:3::10]:39120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL7cH-0005q8-NW for qemu-devel@nongnu.org; Wed, 14 Jun 2017 08:41:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL7cE-0002c9-LC for qemu-devel@nongnu.org; Wed, 14 Jun 2017 08:41:45 -0400 Received: from mail-he1eur01on0118.outbound.protection.outlook.com ([104.47.0.118]:9248 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dL7cE-0002bN-1J for qemu-devel@nongnu.org; Wed, 14 Jun 2017 08:41:42 -0400 Date: Wed, 14 Jun 2017 15:41:10 +0300 From: Roman Kagan Message-ID: <20170614124109.GB2044@rkaganb.sw.ru> References: <20170606181948.16238-1-rkagan@virtuozzo.com> <20170606181948.16238-17-rkagan@virtuozzo.com> <999e60c5-7ee7-5346-6940-1fcd5d7b4264@redhat.com> <20170614115421.GJ2004@rkaganb.sw.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 16/23] hyperv: map overlay pages after updating msrs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, Eduardo Habkost , Evgeny Yakovlev , "Denis V . Lunev" On Wed, Jun 14, 2017 at 02:11:56PM +0200, Paolo Bonzini wrote: > On 14/06/2017 13:54, Roman Kagan wrote: > >> Why not disable the zeroing for host-initiated MSR writes? This is > >> pretty clearly a KVM bug, we can push it to stable kernels too. > > > > The only problem with this is that QEMU will have no reliable way to > > know if the KVM it runs with has this bug fixed or not. Machines > > without vmbus work and even migrate fine with the current KVM despite > > this bug (the only user of those pages currently is synic timers which > > re-arm themselves and post messages regardless of zeroing). Now > > updating QEMU to a vmbus-enabled version without updating the kernel > > will make the migrations cause guest hangs. > > Return 2 from KVM_CHECK_EXTENSION(KVM_CAP_HYPERV_SYNIC)? Then you can > make new QEMU refuse to enable synic if a new kernel is not available. Indeed, that's a possibility. I'll probably make it in both directions then: on KVM_ENABLE_CAP(KVM_CAP_HYPERV_SYNIC, 2) disable zeroing completely, including on guest writes, to better match Hyper-V. Or does it deserve a separate cap number? Thanks, Roman.