From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIcZ7-0000Bo-1q for qemu-devel@nongnu.org; Fri, 02 Nov 2018 12:44:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIcZ6-00084u-Ah for qemu-devel@nongnu.org; Fri, 02 Nov 2018 12:44:57 -0400 Received: from mail-ot1-x342.google.com ([2607:f8b0:4864:20::342]:39823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIcZ6-00084V-3x for qemu-devel@nongnu.org; Fri, 02 Nov 2018 12:44:56 -0400 Received: by mail-ot1-x342.google.com with SMTP id g27so2240620oth.6 for ; Fri, 02 Nov 2018 09:44:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <95850543-FE41-404F-9775-23E792F6428E@oracle.com> References: <20181102034649.43559-1-liran.alon@oracle.com> <12c26c34-8dd1-a442-7826-86b93ff978f8@redhat.com> <95850543-FE41-404F-9775-23E792F6428E@oracle.com> From: Jim Mattson Date: Fri, 2 Nov 2018 09:44:54 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [QEMU PATCH v2 0/2]: KVM: i386: Add support for save and restore nested state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liran Alon Cc: Paolo Bonzini , "Dr. David Alan Gilbert" , Eduardo Habkost , kvm list , mtosatti@redhat.com, rth@twiddle.net, qemu-devel@nongnu.org On Fri, Nov 2, 2018 at 5:59 AM, Liran Alon wrote: > >>> Therefore, I don't think that we want this versioning to be based on KVM_CAP at all. >>> It seems that we would want the process to behave as follows: >>> 1) Mgmt-layer at dest queries dest host max supported nested_state size. >>> (Which should be returned from kvm_check_extension(KVM_CAP_NESTED_STATE)) >>> 2) Mgmt-layer at source initiate migration to dest with requesting QEMU to send nested_state >>> matching dest max supported nested_state size. >>> When saving nested state using KVM_GET_NESTED_STATE IOCTL, QEMU will specify in nested_state->size >>> the *requested* size to be saved and KVM should be able to save only the information which matches >>> the version that worked with that size. >>> 3) After some sanity checks on received migration stream, dest host use KVM_SET_NESTED_STATE IOCTL. >>> This IOCTL should deduce which information it should deploy based on given nested_state->size. I have to object to any proposal which requires the management later to communicate with the source and the destination to determine what should be done.