Received: by 10.223.185.116 with SMTP id b49csp3756250wrg; Mon, 26 Feb 2018 05:38:24 -0800 (PST) X-Google-Smtp-Source: AH8x224Di0kHA6CzbK2pZLlt8HyZ7mQRDbtxjuuLmiuxWqch0UmpeWlZVTnW3dF/S0cgb8EsrCul X-Received: by 10.101.77.142 with SMTP id p14mr7172116pgq.106.1519652304827; Mon, 26 Feb 2018 05:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519652304; cv=none; d=google.com; s=arc-20160816; b=KBEBA75PT4vtsqf6rZ7qhbXbot59V1phnMYthIO3eVKwMaT8YOyZoeAgpY7Ueo7rR0 vRrgvLRz+61zKmGSqSsJfRTm2ykhJCdTw5UtSGWZ0IMs452opd9dn2RVd9Ws5Pn0OCqm KiBf3Xos5KT0U8nmskSvq6DQ9lV2c86RA2D/WPQYkR9MvLY270HVKteFHSJrRhIdKAnr /hdaOCOn4mn7fi6b3WTeo4XNB7o4bFl19M5EYnfwwlm4xVYp3LnZquaT3PqP+HHD5sLF 1BofCsqfe4EhRFu1djQ6xoWPHrVVZumncQH7opBY/IVinh/SYS8Kk0M+TcYsuo+Q7gJQ yuxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=CJf2R1iPwKuUqmu6qknRGy9MB9+r45o193Imx3v0Iv8=; b=oNgDYqTSsJJK92oROJpgOnhWfGKv9NC94jnPpyh3wgFNOwVy/vwWddNZmtX4wAN358 EWrhJ/e1FrhWbrVzhNN+Q5Vbe6ETc1gV9ZopTPX7NZc9XHkJkeP44RDoP6noIVFtdFMk 8ISTDYu5QAiRQHUR+MtMp4A3iRRp9/vA51MC+eznEw3my5MhQRCUhcfIWIAC4r0Vb9CC pyHRAvr0hFhyN0V4QoRnihGdQVvPhTiYUC6LEj1TjHMYIB1T8UjstEvUa+2iCpsXfgfK el0P/dapez1uq+Bm5BSv+9QtAY2fj8WkNMre31GvF4i7yX9Qa7VscRTKwrroaIweHx/Y jdXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IQEjMPB9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124si6793186pfu.109.2018.02.26.05.38.09; Mon, 26 Feb 2018 05:38:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IQEjMPB9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752771AbeBZMkt (ORCPT + 99 others); Mon, 26 Feb 2018 07:40:49 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:37807 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752443AbeBZMkp (ORCPT ); Mon, 26 Feb 2018 07:40:45 -0500 Received: by mail-wr0-f194.google.com with SMTP id z12so21057597wrg.4; Mon, 26 Feb 2018 04:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=CJf2R1iPwKuUqmu6qknRGy9MB9+r45o193Imx3v0Iv8=; b=IQEjMPB92y194+PI7jvRKXSqfl+MmQQei6Iog5kAfjdFxkGFGxTGxxDj1ev/3TBGeo BNJH8FemmOdmHKshfjScE6z6p3sde+opD/uDyCVM4q3SQfBastswupHV2FRtCnPZb5dK YWrAUvCd4PVLT3U6KZZkYxVIXqmoF0TzXnClrJ6L1VdEwYBIPvJA7CiKQicNIDV+lNFE KWAf45hJWIvnbhYUMlHFBenMU9gR/qinj3q0G/pTwjCr3P76UlQ5UF1jlAJkOU/S7jkn h4jLtiskScjq5zUQ8U9fLAWha2CDK7EexeSOYcf9iR5SD0nQ3yFRzTaUdDxqRVFrWSJB KT/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=CJf2R1iPwKuUqmu6qknRGy9MB9+r45o193Imx3v0Iv8=; b=m+nru4K8FdILWnHT73b45PBd+kfI/yOYqHsU3qMgpNlqSX8uMBJjlRqRmFknp/zV5O 4MYWXu30qHjuk6uPrOToYM60iiAA2kWrZBsQaBmDooDUhHoab7c40/SkWHI00zrvkKSC 02bXPlKDnx+hem4bDM81hI7LHQaLbig3jGKj5y7KOx1RHvNhVHSdNA5TDiOFn+o4JKa4 Pysq4jYdojfY0vN7lU4m3ZfJ0Bp3ETx4WBQQySQn88RaNYDVcHGG9HC98LDVs4fkm2+W B4tZsTM9cDVgXpCZpUgaqLDz41/kRYLNkrimcJInMYMQALeK2yGe4rCu//Frrilu+m42 qsig== X-Gm-Message-State: APf1xPBmf3G9EBXpGeB43VRJ1bRpKxaqqokcwYJ2t9hS+aODy6uJkyvv 4z/C9IfimQsr0raxTgAV6hl7vrk4 X-Received: by 10.223.149.70 with SMTP id 64mr8958596wrs.76.1519648843514; Mon, 26 Feb 2018 04:40:43 -0800 (PST) Received: from 640k.lan (94-36-191-219.adsl-ull.clienti.tiscali.it. [94.36.191.219]) by smtp.gmail.com with ESMTPSA id o9sm12959823wrf.43.2018.02.26.04.40.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 04:40:41 -0800 (PST) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: dmatlack@google.com Subject: [PATCH 0/2] KVM: nVMX: expose VMX capabilities as MSR features Date: Mon, 26 Feb 2018 13:40:07 +0100 Message-Id: <1519648809-16694-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches add the VMX capability MSRs to the /dev/kvm ioctls KVM_GET_MSR_FEATURE_INDEX_LIST and KVM_GET_MSRS, so that userspace can easily probe which VMX features are actually supported by KVM. This will help the implementation of nested hypervisor migration, even for heterogeneous clusters. Patch 1 is just refactoring, while patch 2 implements the feature. Thanks, Paolo Paolo Bonzini (2): KVM: nVMX: introduce struct nested_vmx_msrs KVM: nVMX: expose VMX capabilities for nested hypervisors to userspace arch/x86/kvm/vmx.c | 367 ++++++++++++++++++++++++++++------------------------- arch/x86/kvm/x86.c | 19 +++ 2 files changed, 210 insertions(+), 176 deletions(-) -- 1.8.3.1