Re: [Xen-devel] Does XEN ARM support RTC in domu?

2018-11-06 Thread Stefano Stabellini
On Tue, 6 Nov 2018, Peng Fan wrote:
> Hi Julien,
> 
> > -Original Message-
> > From: Xen-devel [mailto:xen-devel-boun...@lists.xenproject.org] On Behalf Of
> > Peng Fan
> > Sent: 2018年11月5日 10:11
> > To: Julien Grall ; xen-devel@lists.xenproject.org;
> > Stefano Stabellini 
> > 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.___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] Does XEN ARM support RTC in domu?

2018-11-06 Thread Peng Fan
Hi Julien,

> -Original Message-
> From: Xen-devel [mailto:xen-devel-boun...@lists.xenproject.org] On Behalf Of
> Peng Fan
> Sent: 2018年11月5日 10:11
> To: Julien Grall ; xen-devel@lists.xenproject.org;
> Stefano Stabellini 
> 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.

Thanks,
Peng.
> 
> Thanks,
> Peng.
> 
> >
> > Cheers,
> >
> > --
> > Julien Grall
> ___
> Xen-devel mailing list
> Xen-devel@lists.xenproject.org
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.xe
> nproject.org%2Fmailman%2Flistinfo%2Fxen-develdata=02%7C01%7Cpen
> g.fan%40nxp.com%7Cebdd8890e51a4cc7bdd208d642c40879%7C686ea1d3bc2
> b4c6fa92cd99c5c301635%7C0%7C0%7C636769807056922708sdata=vhT
> Z7lIEJXdmkW5R88zk9eUrk%2BfmuozgtCTIUzt7smk%3Dreserved=0
___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] Does XEN ARM support RTC in domu?

2018-11-04 Thread Peng Fan
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.

Thanks,
Peng.

> 
> Cheers,
> 
> --
> Julien Grall
___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] Does XEN ARM support RTC in domu?

2018-10-31 Thread Peng Fan
Hi Julien,

> -Original Message-
> From: Julien Grall [mailto:julien.gr...@arm.com]
> Sent: 2018年11月1日 2:52
> To: Peng Fan ; xen-devel@lists.xenproject.org; Stefano
> Stabellini 
> Subject: Re: Does XEN ARM support RTC in domu?
> 
> 
> 
> On 10/31/18 1:57 PM, Peng Fan wrote:
> > Hi All,
> 
> Hi,
> 
> >
> > 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.

Thanks,
Peng.

> 
> Cheers,
> 
> --
> Julien Grall
___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] Does XEN ARM support RTC in domu?

2018-10-31 Thread Julien Grall



On 10/31/18 1:57 PM, Peng Fan wrote:

Hi All,


Hi,



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?


Cheers,

--
Julien Grall

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