Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942429AbcJ0RBN (ORCPT ); Thu, 27 Oct 2016 13:01:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52100 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbcJ0RBK (ORCPT ); Thu, 27 Oct 2016 13:01:10 -0400 Subject: Re: [PATCH 0/2] KVM: x86: emulate fxsave and fxrstor To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= References: <20161026205014.19801-1-rkrcmar@redhat.com> <0e5108b0-15f0-56c1-b9e5-626ecff644d7@redhat.com> <20161027164059.GG4212@potion> Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini From: Laszlo Ersek Message-ID: <30b110e3-4eda-6ccb-a2ea-217c7fbef9cb@redhat.com> Date: Thu, 27 Oct 2016 19:01:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161027164059.GG4212@potion> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 27 Oct 2016 17:01:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2034 Lines: 49 On 10/27/16 18:41, Radim Krčmář wrote: > 2016-10-26 23:40+0200, Laszlo Ersek: >> On 10/26/16 22:50, Radim Krčmář wrote: >>> [1/2] adds the emulation (and could be split into two patches if you'd like), >>> [2/2] just refactors the code. >>> >>> This should fix an issue that users are hitting. Laszlo found several reports: >>> - https://bugs.launchpad.net/qemu/+bug/1623276 >>> - https://bugzilla.proxmox.com/show_bug.cgi?id=1182 >>> - https://bugs.archlinux.org/task/50778 >>> >>> I have only tested it with a simple kvm-unit-tests, though. Reproducing the >>> iPXE issue is on the way ... >>> >>> >>> Radim Krčmář (2): >>> KVM: x86: emulate fxsave and fxrstor >>> KVM: x86: save one bit in ctxt->d >>> >>> arch/x86/kvm/emulate.c | 110 ++++++++++++++++++++++++++++++++++++++++++------- >>> 1 file changed, 94 insertions(+), 16 deletions(-) >>> >> >> I was just about to post iPXE patches that would disable the FXSAVE / >> FXRSTOR instructions in the CONFIG=qemu build (*), but you beat me to it >> with the KVM emulation code ;) >> >> (*) If you look at the iPXE commit that added them, they are a >> workaround for a Tivoli VMM bug; i.e., irrelevant for QEMU/KVM guests. >> >> ... Actually, those iPXE patches that conditionalize FXSAVE / FXRSTOR >> may still make sense -- we can rebuild iPXE, and bundle the refreshed >> binaries with QEMU v2.7.1, and swiftly at that. Whereas the KVM patches >> could take more time to propagate to users?... Not sure. What do you >> guys think? > > This series won't get into 4.9, so it would take almost half a year > before the kernel trickles into experimental distros. And updating > QEMU/iPXE isn't as dangerous as updating kernel, so I like the idea. > > I am just tempted to drop a KVM patch with positive diffstat that fixes > something that doesn't really need fixing anymore. :) Personally I can't argue either way; I'll just state that the iPXE patches aren't a done deal yet, either... We're still waiting for maintainer feedback. Thank you, Radim! Laszlo