public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gerd Hoffmann" <kraxel@redhat.com>
To: sebastien.boeuf@intel.com
Cc: devel@edk2.groups.io, jiewen.yao@intel.com, jordan.l.justen@intel.com
Subject: Re: [PATCH v2 02/10] OvmfPkg/CloudHv: Replace legacy 8254 PIT with local APIC timer
Date: Tue, 11 Jan 2022 10:29:41 +0100	[thread overview]
Message-ID: <20220111092941.u5oe56inqhvdhuhu@sirius.home.kraxel.org> (raw)
In-Reply-To: <493c86d77ae56fa9a62c93e37adad9447fafae05.1641836781.git.sebastien.boeuf@intel.com>

On Mon, Jan 10, 2022 at 06:47:22PM +0100, sebastien.boeuf@intel.com wrote:
> From: Sebastien Boeuf <sebastien.boeuf@intel.com>
> 
> Cloud Hypervisor doesn't emulate the legacy 8254 PIT, which is why
> instead of relying on it as the timer UEFI services, rely on the
> XenTimerDxe implementation. This is not Xen specific, as it simply uses
> the local APIC timer triggering interrupts on the vector 32.

I think you must set PcdFSBClock for this to work properly.

When using kvm (which cloudhv does as far I know) this is simple as the
frequency is fixed then, see microvm dsc file.  With xen this is dynamic
so the xen platform init has some code to figure the frequency and set
the pcd.

take care,
  Gerd


  reply	other threads:[~2022-01-11  9:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 17:47 [PATCH v2 00/10] Create new target for Cloud Hypervisor Boeuf, Sebastien
2022-01-10 17:47 ` [PATCH v2 01/10] OvmfPkg/CloudHv: Add " Boeuf, Sebastien
2022-01-10 17:47 ` [PATCH v2 02/10] OvmfPkg/CloudHv: Replace legacy 8254 PIT with local APIC timer Boeuf, Sebastien
2022-01-11  9:29   ` Gerd Hoffmann [this message]
2022-01-10 17:47 ` [PATCH v2 03/10] OvmfPkg/CloudHv: Connect serial console Boeuf, Sebastien
2022-01-10 17:47 ` [PATCH v2 04/10] OvmfPkg/CloudHv: Remove legacy 8259 PIC support Boeuf, Sebastien
2022-01-10 17:47 ` [PATCH v2 05/10] OvmfPkg/CloudHv: Remove Q35 specifics Boeuf, Sebastien
2022-01-10 17:47 ` [PATCH v2 06/10] OvmfPkg/CloudHv: Reduce dependency on QemuFwCfg Boeuf, Sebastien
2022-01-10 17:47 ` [PATCH v2 07/10] OvmfPkg/CloudHv: Remove video support Boeuf, Sebastien
2022-01-10 17:47 ` [PATCH v2 08/10] OvmfPkg/CloudHv: Remove USB support Boeuf, Sebastien
2022-01-10 17:47 ` [PATCH v2 09/10] OvmfPkg/CloudHv: Remove CSM support Boeuf, Sebastien
2022-01-10 17:47 ` [PATCH v2 10/10] OvmfPkg/CloudHv: add Maintainers.txt entry Boeuf, Sebastien
2022-01-11  0:52 ` 回复: [edk2-devel] [PATCH v2 00/10] Create new target for Cloud Hypervisor gaoliming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220111092941.u5oe56inqhvdhuhu@sirius.home.kraxel.org \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox