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=-9.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 D193DC433F5 for ; Tue, 14 Sep 2021 17:07:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AFEED61130 for ; Tue, 14 Sep 2021 17:07:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230265AbhINRIx (ORCPT ); Tue, 14 Sep 2021 13:08:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:21533 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbhINRIl (ORCPT ); Tue, 14 Sep 2021 13:08:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631639244; 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=VSPaTs/Ana3c5AjdJic+DfXIvcN63Hc2gA/Tf0kL54c=; b=ahIT9oyzQu4TdpTyFxvCnubAMMNSk8Yc6HzyYk6BDhUhgwpn5yTrZUORd4qfvtjoDbB5Os 08FH/vaY7Qo5sLskvDbFv9s+1h5LtnrWnpv0UXzOm0ZqacfrtYbLCO6cX8CVeZi9LyUZ0H gvwWF9eZftz03MjfcFDiiGcWV4dqTVY= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-233-3OmNa1GoMSW6Yi-nxpDEqA-1; Tue, 14 Sep 2021 13:07:20 -0400 X-MC-Unique: 3OmNa1GoMSW6Yi-nxpDEqA-1 Received: by mail-ed1-f69.google.com with SMTP id s15-20020a056402520f00b003cad788f1f6so7093827edd.22 for ; Tue, 14 Sep 2021 10:07:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VSPaTs/Ana3c5AjdJic+DfXIvcN63Hc2gA/Tf0kL54c=; b=gpB69/JrBcbqoQsoSVmyr9CrvpAD9b2FFdaD1ntO9RFO/Lkjqh+OmnNZoUuk9/0Xjn HNWYYism/2eKzm2dkrbZ2NYYdc6cS2ItioLYElDNtGK0r7odHKt+vkVaAOEkAn2V3oY0 b1ajj6rUJBvLlaGQUj8zTtBo27+f8Fz++PB7jNSew5qXAp0+tyFozi4QoWRxis2SAkli g2BCcXOyesP/aHUZOq9kPIgcgJToDl9wzX5IC+wPyGU7CHqs+FhLQXPqkX3Yj4eZ2sRK vULsoZoBGlTPICOINkwd8qArhryerVMqwSzpiA/HO/f0j2BNSj44Mt/QOOLBs5ReIp7L 0Y0A== X-Gm-Message-State: AOAM530wsc/iSJOrawKG9jxj1cO6f5W08IhM7VepCZayPLsATfExjXiU Ex7EIwVIjloZ43l5u/Y2adIyUHsZ6GAIWJdysVgvO450wLeSevQ74mO9Uy9up6J9LszNniAUiM8 ai9UfBAjIRu/WfD2vOJ9sj4kn X-Received: by 2002:a17:906:6148:: with SMTP id p8mr19508110ejl.17.1631639239599; Tue, 14 Sep 2021 10:07:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz+fGJykczhq+9IbbmATrEW/jUyWNpQF9sYky1OwNDGdYkM+u3sKi6b2acRNQYiL90BljSkw== X-Received: by 2002:a17:906:6148:: with SMTP id p8mr19508091ejl.17.1631639239377; Tue, 14 Sep 2021 10:07:19 -0700 (PDT) Received: from ?IPv6:2001:b07:add:ec09:c399:bc87:7b6c:fb2a? ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id h2sm5905306edd.43.2021.09.14.10.07.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Sep 2021 10:07:18 -0700 (PDT) Subject: Re: [RFC/RFT PATCH 0/2] x86: sgx_vepc: implement ioctl to EREMOVE all pages To: Jarkko Sakkinen , Yang Zhong Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, dave.hansen@linux.intel.com References: <20210913131153.1202354-1-pbonzini@redhat.com> <20210914071030.GA28797@yangzhon-Virtual> <8e1c6b6d-6a73-827e-f496-b17b3c0f8c89@redhat.com> From: Paolo Bonzini Message-ID: <1afa3ed3-d77b-163d-e35e-30bf4f5d3a9e@redhat.com> Date: Tue, 14 Sep 2021 19:07:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/09/21 18:42, Jarkko Sakkinen wrote: >> Let's wait for this patch to be accepted first. I'll wait a little more >> for Jarkko and Dave to comment on this, and include your "Tested-by". >> >> I will also add cond_resched() on the final submission. > Why these would be conflicting tasks? I.e. why could not QEMU use > what is available now and move forward using better mechanism, when > they are available? The implementation using close/open is quite ugly (destroying and recreating the memory block breaks a few levels of abstractions), so it's not really something I'd like to commit. Paolo