From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BECB0C54EE9 for ; Tue, 27 Sep 2022 14:54:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230394AbiI0Oyd (ORCPT ); Tue, 27 Sep 2022 10:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232410AbiI0OyE (ORCPT ); Tue, 27 Sep 2022 10:54:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 090E4D576E for ; Tue, 27 Sep 2022 07:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664290332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R6mTkPvLcBDkRPEP9w1VCxjxG2Pg7cZFN1wUuSD75U8=; b=OAlCx8cCtQY23ufSVXsBgYdlqMJ8y/PPhpoqP0x5ptEC7DHgA+MUXyCbL2Uj5AjhHvAG8e bQr2aR6Z7i99tNYAOhsquo/UCgPGT9nZozozDBeodZpNwPbzNWQIZaCsztHDbpjQeSwQDi 7tc4RmuvlnL8zQUlT8L6PcCeVzWXV7E= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-169-aCLPmsYyOTaGYiZnZo5SDQ-1; Tue, 27 Sep 2022 10:52:10 -0400 X-MC-Unique: aCLPmsYyOTaGYiZnZo5SDQ-1 Received: by mail-wm1-f70.google.com with SMTP id 84-20020a1c0257000000b003b4be28d7e3so8742985wmc.0 for ; Tue, 27 Sep 2022 07:52:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date; bh=R6mTkPvLcBDkRPEP9w1VCxjxG2Pg7cZFN1wUuSD75U8=; b=VwROwXgoR0A0NYvheIg+LVQAzuGOBB3+Hgvn4kmvKZo/TsYp2iuXZ/iK2Gkbml/vYg YQy1ypEjghHMi0VxkEtxl7B8NuZfnct3SGUDT2tRU9di4sOv9PHmHt3Qta7brTGHnxC1 TnbOnMgs72DNQHs4j3Cnn4QPevj7ZdhfBxI6V/qZG+Zr9EDHZZAqEyaQQMA2gwZv8+Ft YEZGoVnWogf1+LkyeR7hF2GXu8jlDTpkxkxG+LzovySdzEocliOBOYK645gpKBGPTYbh 8ft83Oeki3YF2kzp/ZwJ5YRosPZ+LC7DpV3qzpHJuUzd8smhO4iOGUkheUrxWbroceZ5 GOjQ== X-Gm-Message-State: ACrzQf0StsBmnuJcEefv0q77eqai7FKt1JvPfYqRZH/idU19idS6qFow tPYWoaHsMHYXhSruCylcLviTmvaYaDMTboQIXolw4ZUOl7kWN6SpBRnzhsu39S79pIOSuF00/gn nycq8iAycmRfS2LZAcCj/ctRU X-Received: by 2002:a05:600c:4ec7:b0:3a8:4622:ad27 with SMTP id g7-20020a05600c4ec700b003a84622ad27mr3187480wmq.88.1664290329611; Tue, 27 Sep 2022 07:52:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM62+UnH0+JOnbyYplqTQoYjHUK04qQp8/V7xC4iNX3GpDY8U0fUFfcgyuQzRA289qMAo/xhgA== X-Received: by 2002:a05:600c:4ec7:b0:3a8:4622:ad27 with SMTP id g7-20020a05600c4ec700b003a84622ad27mr3187460wmq.88.1664290329340; Tue, 27 Sep 2022 07:52:09 -0700 (PDT) Received: from ?IPV6:2003:cb:c705:ff00:9ec2:6ff6:11a1:3e80? (p200300cbc705ff009ec26ff611a13e80.dip0.t-ipconnect.de. [2003:cb:c705:ff00:9ec2:6ff6:11a1:3e80]) by smtp.gmail.com with ESMTPSA id w10-20020a05600c474a00b003b4ac05a8a4sm18031124wmo.27.2022.09.27.07.52.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Sep 2022 07:52:08 -0700 (PDT) Message-ID: Date: Tue, 27 Sep 2022 16:52:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [RFC PATCH 9/9] kvm_main.c: handle atomic memslot update Content-Language: en-US To: Emanuele Giuseppe Esposito , kvm@vger.kernel.org Cc: Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Maxim Levitsky , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org References: <20220909104506.738478-1-eesposit@redhat.com> <20220909104506.738478-10-eesposit@redhat.com> <07014070-5186-ca95-7028-82f77612dedd@redhat.com> <81c235cc-1198-9765-d1e7-a158ea63eac4@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <81c235cc-1198-9765-d1e7-a158ea63eac4@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Does the invalidation already free up memslot metadata (especially the >> rmaps) or will we end up temporarily allocating twice the memslot metadata? >> > > Invalidation creates a new temporary identical memslot, I am not sure > about the rmaps. It is anyways the same code as it was done before and > if I understand correctly, a new slot is required to keep the old > intact, in case something goes wrong and we need to revert. Okay, thanks! -- Thanks, David / dhildenb