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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84D01C433F5 for ; Wed, 29 Sep 2021 11:21:56 +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 47C1661390 for ; Wed, 29 Sep 2021 11:21:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 47C1661390 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=75QrNG3aPjmJ/COvB5WfiDuwwN4wBr3QX3qs3hE5fUg=; b=lbTuVsYscsDawB RxCLc599G3X6VgdsIZqNqIL8Wo8c2xIy+5JJ60SkM2pSiiu2SN4HGojU3QZTOq57GysggbrU95gPI A+SJJCFb9rMGUmBZxikE9c69HVJgrSNYV7Nk7LB5xpivyp7b2n1icecEOkh2eUrhhDWGrD8jmWoxE QqDlX55M6yOICEXIZSbAcZgMDe4G9bdy4djB/4SZMnfJoIVSEEcJuuawWGZu4BOPziPD+CDk2MnnR aJv7FSEfKT3jq5JP6C+WOidjY88M3q8Nw2P91+oOcSI91ckIYH5TCfe5BiaFEq08CHjx+t2kVZwB9 KSt8QrIHJgSJpGY8bdPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVXdg-00AqL7-IP; Wed, 29 Sep 2021 11:20:40 +0000 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVXdd-00AqK6-H5 for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 11:20:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632914435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QT1rFRDBhzmSS+/lGbt19+2aAndXLLtwvTkh1G4vaX8=; b=OShzbgBwnVj5jyrMo1DpGxlZk6tD7sFqBMAdB9+V8gGtjZuAU8bZZpGgQE6pwd8f1souUB 18rlCni+sXV2On6i1qVbLJu+yKGQ786x8h+ldpQnGZEuysMNGdtw5+2bM50MAqLZtnWTSE zJt1/5otDuJnm9KfcRyAr/yTFZu5T6c= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-125-EJ8tVkc9OHOQNTrelIXK7g-1; Wed, 29 Sep 2021 07:20:34 -0400 X-MC-Unique: EJ8tVkc9OHOQNTrelIXK7g-1 Received: by mail-ed1-f71.google.com with SMTP id r11-20020aa7cfcb000000b003d4fbd652b9so2028291edy.14 for ; Wed, 29 Sep 2021 04:20:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=QT1rFRDBhzmSS+/lGbt19+2aAndXLLtwvTkh1G4vaX8=; b=lKKb8UfrViLbo8lrriQcw5wM5tF+ORnLi22QD8r4mXcSj1B0koJVCz8ACeBcxgrB5p b80MUTjslobXnzZI4oTwiP/Vn8CyJagrmF6XRFIL6A9+UHFPvuHrqM0u59uOaq2BZuj9 SxnhpGUiiNan4ZBrqcNmtFmFmlg5/2GiPlsv6oNN+oYjQGW1egntPt+Kvm0bl8f+O0tb wzWNiJbOn7HFz1zelpcvychtANnFOKOSeh+QCs1E+eTMlEx6h7hMkjqSH9YZaCMvbq7Z R/CtdXc5I/k/fZaMuaSD6d1oUwh4DTMnlm9oze8Rg6tGRQrCojnOJ/pizBlT8OoghJZq yRdg== X-Gm-Message-State: AOAM532kohSMMvdgxqrJ1unofedPmTmWtsvb2b5Pv2gPG8IH0yiU9gC9 443IuIR5KogHuAAAa+AgEgwN3iY+mofBzynPvcizptPegs2gUp01bKT5iYQub5Cc0r9zQE5cBqx 01dAIsu3+0DklliGwVieZBW250NaXnV97dY4= X-Received: by 2002:a50:d9cc:: with SMTP id x12mr14222002edj.44.1632914433623; Wed, 29 Sep 2021 04:20:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGsZ/Prx5O98qPZ8PyofLqYoLSSiZlZikvftKjUT4ZzCknxR+J5Y+KhHMLF54Y/OqTNkUIVA== X-Received: by 2002:a50:d9cc:: with SMTP id x12mr14221990edj.44.1632914433453; Wed, 29 Sep 2021 04:20:33 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id l16sm1352795eds.46.2021.09.29.04.20.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Sep 2021 04:20:32 -0700 (PDT) Message-ID: Date: Wed, 29 Sep 2021 13:20:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH v8 4/7] KVM: x86: Report host tsc and realtime values in KVM_GET_CLOCK To: Marcelo Tosatti , Oliver Upton Cc: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, Sean Christopherson , Marc Zyngier , Peter Shier , Jim Mattson , David Matlack , Ricardo Koller , Jing Zhang , Raghavendra Rao Anata , James Morse , Alexandru Elisei , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, Andrew Jones , Will Deacon , Catalin Marinas References: <20210916181538.968978-1-oupton@google.com> <20210916181538.968978-5-oupton@google.com> <20210928185343.GA97247@fuller.cnet> From: Paolo Bonzini In-Reply-To: <20210928185343.GA97247@fuller.cnet> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210929_042037_669385_8E58DA26 X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 28/09/21 20:53, Marcelo Tosatti wrote: >> +KVM_CLOCK_HOST_TSC. If set, the `host_tsc` field in the kvm_clock_data >> +structure is populated with the value of the host's timestamp counter (TSC) >> +at the instant when KVM_GET_CLOCK was called. If clear, the `host_tsc` field >> +does not contain a value. > If the host TSCs are not stable, then KVM_CLOCK_HOST_TSC bit (and > host_tsc field) are ambiguous. Shouldnt exposing them be conditional on > stable TSC for the host ? > Yes, good point. Paolo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel