From: David Hildenbrand Subject: Re: [PATCH 7/8] kvm: nVMX: Introduce KVM_CAP_VMX_STATE Date: Tue, 19 Dec 2017 18:40:43 +0100 Message-ID: <75bde61a-34ff-c0af-436e-c8328fe7e870@redhat.com> References: <1480536229-11754-1-git-send-email-jmattson@google.com> <1480536229-11754-8-git-send-email-jmattson@google.com> <555d6a5a-fd6d-e1c2-6a40-3ecfbb09b379@redhat.com> <7d9c263c-3d21-8535-5fed-35adfdfb71be@redhat.com> <89880fbd-2d47-d994-81f5-2073eec96ce0@redhat.com> <3bbb7742-ece1-0e8a-cc73-45d5160bc6c4@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Paolo Bonzini , kvm list , David Hildenbrand To: Jim Mattson Return-path: Received: from mx1.redhat.com ([209.132.183.28]:37676 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750823AbdLSRkp (ORCPT ); Tue, 19 Dec 2017 12:40:45 -0500 In-Reply-To: Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 19.12.2017 18:33, David Hildenbrand wrote: > On 19.12.2017 18:26, Jim Mattson wrote: >> Yes, it can be done that way, but what makes this approach technically >> superior to the original API? > > a) not having to migrate data twice > b) not having to think about a proper API to get data in/out > > All you need to know is, if the guest was in nested mode when migrating, > no? That would be a simple flag. > (of course in addition, vmcsptr and if vmxon has been called). But anyhow, if you have good reasons why you want to introduce and maintain a new API, feel free to do so. Most likely I am missing something important here :) -- Thanks, David / dhildenb