Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1066793rwb; Tue, 27 Sep 2022 08:03:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM548rBVVpqHJNzbuBePfAfJASzNKrSclPdWFYU6M7xZsIO7Iesiur8Pq9sUo+Bd5Zfz+rl1 X-Received: by 2002:a17:907:7fa0:b0:782:948b:e212 with SMTP id qk32-20020a1709077fa000b00782948be212mr19568321ejc.231.1664290984823; Tue, 27 Sep 2022 08:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664290984; cv=none; d=google.com; s=arc-20160816; b=pXjm8ZHSYYw6PrenzXnMGMzyw2Wd08iPUyG+0npjaCrx4kHbCQJ/z40EDYRDj7Tqu/ sa3Y8V6sogGmHc/Zy/NBp+B5MXvhbNGl5yy/Mb0TxL3lMHWHOVSDrLu2O+Cr8GL2lpao a8u4QuGq8n1OiwupEd2M7rHmo0oObCNMVBFWzr8NRgJcLsgVBMfwAr6149SwtOVeYMBw P2voI0iZDdaFEgtHKvDrFMT6hgXCdltB56wBAYwboQb8YY6Zy3oSTn5cqHX49abNBOdd +JmqM+ge8snXuQVo5fjQ0Zg+Lt05HupCVDWlQYu0QmX0d/MjCsbLfqyRdvfBsuzzxfNh 5grQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=R6mTkPvLcBDkRPEP9w1VCxjxG2Pg7cZFN1wUuSD75U8=; b=HC9yceXm/RO8Q3iZqTljt+DuBosfZwqB1TVToN4J8RgseFZT/fvQhKPEqQ/s857q/e iSCg0hBp11nS2ptmED5Mxks/1QQUb7fzjgx9Mj6YFJTv1GpZZIIYp5Nm66D/Dy0/8oT4 zPyNGFAcrjvXe6lBy/OncUpgw/BEPm1ByRXHYem9wOHXr4s4elW1knOo59EYvEvK+ewI /H0Bz4FgJ80IDHDCOLlPGJVjITSFBLzMorgHIYCVdHMrXUCjk++4jHmVL+NAOamqevOg g4wvoyKc8cytUxq8H2m//ZsgVNSJmeOPSVFau8u0DGVmgV7/Md8QY20uDUpeXz/wo+g5 KJ2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OAlCx8cC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020aa7d7c6000000b00453a0393deasi1706951eds.368.2022.09.27.08.02.37; Tue, 27 Sep 2022 08:03:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OAlCx8cC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232711AbiI0Oyc (ORCPT + 99 others); Tue, 27 Sep 2022 10:54:32 -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-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 X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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