Received: from eggs.gnu.org ([2001:4830:134:3::10]:55473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1D2B-0001ZL-6f for qemu-devel@nongnu.org; Wed, 28 Mar 2018 11:30:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1D26-0005uj-5u for qemu-devel@nongnu.org; Wed, 28 Mar 2018 11:30:43 -0400 Received: from mail-db5eur01on0115.outbound.protection.outlook.com ([104.47.2.115]:29664 helo=EUR01-DB5-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 1f1D24-0005tY-Li for qemu-devel@nongnu.org; Wed, 28 Mar 2018 11:30:38 -0400 From: Roman Kagan Date: Wed, 28 Mar 2018 18:30:22 +0300 Message-Id: <20180328153024.23039-1-rkagan@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH for-2.12 v2 0/2] i386/hyperv: fully control Hyper-V features in CPUID List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Paolo Bonzini , Eduardo Habkost , Vitaly Kuznetsov In order to guarantee compatibility on migration, QEMU should have complete control over the features it announces to the guest via CPUID. However, a number of Hyper-V-related features happen to depend on the support in the underlying KVM, with no regard to QEMU configuration. Make QEMU regain control over what Hyper-V features it announces to the guest. Note #1: the patches are also being proposed[*] for stable-2.11, even though one of them introduces a new cpu property. This is done to minimize the number of published QEMU releases where the behavior of the features is unpredictable, with potentially fatal consequences for the guest. Note #2: there are other problems in the surrounding code, like ugly error reporting or inconsistent population of MSRs. I think this can be put off to post-2.12. [*] for the stable branch the second patch will have error returns replaced with warnings; I'll post a separate series. v1 -> v2: - indicate what flag requested the feature that can't be enabled in the error message - fix a typo in the error message for VP_RUNTIME Roman Kagan (2): i386/hyperv: add hv-frequencies cpu property i386/hyperv: error out if features requested but unsupported target/i386/cpu.h | 1 + target/i386/cpu.c | 1 + target/i386/kvm.c | 45 +++++++++++++++++++++++++++++++++++++-------- 3 files changed, 39 insertions(+), 8 deletions(-) -- 2.14.3