[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCHv7 4/6] plat/kvm: Implement intctrl APIs for Arm64


  • To: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>, Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
  • From: "Justin He (Arm Technology China)" <Justin.He@xxxxxxx>
  • Date: Fri, 26 Jul 2019 09:32:49 +0000
  • Accept-language: en-US, zh-CN
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=arm.com;dmarc=pass action=none header.from=arm.com;dkim=pass header.d=arm.com;arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kyrWBIyrrmbJMmlZrHpKtTXezjRcUrD3nLRgRvpBNkY=; b=hcKGj/iLtI/deZSraW1Gkpx0/QJtR9IqHr0OZL6ALj2E6zUE328tUfM9dNiKY8UWaNw0/fhahPjPcXt1M2J2ACi1FYI9ISzJ6XXliINrf5tASpoUA6gPnQjv+uiR+gtWDVaHaYf3Uc9tqIHmogWJKHtXrBYSmUcddWiypZww0+aPPEPSvQdu+ErJKq7f9Y8UP/9KpnKTF6ZyvoqU82Bzo4SDFx+fIxRsH0m0uSf1KhhpF/ceW1QbVhaTrq3ShXjK6dowhzUZkR+aTXazph/7c3kDw53xLDlzzmfCzLJyKoKzGjulgXALTdoMHINdKF1nxz9rdzHL7iYt+oOJ5hueMQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RizU439cGn6ZXhdUg6QQL455oOEfpSZxgNDHnPFmcFnZS1xerK5sAIIuO/0b84uThWCB20Aavc0r3TCDQVumJVXVq9pbIcn0IoJOy518YIVSOkvcgZlPm3T8sQaw2vGBdfRrOztu2ty+DvL7ChtqCvD2wGwDZWyE6Gc11LYcZKUDqjF758hQiXMb2aO9m9UbkXbw4zvv6Na9JprExpfToGQcsWVx4e3bZEjt2fQ8UjqN6WegHOSsjtnFFVp2Er5gardnZMrfC/rUJDzl4mLwEKh3STIw93Duyug2LFom+T54LZU1ZFxBNe02DHsTU5J7nIXRaMKLCzBvaoLAN0PVdQ==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Justin.He@xxxxxxx;
  • Cc: Felipe Huici <felipe.huici@xxxxxxxxx>, Florian Schmidt <florian.schmidt@xxxxxxxxx>, Julien Grall <Julien.Grall@xxxxxxx>, "Wei Chen \(Arm Technology China\)" <Wei.Chen@xxxxxxx>, "Kaly Xin \(Arm Technology China\)" <Kaly.Xin@xxxxxxx>
  • Delivery-date: Fri, 26 Jul 2019 09:32:55 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVQgdt0rISsw/uAU2q978k458Ee6bcnSgAgAAI1NA=
  • Thread-topic: [UNIKRAFT PATCHv7 4/6] plat/kvm: Implement intctrl APIs for Arm64

Hi Sharan, thanks for the review

--
Cheers,
Justin (Jia He)



> -----Original Message-----
> From: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
> Sent: 2019年7月26日 17:01
> To: Justin He (Arm Technology China) <Justin.He@xxxxxxx>; minios-
> devel@xxxxxxxxxxxxxxxxxxxx; Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
> Cc: Florian Schmidt <florian.schmidt@xxxxxxxxx>; Felipe Huici
> <felipe.huici@xxxxxxxxx>; Julien Grall <Julien.Grall@xxxxxxx>; Kaly Xin
> (Arm Technology China) <Kaly.Xin@xxxxxxx>; Wei Chen (Arm Technology
> China) <Wei.Chen@xxxxxxx>
> Subject: Re: [UNIKRAFT PATCHv7 4/6] plat/kvm: Implement intctrl APIs for
> Arm64
>
> Hello,
>
> This patch is fine.
>
> Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
>
> Thanks & Regards
> Sharan
>
> On 7/24/19 12:05 PM, Jia He wrote:
> > From: Wei Chen <wei.chen@xxxxxxx>
> >
> > Before GICv2 become ready, we had marked the intctrl APIs as TODO.
> > Now, we have enabled the GICv2, we can implement intctrl APIs with
> > related GIC APIs.
> >
> > Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
> > Signed-off-by: Jia He <justin.he@xxxxxxx>
> > ---
> >   plat/kvm/arm/intctrl.c | 19 +++++++++++++++----
> >   plat/kvm/arm/setup.c   |  4 ++++
> >   2 files changed, 19 insertions(+), 4 deletions(-)
> >
> > diff --git a/plat/kvm/arm/intctrl.c b/plat/kvm/arm/intctrl.c
> > index ac604a7..dbd7f73 100644
> > --- a/plat/kvm/arm/intctrl.c
> > +++ b/plat/kvm/arm/intctrl.c
> > @@ -31,24 +31,35 @@
> >    *
> >    * THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY.
> >    */
> > +#include <uk/assert.h>
> >   #include <kvm/intctrl.h>
> > +#include <arm/cpu.h>
> > +#include <arm/irq.h>
> > +#include <gic/gic-v2.h>
> > +#include <kvm/config.h>
> >
> >   void intctrl_init(void)
> >   {
> > -// TO DO
> > +int ret;
> > +
> > +/* Initialize GIC from DTB */
> > +ret = _dtb_init_gic(_libkvmplat_cfg.dtb);
> > +if (ret)
> > +UK_CRASH("Initialize GIC from DTB failed, ret=%d\n", ret);
> > +
> >   }
> >
> >   void intctrl_ack_irq(unsigned int irq)
> >   {
> > -// TO DO
> > +//NOP
> >   }
> >
> >   void intctrl_mask_irq(unsigned int irq)
> >   {
> > -// TO DO
> > +gic_disable_irq(irq);
> >   }
> >
> >   void intctrl_clear_irq(unsigned int irq)
> >   {
> > -// TO DO
> > +gic_enable_irq(irq);
> >   }
> > diff --git a/plat/kvm/arm/setup.c b/plat/kvm/arm/setup.c
> > index 301b5a1..b8148f9 100644
> > --- a/plat/kvm/arm/setup.c
> > +++ b/plat/kvm/arm/setup.c
> > @@ -24,6 +24,7 @@
> >   #include <kvm/config.h>
> >   #include <uk/assert.h>
> >   #include <kvm-arm/mm.h>
> > +#include <kvm/intctrl.h>
> >   #include <arm/cpu.h>
> >   #include <uk/arch/limits.h>
> >
> > @@ -214,6 +215,9 @@ void _libkvmplat_start(void *dtb_pointer)
> >   /* Initialize memory from DTB */
> >   _init_dtb_mem();
> >
> > +/* Initialize interrupt controller */
> > +intctrl_init();
> > +
> >   uk_pr_info("pagetable start: %p\n",
> >      (void *) _libkvmplat_cfg.pagetable.start);
> >   uk_pr_info("     heap start: %p\n",
> >
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.