Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1222420pxb; Fri, 10 Sep 2021 00:32:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGnbYH0+o0Uj+M0UUdlEKSEjvniZFYs5yEdqbXj7RI6Ka/kMZl7r0GAOermUwb7lRGf3uj X-Received: by 2002:a17:906:7c56:: with SMTP id g22mr7906238ejp.282.1631259141301; Fri, 10 Sep 2021 00:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631259141; cv=none; d=google.com; s=arc-20160816; b=h2Nw8+CXSICzdKX0dojVjs0kug6wTF/I1i1oi/RuKrIFJUnOzr9qDb20CBHBs4B158 hDVnG1Q1QM1+dSxqzSDREGQ9tWb3htcCyK4iaAhZsE6kZb3KeuPkmdGQgaiNn7aaCtcJ vTAGSjeex7z8KECxKIjwc4fu2RNPqreonEgu2ofTHCdvrFGdlsoY8ok/sn6Xfm7U6oBT 9Bow3dqhwRfvbpWM+Ws3+aU89YB7jis73b0FVbk1Fxits7p9JxqUyRpCUwa3t+1t2WTZ 14gcdjgdYSwr5pLbe2PU4f+tfDkwr8RKRNxcN59fARLAPoCC6wyDxHLaloEXH1VfP5IR CBuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7tCaeYZC58tBDrJqNk0nn5PtnnlNlX6dAF2RgPaH35k=; b=dxt28QTl7aap8Gi1VuOuWM8gA0XfwIp3juhkWJgRkDYlNV7b5xLTET0YKmfNswwjbW 74TSZ6+UPtRocvkZ3XmTDqckR+c+Q9KSr9NrVU4Qwx797O4ITCOPRUJln2wwAj75WXGM pj+UheTKvhiRzuMq9IkstSnMlqJFI9eAb04sxo2QLyk/k9KhqL/XysqdkfEwS3Uka/n7 WYyvaTvGe7PHEd43zC92ElKDg8x6rCIWqFLumer1qumK4EcVvgHH7jI2+Z29/hDBjlOQ QBw+swXjSdZlZXsZD9SjNUTenUDsQ+P9VOTayL75c4qfZh8h9GWQtKxg0Noa91KxFEzD i5zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=OCx6QAPj; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si4368747edd.391.2021.09.10.00.31.34; Fri, 10 Sep 2021 00:32:21 -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=@suse.com header.s=susede1 header.b=OCx6QAPj; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231476AbhIJH3P (ORCPT + 99 others); Fri, 10 Sep 2021 03:29:15 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:49282 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbhIJH3M (ORCPT ); Fri, 10 Sep 2021 03:29:12 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 59FF12229F; Fri, 10 Sep 2021 07:28:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1631258880; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7tCaeYZC58tBDrJqNk0nn5PtnnlNlX6dAF2RgPaH35k=; b=OCx6QAPj+yLpBTeSc+Q6mflKHsCfICjBqBV8asbgkLw/zOU7OQRMnN2v0wT82dQJfwfZ+T CT5QKygIuWcBllQbtfsWmQ/uvXyOS5fyLkoiF1NhwO0Y6WTR+qTJ+yct3Yc13vnfWtaKiF gqTLgO6zZD3tz5vFt9waWB2xZLILkg0= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F318213D1D; Fri, 10 Sep 2021 07:27:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id PCE8Of8IO2GBMwAAMHmgww (envelope-from ); Fri, 10 Sep 2021 07:27:59 +0000 Subject: Re: [PATCH 2/2] xen: reset legacy rtc flag for PV domU To: Boris Ostrovsky , xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org Cc: Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , stable@vger.kernel.org References: <20210903084937.19392-1-jgross@suse.com> <20210903084937.19392-3-jgross@suse.com> From: Juergen Gross Message-ID: <8385702d-aeb2-5898-a4ea-00991dd7bca9@suse.com> Date: Fri, 10 Sep 2021 09:27:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="e1YgqMDepsa4po08haHcuF4n97TgpYtNd" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --e1YgqMDepsa4po08haHcuF4n97TgpYtNd Content-Type: multipart/mixed; boundary="YOevWxiq2bQARiqYFjXPhUWKFLWRRLAL4"; protected-headers="v1" From: Juergen Gross To: Boris Ostrovsky , xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org Cc: Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , stable@vger.kernel.org Message-ID: <8385702d-aeb2-5898-a4ea-00991dd7bca9@suse.com> Subject: Re: [PATCH 2/2] xen: reset legacy rtc flag for PV domU References: <20210903084937.19392-1-jgross@suse.com> <20210903084937.19392-3-jgross@suse.com> In-Reply-To: --YOevWxiq2bQARiqYFjXPhUWKFLWRRLAL4 Content-Type: multipart/mixed; boundary="------------87B7477B304C177D84C82456" Content-Language: en-US This is a multi-part message in MIME format. --------------87B7477B304C177D84C82456 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 08.09.21 16:54, Boris Ostrovsky wrote: >=20 > On 9/3/21 4:49 AM, Juergen Gross wrote: >> A Xen PV guest doesn't have a legacy RTC device, so reset the legacy >> RTC flag. Otherwise the following WARN splat will occur at boot: >> >> [ 1.333404] WARNING: CPU: 1 PID: 1 at /home/gross/linux/head/driver= s/rtc/rtc-mc146818-lib.c:25 mc146818_get_time+0x1be/0x210 >> [ 1.333404] Modules linked in: >> [ 1.333404] CPU: 1 PID: 1 Comm: swapper/0 Tainted: G W = 5.14.0-rc7-default+ #282 >> [ 1.333404] RIP: e030:mc146818_get_time+0x1be/0x210 >> [ 1.333404] Code: c0 64 01 c5 83 fd 45 89 6b 14 7f 06 83 c5 64 89 6= b 14 41 83 ec 01 b8 02 00 00 00 44 89 63 10 5b 5d 41 5c 41 5d 41 5e 41 5f= c3 <0f> 0b 48 c7 c7 30 0e ef 82 4c 89 e6 e8 71 2a 24 00 48 c7 c0 ff ff >> [ 1.333404] RSP: e02b:ffffc90040093df8 EFLAGS: 00010002 >> [ 1.333404] RAX: 00000000000000ff RBX: ffffc90040093e34 RCX: 000000= 0000000000 >> [ 1.333404] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 000000= 000000000d >> [ 1.333404] RBP: ffffffff82ef0e30 R08: ffff888005013e60 R09: 000000= 0000000000 >> [ 1.333404] R10: ffffffff82373e9b R11: 0000000000033080 R12: 000000= 0000000200 >> [ 1.333404] R13: 0000000000000000 R14: 0000000000000002 R15: ffffff= ff82cdc6d4 >> [ 1.333404] FS: 0000000000000000(0000) GS:ffff88807d440000(0000) k= nlGS:0000000000000000 >> [ 1.333404] CS: 10000e030 DS: 0000 ES: 0000 CR0: 0000000080050033 >> [ 1.333404] CR2: 0000000000000000 CR3: 000000000260a000 CR4: 000000= 0000050660 >> [ 1.333404] Call Trace: >> [ 1.333404] ? wakeup_sources_sysfs_init+0x30/0x30 >> [ 1.333404] ? rdinit_setup+0x2b/0x2b >> [ 1.333404] early_resume_init+0x23/0xa4 >> [ 1.333404] ? cn_proc_init+0x36/0x36 >> [ 1.333404] do_one_initcall+0x3e/0x200 >> [ 1.333404] kernel_init_freeable+0x232/0x28e >> [ 1.333404] ? rest_init+0xd0/0xd0 >> [ 1.333404] kernel_init+0x16/0x120 >> [ 1.333404] ret_from_fork+0x1f/0x30 >> >> Cc: >> Signed-off-by: Juergen Gross >=20 >=20 > Fixes: 211e5db19d15 ("rtc: mc146818: Detect and handle broken RTCs") ? I don't think so. Its rather: Fixes: 8d152e7a5c7537 ("x86/rtc: Replace paravirt rtc check with=20 platform legacy quirk") as this was the commit leading to domUs having the rtc capability being set. > Reviewed-by: Boris Ostrovsky Thanks, Juergen --------------87B7477B304C177D84C82456 Content-Type: application/pgp-keys; name="OpenPGP_0xB0DE9DD628BF132F.asc" Content-Transfer-Encoding: quoted-printable Content-Description: OpenPGP public key Content-Disposition: attachment; filename="OpenPGP_0xB0DE9DD628BF132F.asc" -----B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1Sv27AR+IP3I8U4aqnhLpwhK7MEy9oCILlgZ1QZe49kpcumcZKORmzBTNh30FVKK1Evm= V2x AKDoaEOgQB4iFQLhJCdP1I5aSgM5IVFdn7v5YgEYuJYx37IoN1EblHI//x/e2AaIHpzK5h88N= Eaw QsaNRpNSrcfbFmAg987ATQRTjHAWAQgAyzH6AOODMBjgfWE9VeCgsrwH3exNAU32gLq2xvjpW= nHI s98ndPUDpnoxWQugJ6MpMncr0xSwFmHEgnSEjK/PAjppgmyc57BwKII3sV4on+gDVFJR6Y8ZR= wgn BC5mVM6JjQ5xDk8WRXljExRfUX9pNhdE5eBOZJrDRoLUmmjDtKzWaDhIg/+1Hzz93X4fCQkNV= bVF LELU9bMaLPBG/x5q4iYZ2k2ex6d47YE1ZFdMm6YBYMOljGkZKwYde5ldM9mo45mmwe0icXKLk= pEd IXKTZeKDO+Hdv1aqFuAcccTg9RXDQjmwhC3yEmrmcfl0+rPghO0Iv3OOImwTEe4co3c1mwARA= QAB wsBfBBgBAgAJBQJTjHAWAhsMAAoJELDendYovxMvQ/gH/1ha96vm4P/L+bQpJwrZ/dneZcmEw= Tbe 8YFsw2V/Buv6Z4Mysln3nQK5ZadD534CF7TDVft7fC4tU4PONxF5D+/tvgkPfDAfF77zy2AH1= vJz Q1fOU8lYFpZXTXIHb+559UqvIB8AdgR3SAJGHHt4RKA0F7f5ipYBBrC6cyXJyyoprT10EMvU8= VGi wXvTyJz3fjoYsdFzpWPlJEBRMedCot60g5dmbdrZ5DWClAr0yau47zpWj3enf1tLWaqcsuylW= svi uGjKGw7KHQd3bxALOknAp4dN3QwBYCKuZ7AddY9yjynVaD5X7nF9nO5BjR/i1DG86lem3iBDX= zXs ZDn8R38=3D =3D2wuH -----END PGP PUBLIC KEY BLOCK----- --------------87B7477B304C177D84C82456-- --YOevWxiq2bQARiqYFjXPhUWKFLWRRLAL4-- --e1YgqMDepsa4po08haHcuF4n97TgpYtNd Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAmE7CP8FAwAAAAAACgkQsN6d1ii/Ey8R +gf/aas2jxgmhjzaKLPpJMPjSpGxMOUtXZOXgTTYIX6vH+eLWVZAJQ8wJXesZGeJSQtgwT6K4wOD tUSP0nGwBCinQQSLGt0Wzk3myQk/EvbKQ9u7Ch+V7Vg7uZkbkqZN1yz9bzqN3J/fbB4D4qj+75dF ugkVQ7srpbdCmlu1hxJLurZ/R1JDfYBZwP53XoqeP4f61zLD0euDm3P7K3TCRmFs6GzlzcruPR+d K9zw7qV+tSQW95k4qHprEAry1a8PdGAd66cj39V4DbuRotIIuiQCkyNA3oNUgtRz35ckX5jYyGOl pVxQOC0FgeLpPtt3uQO1r9iF25H7fL5CkYTqqzxHVg== =oXCQ -----END PGP SIGNATURE----- --e1YgqMDepsa4po08haHcuF4n97TgpYtNd--