Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp112952pxk; Fri, 11 Sep 2020 01:47:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO3lqmcDZ0WlyMPq9AaGmHpbAqrfbCv+dAD7DTn8FR5fmE+dOwcvOUDE8qHvE889mYIVkf X-Received: by 2002:a17:906:4750:: with SMTP id j16mr1069229ejs.143.1599814055088; Fri, 11 Sep 2020 01:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599814055; cv=none; d=google.com; s=arc-20160816; b=SpxuLfMHN55GSucyh7wOD+QdFArXPzUptsLW3ziJLIFzY1xvI1uPdi8O504++9lzbd ugDhQfa2zhtPsp/TAIOrq0G/s9p9AGhaYTVdI/IKb6Sde2yJVk7c31MtyX/pAZmGNt14 +NJ+Dx28OFCq28Ej5yZKOSKyopCHrcOcjasI4s8V1wJNJBaY27uSTEdozn7LWeajokj1 YmIjUnORm/7Lu2YUuEmfovxdG0pPUvXWAjKb7GusKHI753wf8AKi62BhtABKgVTp8zoe FMsB+pLtRcwHo9aRZZuZE6B/Gg6iovvC7r2YOJT5hGjWe4JTwJLfiO/cEOkinPetEkSq PY8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1GkA0UL55bpOzq1799709zbI1L7Jh544dh/Usr44kfY=; b=WLpF06ObQPZ7i2mOvOq3ZGSZEc4aDXulNExv0hXs8IEBvyOIpmZtKtg8YNkqst5Zna esrfkXCPNlzXQkr8TBEimyEAHrjIf1znOjrNrYpjSe5A/5BvoxXnHdK14kxHqqKqlV3p XjAwkwRFLEha1gTZxifCvui4f6pSlspP4R3wMlarLtXR2AsgTt6CprjS8qLr3zeKiEHt j7K/f52PvIYzW6o7d4b4q26/hdg4iHt8nl27AUvxD2asJjaifvHRoLH78yTJ2iEWdHRh xxPrxnz+R27uTNKPkRq/7SNRQldgbu27O1JMOeGRqjn94UK6kYYEpgExmEq6/6+2rPcG IwRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qlm5X4kn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si822120ejx.707.2020.09.11.01.47.11; Fri, 11 Sep 2020 01:47:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qlm5X4kn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725710AbgIKIqX (ORCPT + 99 others); Fri, 11 Sep 2020 04:46:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725550AbgIKIqW (ORCPT ); Fri, 11 Sep 2020 04:46:22 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A284C061573 for ; Fri, 11 Sep 2020 01:46:18 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id d9so6793525pfd.3 for ; Fri, 11 Sep 2020 01:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1GkA0UL55bpOzq1799709zbI1L7Jh544dh/Usr44kfY=; b=Qlm5X4knHMrYRafI9yPXpq/lAMmN7kMUumWHzSyktdaHpfYBjRf1L0i48OjrFnD4fM QC5/LOrJI4cjoM4qJqWw9UqmT0WvVcjx03RbQaUbQLjEmaxWdw1M/dcHa0maDsXfUJ0W wM5ZIAfEEoRPx0B/75qP+WTBhhOJylPJkkUHV79aUXsMANVTl3BIpBjXp4ena4YTrf1r 3mxNqotZn8thYnV+HLFlVfvzhOmi1AOSCxKWWohGR0wi+6t8I1S4276qyF/Y6m44RkZl jJfGxLqFjGk/gV5j3dHxwjKVa7HqscPsihjNOTSQqVx1Vjca8hPk22xcCdmXm/Jlj+Uy 6K+Q== 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=1GkA0UL55bpOzq1799709zbI1L7Jh544dh/Usr44kfY=; b=PsgD9GOrwSOnS0m15EsX+ChpWrh/HZEK14BWQ96W9AUs1pspfNMpdidh1sC9nYUcTs iOvheBSP29c3IJB4rL9xb0zEM5wwWmeJqua0O3B9BhnezQaiIYxMkD1Vk+DslYRYK4WS fDuzMP8zEjHKbHlUT3ucdFOVAARqmiZAhoYsRHHU7wao5jTyvybseW9Zv8UvfzhibGIP EdguDStJZ7vLq9v1pVJSk97CKMxRa8UUiHLr8ZD3i7JSTee1ndwKu7kDsaq4kW58n4CW tm1nGsxo8uJoCMPI/j6NJcuguwFUx+dg9gPpI5LefClh5y6wu0a/jndsj8pV9phtK7je e60A== X-Gm-Message-State: AOAM533mjg86bmztJDtBrlHy6bH7eaB6/oWKlM0ghexr5/Zn5rFab19t PmhW91EKh1PpZfvLx4np0sY= X-Received: by 2002:a17:902:fe08:: with SMTP id g8mr1051664plj.122.1599813977903; Fri, 11 Sep 2020 01:46:17 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id k3sm1602956pfp.41.2020.09.11.01.46.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 01:46:16 -0700 (PDT) Date: Fri, 11 Sep 2020 17:46:13 +0900 From: Sergey Senozhatsky To: yezengruan Cc: Sergey Senozhatsky , "will@kernel.org" , "maz@kernel.org" , joelaf@google.com, "linux-kernel@vger.kernel.org" , suleiman@google.com, "kvmarm@lists.cs.columbia.edu" , "linux-arm-kernel@lists.infradead.org" , "Wanghaibin (D)" Subject: Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted Message-ID: <20200911084613.GA562@jagdpanzerIV.localdomain> References: <20200721041742.197354-1-sergey.senozhatsky@gmail.com> <20200817020310.GA1210848@jagdpanzerIV.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On (20/08/17 20:03), yezengruan wrote: > Hi Sergey, > > I have a set of patches similar to yours. > > https://lore.kernel.org/lkml/20191226135833.1052-1-yezengruan@huawei.com/ I'm sorry for the belated reply. Right, quite similar, but not exactly, I believe. I deliberately wanted to untangle vcpu preemption (which is a characteristics feature) from pv-lock, which may be somewhat implementation dependent. Perhaps vcpu_is_preempted() should not even be implemented on per-arch basis, but instead it can be more of a "core" functionality. -ss