All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <sstabellini@kernel.org>
To: Peng Fan <peng.fan@nxp.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Julien Grall <julien.grall@arm.com>,
	Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: Does XEN ARM support RTC in domu?
Date: Tue, 6 Nov 2018 09:14:22 -0800 (PST)	[thread overview]
Message-ID: <alpine.DEB.2.10.1811060911240.18518@sstabellini-ThinkPad-X260> (raw)
In-Reply-To: <AM0PR04MB44816F5DA1692D40BB484C5088CB0@AM0PR04MB4481.eurprd04.prod.outlook.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1618 bytes --]

On Tue, 6 Nov 2018, Peng Fan wrote:
> Hi Julien,
> 
> > -----Original Message-----
> > From: Xen-devel [mailto:xen-devel-bounces@lists.xenproject.org] On Behalf Of
> > Peng Fan
> > Sent: 2018年11月5日 10:11
> > To: Julien Grall <julien.grall@arm.com>; xen-devel@lists.xenproject.org;
> > Stefano Stabellini <sstabellini@kernel.org>
> > Subject: Re: [Xen-devel] Does XEN ARM support RTC in domu?
> > 
> > Hi Julien,
> > 
> > > >>
> > > >>>
> > > >>> Just have a question, does XEN ARM support RTC in domu? To support
> > > >>> Android
> > > >> in DomU, RTC is needed for alarm, but I did not find information
> > > >> about RTC on xen for domu. So this need a new RTC paravirtualization
> > driver?
> > > Any suggestions?
> > > >>
> > > >> By RTC, do you mean Real-Time Clock? Something like PL031? Or do
> > > >> you have something else in mind?
> > > >
> > > > Yes, Real Time Clock like PL031 in DomU. I do not have a good idea
> > > > support RTC in ARM DomU, KVM and XEN x86 seems use emulated RTC in
> > > > qemu. Thinking of paravirtual RTC, and dom0 control the expire time
> > > > for
> > > alarm.
> > >
> > > The PL031 is quite small (based on the QEMU version). So I think it
> > > would be fine to provide an emulation in the hypervisor.
> > 
> > Ok. Just like the hvm x86, implement emulate PL031 inside XEN. I'll give a try.
> 
> Just a follow up question, emulating PL031 in xen, do you have idea how to inject virtual interrupt to domu?
> The interrupt should be only cpu interface interrupt, I think.

Have a loop at the existing virtual timer: xen/arch/arm/vtimer.c
It should give you a decent idea.

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

      reply	other threads:[~2018-11-06 17:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31 13:57 Does XEN ARM support RTC in domu? Peng Fan
2018-10-31 18:52 ` Julien Grall
2018-11-01  3:37   ` Peng Fan
2018-11-01 21:13     ` Julien Grall
2018-11-05  2:11       ` Peng Fan
2018-11-06  8:03         ` Peng Fan
2018-11-06 17:14           ` Stefano Stabellini [this message]

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-all 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=alpine.DEB.2.10.1811060911240.18518@sstabellini-ThinkPad-X260 \
    --to=sstabellini@kernel.org \
    --cc=julien.grall@arm.com \
    --cc=peng.fan@nxp.com \
    --cc=xen-devel@lists.xenproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.