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

Re: [Xen-devel] [PATCH v3 5/6] xen/arm: introduce nr_spis


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Fri, 9 Aug 2019 19:26:47 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=GdVGnVqsrIwY+2HrkbrGnG2ZVChY8Bawk7fYUiUWLJE=; b=Ctkjbs/vFq1zU4By95Vx5i91Vyjqxj8tS/0QyaBXS702UADv3i/bVu8CpfUrmAXm4X8iPOHw3222SOEhapsTT1PFhuq/al2C0qI/LAYBt7/PO358BgJ5YmhzpNx5oCZ51aFNol31FFW5zFpcr0p/BtvI/79WzV5HOBQR3wC+KankXpPJDp9XmeOd8j6n55jyHeuqSFLCzIhxkeKhJlQ4iLQPX/rogtsoFWPOsnamW7MV/TWy0SfqJaafquuUSUJr7zYMOyleK0OO6fHlxOOdhVmIuloA/B9O527R1p37rhpjdB2QpCzDR9Y8hriGsaOXTcgReauObhi4yQH+47utCA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VQ0NKYM3MLgF8laCZxDSxiNaOrXUuMoPJ1A5t8KBllRIpLimYSskTaty+Lmz0MIRhhwqByJpnHdslvRAU1j5nKFFDibX0HwNKPHdHsKhnlKDN6At6HhamRgteCSthw/wllmBVdCVj3Qyra+b6rPwc4K3Hi0uxIceiAaSVXohNgvhSi3YhUlaeU4pssnebcJG6TZkIUTIV9eR+zuWnBbPVlFZxlrxCUoT3QCJPJdB41BudZrH6xJOqJwrdpWWRsmqMB/X3ELgWXLSEPYQoHPyWFZWaYPxbvpZvWcV0jc6MCAsUUCV4tULMc0VXJFNgDQszVbxelg68yqKxahWof/f9A==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@xxxxxxxx;
  • Cc: Stefano Stabellini <stefanos@xxxxxxxxxx>, Andrii Anisov <Andrii_Anisov@xxxxxxxx>, "Achin.Gupta@xxxxxxx" <Achin.Gupta@xxxxxxx>, "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>, "julien.grall@xxxxxxx" <julien.grall@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 09 Aug 2019 19:27:13 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVTj7LWqlMOydw20KDZhiZwZuBxKbzNEYA
  • Thread-topic: [PATCH v3 5/6] xen/arm: introduce nr_spis

Stefano,

Stefano Stabellini writes:

> We don't have a clear way to know how many virtual SPIs we need for the
> boot domains. Introduce a new option under xen,domain to specify the
> number of SPIs to allocate for the domain.
>
> The property is optional, when absent, we'll use the physical number of
> gic lines for dom0less domains, just like for dom0. Given that dom0less
> VMs are meant for static partitioning scenarios where the number of VMs
> is very low, increased memory overhead should not be a problem, and it
> is possible to minimizing it by using "nr_spis".
>
> Signed-off-by: Stefano Stabellini <stefanos@xxxxxxxxxx>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>

> ---
> Changes in v3:
> - improve commit message
> - introduce nr_spis
> ---
>  xen/arch/arm/domain_build.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index 0057a509d1..fc4e5bc4ca 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -2270,7 +2270,6 @@ void __init create_domUs(void)
>          struct domain *d;
>          struct xen_domctl_createdomain d_cfg = {
>              .arch.gic_version = XEN_DOMCTL_CONFIG_GIC_NATIVE,
> -            .arch.nr_spis = 0,
>              .flags = XEN_DOMCTL_CDF_hvm_guest | XEN_DOMCTL_CDF_hap,
>              .max_evtchn_port = -1,
>              .max_grant_frames = 64,
> @@ -2280,13 +2279,13 @@ void __init create_domUs(void)
>          if ( !dt_device_is_compatible(node, "xen,domain") )
>              continue;
>  
> -        if ( dt_property_read_bool(node, "vpl011") )
> -            d_cfg.arch.nr_spis = GUEST_VPL011_SPI - 32 + 1;
> -
>          if ( !dt_property_read_u32(node, "cpus", &d_cfg.max_vcpus) )
>              panic("Missing property 'cpus' for domain %s\n",
>                    dt_node_name(node));
>  
> +        if ( !dt_property_read_u32(node, "nr_spis", &d_cfg.arch.nr_spis) )
> +            d_cfg.arch.nr_spis = gic_number_lines() - 32;
> +
>          d = domain_create(++max_init_domid, &d_cfg, false);
>          if ( IS_ERR(d) )
>              panic("Error creating domain %s\n", dt_node_name(node));


-- 
Volodymyr Babchuk at EPAM
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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