Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1219864ybh; Sat, 3 Aug 2019 20:56:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJhoyNWUh5lYoJnPL3fvtZdQC9mKqoUSTssKzfUW5wiudq2qv5uCw4hJ1AMR0SPisAkgGw X-Received: by 2002:a63:7d05:: with SMTP id y5mr132600702pgc.425.1564890973621; Sat, 03 Aug 2019 20:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564890973; cv=none; d=google.com; s=arc-20160816; b=BwAiW6Vkcw0tzCQTNBSby681RUgris0CoGZgMhkcuYf8b8sZorYYxzPHfeoEmABdR2 wv9SVfcs0TXP8osWf93wCyFijrIxTVyzP2hKHBL5ekm15yHhWv1yVQeJ7fDFBvEQKGpd 8ViuRCkXM+D5zYD609uyGs4XUQGROs0bbFV6AQ1z9/lhyNUVOg0fxNLegkwSeBe5A+rn X0dSk3TA6poJOYcOj1wEc27c34cD9Cg38Ph4Bqe7UX7c5dPQblQzVNo0rIybSPmYFzE6 Fs5khR+xYjpXYSyvK1pe2uBe4Rk/HVXqwsKa24co/Cj0iXFoKF2MhZo3D+zhfMqxq0hX Fp2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=so/bumKW92d36IyYjoB5iVlsYX16V+b5pG3Uo9sb1xw=; b=MLv47bqI+yagikQzmvwwJ8ULtxWdh2/fvCIYCUigR6HspvxQ5lBOqsfI4lURcTUSlP p/yQV3YavF9xIW3w9cXI32pk6RgmmJKzmFECyJEqXI+T7ojeL7ZY9DLBcA1zA1qPhnRq BcGAYjHT4XiOo+wGsS6UlSO5VuCffs2LCq4gRSJBzTqp4YKmEN1q0ou/NUGxpyYyOvwG /lV3+38FisFokpaSNECF5q7kX71zuEhOsNxDZVWtudlL/RaLfklTJfpfXUci+Dahv5y2 tmoSJzF7EBFPFsgFzlsrXIQHLbhvLui6NTZIsZDu7bcZvro1WWVdG0UfumqRxOQz5GCv Vfbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z186si40655224pgd.162.2019.08.03.20.55.58; Sat, 03 Aug 2019 20:56:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728126AbfHCRe2 (ORCPT + 99 others); Sat, 3 Aug 2019 13:34:28 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:32912 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbfHCRe2 (ORCPT ); Sat, 3 Aug 2019 13:34:28 -0400 Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1htxvC-0001u7-Ep; Sat, 03 Aug 2019 19:34:22 +0200 Date: Sat, 3 Aug 2019 18:34:20 +0100 From: Marc Zyngier To: Steven Price Cc: kvm@vger.kernel.org, Catalin Marinas , linux-doc@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Paolo Bonzini , Will Deacon , kvmarm@lists.cs.columbia.edu Subject: Re: [PATCH 6/9] KVM: arm64: Provide a PV_TIME device to user space Message-ID: <20190803183335.149e0113@why> In-Reply-To: <20190803135113.6cdf500c@why> References: <20190802145017.42543-1-steven.price@arm.com> <20190802145017.42543-7-steven.price@arm.com> <20190803135113.6cdf500c@why> Organization: Approximate X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: steven.price@arm.com, kvm@vger.kernel.org, catalin.marinas@arm.com, linux-doc@vger.kernel.org, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, pbonzini@redhat.com, will@kernel.org, kvmarm@lists.cs.columbia.edu X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 3 Aug 2019 13:51:13 +0100 Marc Zyngier wrote: [forgot that one] > On Fri, 2 Aug 2019 15:50:14 +0100 > Steven Price wrote: [...] > > +static int __init kvm_pvtime_init(void) > > +{ > > + kvm_register_device_ops(&pvtime_ops, KVM_DEV_TYPE_ARM_PV_TIME); > > + > > + return 0; > > +} > > + > > +late_initcall(kvm_pvtime_init); Why is it an initcall? So far, the only initcall we've used is the one that initializes KVM itself. Can't we just the device_ops just like we do for the vgic? M. -- Without deviation from the norm, progress is not possible.