Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753380AbdHBUnR (ORCPT ); Wed, 2 Aug 2017 16:43:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37624 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753285AbdHBUnP (ORCPT ); Wed, 2 Aug 2017 16:43:15 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4545483F40 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=rkrcmar@redhat.com From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Paolo Bonzini , David Hildenbrand Subject: [PATCH RFC 0/2] KVM: x86: generalize guest cpuid helpers Date: Wed, 2 Aug 2017 22:41:45 +0200 Message-Id: <20170802204147.3586-1-rkrcmar@redhat.com> MIME-Version: 1.0 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.27]); Wed, 02 Aug 2017 20:43:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 579 Lines: 18 This series does the generalization that we've spoken about recently Might be a good time to change the function names as well. Radim Krčmář (2): KVM: x86: generalize guest_cpuid_has_ helpers KVM: x86: use general helpers for some cpuid manipulation arch/x86/kvm/cpuid.h | 205 ++++++++++++++++++--------------------------------- arch/x86/kvm/mmu.c | 7 +- arch/x86/kvm/mtrr.c | 2 +- arch/x86/kvm/svm.c | 7 +- arch/x86/kvm/vmx.c | 33 ++++----- arch/x86/kvm/x86.c | 52 ++++++------- 6 files changed, 116 insertions(+), 190 deletions(-) -- 2.13.3