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=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 4283FC07E9B for ; Fri, 9 Jul 2021 09:25:51 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id D339E613DF for ; Fri, 9 Jul 2021 09:25:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D339E613DF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 884134A19E; Fri, 9 Jul 2021 05:25:50 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@chromium.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ewCUcqLPOnhP; Fri, 9 Jul 2021 05:25:49 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id BCB8B4AC80; Fri, 9 Jul 2021 05:25:44 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 8B22D40068 for ; Fri, 9 Jul 2021 03:52:07 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xR7jlL8qpxQb for ; Fri, 9 Jul 2021 03:52:06 -0400 (EDT) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 95BA640016 for ; Fri, 9 Jul 2021 03:52:06 -0400 (EDT) Received: by mail-pj1-f51.google.com with SMTP id h1-20020a17090a3d01b0290172d33bb8bcso7807403pjc.0 for ; Fri, 09 Jul 2021 00:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=O9yEJ/RI8DyqTUqQc7qvFOA41xcGAb9AUJUpJSi1YCk=; b=hykJA/Js2Xkhhe70Ko9i6iWvtj5MCdYDu7B/4u+DpVpsKePBnWY5j4t4PmJ+/N5Tma i74pAgLdfgxkaGf4SgAwZgceXKJ7rvLOQBWSmhuTfRMGbGSTEGg8Y90WlqU6AxZc1+ne VnQDpGlScVjcXYoN01FMKeV5pUHPa6XpOQzAU= 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=O9yEJ/RI8DyqTUqQc7qvFOA41xcGAb9AUJUpJSi1YCk=; b=ju4SpexdiDGjEnKD7Tj9RxgxbZxMRlot3fC/6RX59KdNrAF2jP+wPFBLhJ4QPjQTU8 xchXBYRlLbTlVGTAD3acWt0tBDkfkmCTL2hmECKy7QOEFJerqC2KZxd6CoD7ylDNfZbT JYfxd9OoMywpvmowHbc/5yGpm3/pfBKwu+mi/OmF0stsWZNt7pFcP4mVJq1oi4/lAElZ uMgsuUEJdQ3CVFm3WnPlkCk5XI0GFziuYEye5O7deKWFZIVUgRmCAPTGNE2dWseJKf98 HN/mWornm+NVlsmj2Z/lrqYNur3zINWJ8oyvaf8aTMDIF5aOPe+ysckwYqhAIfR/ZjrV ckJw== X-Gm-Message-State: AOAM531+R51JXFz+KNIlXZi28r89qxLozL0/s7iTmqWjyTBCwASHwIsD NzaN4ogjuIaxyxk+liE9MfUEHw== X-Google-Smtp-Source: ABdhPJy5Iba/1n9IqX8ohIsdLkvuWXlXJvMJv1c0Hhbuj+FFhPRYR/07l1fWcSHSalGaLyrQsw0tBg== X-Received: by 2002:a17:90a:5d16:: with SMTP id s22mr36261212pji.48.1625817125628; Fri, 09 Jul 2021 00:52:05 -0700 (PDT) Received: from google.com ([2409:10:2e40:5100:a30d:fc4:7834:ee08]) by smtp.gmail.com with ESMTPSA id 194sm5349713pfy.51.2021.07.09.00.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 00:52:05 -0700 (PDT) Date: Fri, 9 Jul 2021 16:52:00 +0900 From: Sergey Senozhatsky To: David Edmondson Subject: Re: [PATCHv2 2/4] arm64: add guest pvstate support Message-ID: References: <20210709043713.887098-1-senozhatsky@chromium.org> <20210709043713.887098-3-senozhatsky@chromium.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mailman-Approved-At: Fri, 09 Jul 2021 05:25:42 -0400 Cc: Joel Fernandes , Marc Zyngier , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Sergey Senozhatsky , Suleiman Souhlal , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On (21/07/09 08:39), David Edmondson wrote: [..] > > + > > +static bool has_pv_vcpu_state(void) > > +{ > > + struct arm_smccc_res res; > > + > > + /* To detect the presence of PV time support we require SMCCC 1.1+ */ > > "PV VCPU state support" rather than "PV time support". Indeed. Thanks. [..] > > +static int pv_vcpu_state_register_hooks(void) > > +{ > > + int ret; > > + > > + ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, > > + "hypervisor/arm/pvstate:starting", > > + vcpu_state_init, > > + vcpu_state_release); > > + if (ret < 0) > > + pr_warn("Failed to register CPU hooks\n"); > > Include that it's PV VCPU state hooks? Ack. _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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=-4.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 5E18EC07E9C for ; Fri, 9 Jul 2021 07:53:48 +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 27CDC613B5 for ; Fri, 9 Jul 2021 07:53:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 27CDC613B5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=CcdfosxqF5zAsw/mdC3j4yXElo7+NJC2Dwy3P/us7dU=; b=nl8zrDteFJD2P3 C1jDMF4YQt4agbpsPZTPp02Ux8PBBEo1TpWbOCFFpxAaitpHQm3iRXymwQC4RmMDPevNEKSEuV4ni MW5XJ7ZFFVTvmZG7bP2bz54Eme/F5BXqcW5dKL9oKHx43V7LBldkm4At8z6scbYUSx9CV/MxVVOpB vcWIja34QZKo2WLjieT1htgqmfIh6A07AOdpSuMPYq3Z4IevAsav2aUqoBXQYduHm/jrgBZmHydwP a1uU7Sv24pyo/i+WO8ISkGR49lzCgCM2FDTw4wu9ED8PNYLyGnc2dUZOFrqRZK5bpcmnfD17y9syc GA+v1WcWmvUwGSrLjAuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1lIw-0010p8-LZ; Fri, 09 Jul 2021 07:52:10 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1lIt-0010ob-03 for linux-arm-kernel@lists.infradead.org; Fri, 09 Jul 2021 07:52:08 +0000 Received: by mail-pl1-x62c.google.com with SMTP id c15so4573478pls.13 for ; Fri, 09 Jul 2021 00:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=O9yEJ/RI8DyqTUqQc7qvFOA41xcGAb9AUJUpJSi1YCk=; b=hykJA/Js2Xkhhe70Ko9i6iWvtj5MCdYDu7B/4u+DpVpsKePBnWY5j4t4PmJ+/N5Tma i74pAgLdfgxkaGf4SgAwZgceXKJ7rvLOQBWSmhuTfRMGbGSTEGg8Y90WlqU6AxZc1+ne VnQDpGlScVjcXYoN01FMKeV5pUHPa6XpOQzAU= 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=O9yEJ/RI8DyqTUqQc7qvFOA41xcGAb9AUJUpJSi1YCk=; b=c/qWk2KaYNHyQzla/Gsd+v6H8BZIBhQSjJdzIbJj0dLanYbyfWZH31PhGvC7s0hB9H kyOdHV435qFZzk3T8jcgPNcUDAs5fSEkAxKapIjxNBj4R4sHSiX/rsh/QiI1REtYuuQZ UnF3XB1PWA78mx29/TrDt2uk5jdBqcngHlXiZJGhc8dm7Kc83WDrbjnwVNNtRqdsqBuX d/FvIZF90ORcfa+ZGMlxJYBfnsWb+zsrPXGTvJT9zIvfbRTBnv4yGbdywpefPz2iRt7z p2V+2CIJETVFNfK+G1gWiYfrprCAcVZP4MuHkgR4l5Jq6k/AYJjPVpo7qejiukQhggnr wz1w== X-Gm-Message-State: AOAM533OZ8XZ7piwlxLQY/HBdVSiWxS3Qjz6cwaWuBJ0x2h0bdgSfmhI Mx1wtPDSmmBpL5XvL2EFjrSZpg== X-Google-Smtp-Source: ABdhPJy5Iba/1n9IqX8ohIsdLkvuWXlXJvMJv1c0Hhbuj+FFhPRYR/07l1fWcSHSalGaLyrQsw0tBg== X-Received: by 2002:a17:90a:5d16:: with SMTP id s22mr36261212pji.48.1625817125628; Fri, 09 Jul 2021 00:52:05 -0700 (PDT) Received: from google.com ([2409:10:2e40:5100:a30d:fc4:7834:ee08]) by smtp.gmail.com with ESMTPSA id 194sm5349713pfy.51.2021.07.09.00.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 00:52:05 -0700 (PDT) Date: Fri, 9 Jul 2021 16:52:00 +0900 From: Sergey Senozhatsky To: David Edmondson Cc: Sergey Senozhatsky , Marc Zyngier , Will Deacon , Suleiman Souhlal , Joel Fernandes , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCHv2 2/4] arm64: add guest pvstate support Message-ID: References: <20210709043713.887098-1-senozhatsky@chromium.org> <20210709043713.887098-3-senozhatsky@chromium.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210709_005207_102329_10993293 X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On (21/07/09 08:39), David Edmondson wrote: [..] > > + > > +static bool has_pv_vcpu_state(void) > > +{ > > + struct arm_smccc_res res; > > + > > + /* To detect the presence of PV time support we require SMCCC 1.1+ */ > > "PV VCPU state support" rather than "PV time support". Indeed. Thanks. [..] > > +static int pv_vcpu_state_register_hooks(void) > > +{ > > + int ret; > > + > > + ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, > > + "hypervisor/arm/pvstate:starting", > > + vcpu_state_init, > > + vcpu_state_release); > > + if (ret < 0) > > + pr_warn("Failed to register CPU hooks\n"); > > Include that it's PV VCPU state hooks? Ack. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 2A2F3C07E99 for ; Fri, 9 Jul 2021 07:52:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 02C56613BD for ; Fri, 9 Jul 2021 07:52:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbhGIHyv (ORCPT ); Fri, 9 Jul 2021 03:54:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbhGIHyu (ORCPT ); Fri, 9 Jul 2021 03:54:50 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3185AC0613DD for ; Fri, 9 Jul 2021 00:52:06 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id p14-20020a17090ad30eb02901731c776526so5467129pju.4 for ; Fri, 09 Jul 2021 00:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=O9yEJ/RI8DyqTUqQc7qvFOA41xcGAb9AUJUpJSi1YCk=; b=hykJA/Js2Xkhhe70Ko9i6iWvtj5MCdYDu7B/4u+DpVpsKePBnWY5j4t4PmJ+/N5Tma i74pAgLdfgxkaGf4SgAwZgceXKJ7rvLOQBWSmhuTfRMGbGSTEGg8Y90WlqU6AxZc1+ne VnQDpGlScVjcXYoN01FMKeV5pUHPa6XpOQzAU= 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=O9yEJ/RI8DyqTUqQc7qvFOA41xcGAb9AUJUpJSi1YCk=; b=H6MJXSUlPsksRRKYJqd+rDjk6Os5PPBbD7TR8sTde2K8LfFExh9gcW6nNmFBb2aasI Nxuwsv7cJwPaZ9V2qOmRgzHmF3PvddXy5h8TWikZZJHG2M+gchzcjujt7a9m5QlwitRY v48ci8pQiAlC08qRqGBCQun8bznOrTg7vV9CoshM+MEWCp5EpFWlyyK6Tvmuq8j4PDm6 6jY2OkG36fVjEOid3C2mTjin4FLpaNqZ4NiqlOdLvKYXRd4uo7Xb3/13omW88GtU4NQQ 9KvtYXP3L2lhUzKJjH1rf7FlwxV/upCjq8r2ErgAwD7GJkX2NwG8Nj/g0hxeCG43ti/N vzeA== X-Gm-Message-State: AOAM530Bmbz2cgHa+4/xkRm1sQUpHaBbo1epPq1hFahMwXEHaS8ezqDQ 9GUqbJfKnNPLSzx0gnpiFvhTGQ== X-Google-Smtp-Source: ABdhPJy5Iba/1n9IqX8ohIsdLkvuWXlXJvMJv1c0Hhbuj+FFhPRYR/07l1fWcSHSalGaLyrQsw0tBg== X-Received: by 2002:a17:90a:5d16:: with SMTP id s22mr36261212pji.48.1625817125628; Fri, 09 Jul 2021 00:52:05 -0700 (PDT) Received: from google.com ([2409:10:2e40:5100:a30d:fc4:7834:ee08]) by smtp.gmail.com with ESMTPSA id 194sm5349713pfy.51.2021.07.09.00.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 00:52:05 -0700 (PDT) Date: Fri, 9 Jul 2021 16:52:00 +0900 From: Sergey Senozhatsky To: David Edmondson Cc: Sergey Senozhatsky , Marc Zyngier , Will Deacon , Suleiman Souhlal , Joel Fernandes , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCHv2 2/4] arm64: add guest pvstate support Message-ID: References: <20210709043713.887098-1-senozhatsky@chromium.org> <20210709043713.887098-3-senozhatsky@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (21/07/09 08:39), David Edmondson wrote: [..] > > + > > +static bool has_pv_vcpu_state(void) > > +{ > > + struct arm_smccc_res res; > > + > > + /* To detect the presence of PV time support we require SMCCC 1.1+ */ > > "PV VCPU state support" rather than "PV time support". Indeed. Thanks. [..] > > +static int pv_vcpu_state_register_hooks(void) > > +{ > > + int ret; > > + > > + ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, > > + "hypervisor/arm/pvstate:starting", > > + vcpu_state_init, > > + vcpu_state_release); > > + if (ret < 0) > > + pr_warn("Failed to register CPU hooks\n"); > > Include that it's PV VCPU state hooks? Ack.