Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97B02C433EF for ; Mon, 11 Oct 2021 13:42:04 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 2146E60F21 for ; Mon, 11 Oct 2021 13:42:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2146E60F21 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=eik.bme.hu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:53948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZvZ5-0004LU-AB for qemu-devel@archiver.kernel.org; Mon, 11 Oct 2021 09:42:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZvXM-0002qO-HY for qemu-devel@nongnu.org; Mon, 11 Oct 2021 09:40:19 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]:35478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZvXG-0006X4-C9 for qemu-devel@nongnu.org; Mon, 11 Oct 2021 09:40:13 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 27A64748F53; Mon, 11 Oct 2021 15:40:08 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 07537748F4B; Mon, 11 Oct 2021 15:40:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 05BC7748F52; Mon, 11 Oct 2021 15:40:08 +0200 (CEST) Date: Mon, 11 Oct 2021 15:40:07 +0200 (CEST) From: BALATON Zoltan To: "Gabriel L. Somlo" Subject: Re: [PATCH] hw/misc: applesmc: use host osk as default on macs In-Reply-To: Message-ID: References: <001C97D2-2710-415C-9ECD-F8C20AB52196@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Phil Dennis-Jordan , =?ISO-8859-15?Q?Pedro_T=F4rres?= , rene@exactcode.de, "Kiszka, Jan" , qemu-devel , "Graf, Alexander" , Paolo Bonzini , suse@csgraf.de, afaerber , =?ISO-8859-15?Q?Philippe_Mathieu-Daud=E9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Mon, 11 Oct 2021, Gabriel L. Somlo wrote: > FWIW, there's an applesmc driver in the Linux kernel, and it exposes > many of the keys and values stored on the chip under > /sys/devices/platform/applesmc.768 (or at least it *used* to back when > I last checked). > > My idea at the time was to get this driver to also expose the value of > OSK0,1, so that userspace programs (like e.g. qemu) could read and use > the values hardcoded in hardware without needing to hardcode them > themselves in software. I guess a frequent use case for running macOS guests with keys from host would be on hosts running macOS too so a solution that works both on macOS and Linux might be better than a Linux specific one which then needs another way to do the same on macOS. Looks like there's free code for that too and you don't have to convince a maintainer either. Regards, BALATON Zoltan