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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57E48C33CAC for ; Thu, 6 Feb 2020 16:26:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E4DE214AF for ; Thu, 6 Feb 2020 16:26:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PAykUt4i"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bnu7a8Lv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E4DE214AF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wpfZscI2U+t3DM6Jzyv1lziP6k9cAcJVkS+aX84z/YY=; b=PAykUt4iDh9PyD ffXagAxgp0cB43dsWigmnvoz4rH2S+p1GatSeQyRmkes2hF1zjD1URoShJjH5Zq0C0PzKhWgWGDnM oOG39CsULhH0MYLR1pceulPJVXJi57AT6H2FQi9PrBj4RZYU4qmEMuGV1pmhNj0Bpzn8FEPT/uZVi h2nO4HR+YBRotTLDBAYj/m56b1II3IvkCwktw4IduGd0sxkfEFzUijQwP7ZXHMIQXNkci93zzGDTl RJChIBtQIzE5n5vdtOGgHp/WTnO6aiAyWtACpJTRkJNWMR8+7eXgBOM9bt1BNZPuHEo+0YDCJgtZW Mu9be7uctoZQ3GiX4S4g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1izjzO-000705-74; Thu, 06 Feb 2020 16:26:50 +0000 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120] helo=us-smtp-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1izjzL-0006xV-6U for linux-arm-kernel@lists.infradead.org; Thu, 06 Feb 2020 16:26:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581006406; 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=pWA9L7Zc04chq1QqnWc7kHBbjNHvMkxLdbW90aT2420=; b=bnu7a8LvgMNmfuWnYXz3YqZlNpKVQDQZCB4oJq7bL3ylBI63CvSX0Y4YVFZrW4LGwPUhCc fI2zl+zDSQc8zQhe2MjW2cMkA62ZvxUzlgOQmptgeSmlJZ7v2pgkRoHTy1eEioH6gtw5fs 2S/p3FiYk89ToPQNuYDmPKqUJ1scANI= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-430-Ht2DZZBrMaC3DridEw_3hA-1; Thu, 06 Feb 2020 11:26:44 -0500 Received: by mail-qt1-f200.google.com with SMTP id d9so4193938qtq.13 for ; Thu, 06 Feb 2020 08:26:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=H3nLSU6aNBKxxlwzEldmN2l97fU6AU4NrctqbL5/r9Q=; b=gGOWlAjFcnidW1bX7xdtgAMzrzxj0yw0XtQ9yYMu1zGyczOOO0Cws5S+widbuqV4d6 AXaHjOde0pgyWL+T7KZLPZFvoOSr0quO7ZckN/Lf008vOakFaEQ30ExxLnnvtjnOS9bL /piZeEFeyBmIxltqt8KzzRW12UFa0nB/DdoLuXyHRenM+4IDJ7em2ExxfMiG5db4mzVa Ujsk0k/iAau8Oq5FQLd3zZEGnCDYWF4vOjq3SIdMFyrV/G7x/mhE33233cbiZLPJSgdo HH5tlfd0464hUKQ/KOgfe0c4AO4kUaOn3HOV2T92sAwDwh7a7cj9tcyozMCGS64a6Udi dnhw== X-Gm-Message-State: APjAAAWNrS3z2FiscUp1T3LcJOzsRdCzkInYNQvLDgmjFsAbo81SRQgV 93z1s/yjcojTtGrHGsXdZ0h2GI7KEKnFmv/zWYa8rIKnGmYH5pdLYKpkUBPJ4QL3SuvgE2N62hY fxF9bA5UIxAMLcDZskY+3xPI6nhNnxZgHeHo= X-Received: by 2002:ac8:1e08:: with SMTP id n8mr3297386qtl.175.1581006403787; Thu, 06 Feb 2020 08:26:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxQlIJcJ9283T0k3SJBUCagGgD/4X0S4VFGYxAKtPxVCA909nX5ytULcXgwNYLmQcG3Ogy1yQ== X-Received: by 2002:ac8:1e08:: with SMTP id n8mr3297351qtl.175.1581006403586; Thu, 06 Feb 2020 08:26:43 -0800 (PST) Received: from xz-x1 ([2607:9880:19c8:32::2]) by smtp.gmail.com with ESMTPSA id q7sm1618375qkc.43.2020.02.06.08.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 08:26:42 -0800 (PST) Date: Thu, 6 Feb 2020 11:26:39 -0500 From: Peter Xu To: Sean Christopherson Subject: Re: [PATCH v5 10/19] KVM: Drop "const" attribute from old memslot in commit_memory_region() Message-ID: <20200206162639.GC695333@xz-x1> References: <20200121223157.15263-1-sean.j.christopherson@intel.com> <20200121223157.15263-11-sean.j.christopherson@intel.com> MIME-Version: 1.0 In-Reply-To: <20200121223157.15263-11-sean.j.christopherson@intel.com> X-MC-Unique: Ht2DZZBrMaC3DridEw_3hA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200206_082647_310780_00E06752 X-CRM114-Status: UNSURE ( 9.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wanpeng Li , kvm@vger.kernel.org, David Hildenbrand , linux-mips@vger.kernel.org, Paul Mackerras , kvmarm@lists.cs.columbia.edu, Janosch Frank , Marc Zyngier , Joerg Roedel , Christian Borntraeger , Julien Thierry , Suzuki K Poulose , kvm-ppc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jim Mattson , Cornelia Huck , Christoffer Dall , linux-kernel@vger.kernel.org, James Morse , Paolo Bonzini , Vitaly Kuznetsov , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jan 21, 2020 at 02:31:48PM -0800, Sean Christopherson wrote: > Drop the "const" attribute from @old in kvm_arch_commit_memory_region() > to allow arch specific code to free arch specific resources in the old > memslot without having to cast away the attribute. Freeing resources in > kvm_arch_commit_memory_region() paves the way for simplifying > kvm_free_memslot() by eliminating the last usage of its @dont param. > > Signed-off-by: Sean Christopherson Reviewed-by: Peter Xu -- Peter Xu _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel