Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp680598ybk; Fri, 15 May 2020 10:43:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz70DHKIlJRy/iozUkY8tRfBp5a2ODEktdHFBO75lAPqCfqsABtjheOZuaCQREtT+2/fOPx X-Received: by 2002:a17:906:b4c:: with SMTP id v12mr3950863ejg.25.1589564630338; Fri, 15 May 2020 10:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589564630; cv=none; d=google.com; s=arc-20160816; b=NV7hEVjP3OzXHY5F37O52IWS2shi8sIM9Nv2yQbfIfNTKQb5UUHebthLRzZAxIGzfB yhQmcxRSa83jXxHO6Ze02xL9O22vtVQM6/xD3RiGVo3ba9kJI2Wn/VhVP0Gjv9KnQ6Uq MY8fai56sa2v/5sUFfhGnUypKn0FrvcYStVrGPV2RKMl+9IJ6We0pngyP7zE0pHcaYfR ycGTTxdsiK99AqAY1RyGPjpW1pocYUXGMJB3duwfb77qWw3UILUR54sw+H5PgpLETVLH JP8ru4SN4DIdzs+T4LJVZxq7yjmwzF7DmnZsYd+kSfRwlfv8lg1rnvNgX33LNxcrvbJZ HTlQ== 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; bh=NstvlP5tNzUfUYikWj6FNTt45pdW5CGZjiroRvCAySM=; b=pZCEGiujPvS2DE5Zm1vx0lrwZQKLFLo9dQtxYZ8qKN3p9HfGPBveM0O1sKjTv8IulC aq7O+nCB/RLgyskAYhr6L8fBOlgnlw0JbJNh1+e9XCLyvmK5H8MYUrqPj2B52H/qUZEW /JHHkf1+7FjauL5qf4Mer2bi3cY6ckxwEN9DX2FnjkOaqCxfKnwK5vh4ECBMryVuCGk9 7UqWOBKfj5U2qbzszf4XcTFkYFvWd/gR/ord04pPJ8pee9KVnYEAh5pc1zXt3LjFVcJj BfHaMs1ixXtUxIuEBN4l5L2pnMGJMq2od86URsKwn1dU4i6hcnn6T37skUNusa/xt/Zf 9vQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YOI3sPtd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si1247416edx.127.2020.05.15.10.43.26; Fri, 15 May 2020 10:43:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YOI3sPtd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbgEORl4 (ORCPT + 99 others); Fri, 15 May 2020 13:41:56 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:43377 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726465AbgEORlz (ORCPT ); Fri, 15 May 2020 13:41:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589564513; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=NstvlP5tNzUfUYikWj6FNTt45pdW5CGZjiroRvCAySM=; b=YOI3sPtdVBfiXWMVkr/rW7Qk6lb5hsYNNLLTZMU4qnOIbzaHdI8xgVRJwbg8yK1IzvNwN0 M8UqurMdSr9lTZXD4goM7PeO1AkT/NtzlzMQjLCWM/sXMSMK0EYQsmQHXOOWTRp4861XSB 0xFIkHVs1udWf7hfe/GW93T8i05rbkk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-140-S-KRjdPlMCeJNwuSwL0mKg-1; Fri, 15 May 2020 13:41:47 -0400 X-MC-Unique: S-KRjdPlMCeJNwuSwL0mKg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 70E85100CC90; Fri, 15 May 2020 17:41:46 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id BF64C105911A; Fri, 15 May 2020 17:41:45 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Cathy Avery , Liran Alon , Jim Mattson Subject: [PATCH 0/7] KVM: SVM: baby steps towards nested state migration Date: Fri, 15 May 2020 13:41:37 -0400 Message-Id: <20200515174144.1727-1-pbonzini@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here are some refactorings to prepare for an SVM implementation of KVM_SET_NESTED_STATE. It's a prerequisite for that to eliminate exit_required, moving exceptions to svm_check_nested_events. However: - I might work on that soon, because it's needed to handle RSM when the L1 hypervisor wants to get it from #UD rather than the specific RSM intercept - this should be enough to get a quick prototype, that I need in order to debug a particularly crazy bug and figure out its reproducibility. So, I am getting these patches out of my todo list for now. Thanks, Paolo Paolo Bonzini (7): KVM: SVM: move map argument out of enter_svm_guest_mode KVM: SVM: extract load_nested_vmcb_control KVM: SVM: extract preparation of VMCB for nested run KVM: SVM: save all control fields in svm->nested KVM: nSVM: remove HF_VINTR_MASK KVM: nSVM: do not reload pause filter fields from VMCB KVM: SVM: introduce data structures for nested virt state arch/x86/include/asm/kvm_host.h | 1 - arch/x86/include/uapi/asm/kvm.h | 26 +++++++- arch/x86/kvm/svm/nested.c | 115 +++++++++++++++++--------------- arch/x86/kvm/svm/svm.c | 11 ++- arch/x86/kvm/svm/svm.h | 28 +++++--- 5 files changed, 116 insertions(+), 65 deletions(-) -- 2.18.2