Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1204007

Re: [PATCH v3 9/9] xen/xenbus: Rename the variable xen_store_mfn to xen_store_gfn

From Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 9/9] xen/xenbus: Rename the variable xen_store_mfn to xen_store_gfn
Date 2015-08-10 12:10 +0200
Message-ID <pVSbO-2Zz-59@gated-at.bofh.it> (permalink)
References <pUSQx-52p-3@gated-at.bofh.it> <pUSQy-52p-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 7 Aug 2015, Julien Grall wrote:
> The variable xen_store_mfn is effectively storing a GFN and not an MFN.
> 
> Signed-off-by: Julien Grall <julien.grall@citrix.com>

Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>


> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
> Cc: David Vrabel <david.vrabel@citrix.com>
> 
>     I think that the assignation of xen_start_info in
>     xenstored_local_init is pointless. Although I haven't drop it just
>     in case.
> 
>     Changes in v3:
>         - Patch added.
> ---
>  drivers/xen/xenbus/xenbus_probe.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c
> index b3870f4..3cbe055 100644
> --- a/drivers/xen/xenbus/xenbus_probe.c
> +++ b/drivers/xen/xenbus/xenbus_probe.c
> @@ -75,7 +75,7 @@ EXPORT_SYMBOL_GPL(xen_store_interface);
>  enum xenstore_init xen_store_domain_type;
>  EXPORT_SYMBOL_GPL(xen_store_domain_type);
>  
> -static unsigned long xen_store_mfn;
> +static unsigned long xen_store_gfn;
>  
>  static BLOCKING_NOTIFIER_HEAD(xenstore_chain);
>  
> @@ -711,7 +711,7 @@ static int __init xenstored_local_init(void)
>  	if (!page)
>  		goto out_err;
>  
> -	xen_store_mfn = xen_start_info->store_mfn = virt_to_gfn((void *)page);
> +	xen_store_gfn = xen_start_info->store_mfn = virt_to_gfn((void *)page);
>  
>  	/* Next allocate a local port which xenstored can bind to */
>  	alloc_unbound.dom        = DOMID_SELF;
> @@ -785,12 +785,12 @@ static int __init xenbus_init(void)
>  		err = xenstored_local_init();
>  		if (err)
>  			goto out_error;
> -		xen_store_interface = gfn_to_virt(xen_store_mfn);
> +		xen_store_interface = gfn_to_virt(xen_store_gfn);
>  		break;
>  	case XS_PV:
>  		xen_store_evtchn = xen_start_info->store_evtchn;
> -		xen_store_mfn = xen_start_info->store_mfn;
> -		xen_store_interface = gfn_to_virt(xen_store_mfn);
> +		xen_store_gfn = xen_start_info->store_mfn;
> +		xen_store_interface = gfn_to_virt(xen_store_gfn);
>  		break;
>  	case XS_HVM:
>  		err = hvm_get_parameter(HVM_PARAM_STORE_EVTCHN, &v);
> @@ -800,9 +800,9 @@ static int __init xenbus_init(void)
>  		err = hvm_get_parameter(HVM_PARAM_STORE_PFN, &v);
>  		if (err)
>  			goto out_error;
> -		xen_store_mfn = (unsigned long)v;
> +		xen_store_gfn = (unsigned long)v;
>  		xen_store_interface =
> -			xen_remap(xen_store_mfn << PAGE_SHIFT, PAGE_SIZE);
> +			xen_remap(xen_store_gfn << PAGE_SHIFT, PAGE_SIZE);
>  		break;
>  	default:
>  		pr_warn("Xenstore state unknown\n");
> -- 
> 2.1.4
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/9] Use correctly the Xen memory terminologies Julien Grall <julien.grall@citrix.com> - 2015-08-07 18:40 +0200
  [PATCH v3 8/9] xen/privcmd: Further s/MFN/GFN/ clean-up Julien Grall <julien.grall@citrix.com> - 2015-08-07 18:40 +0200
  [PATCH v3 9/9] xen/xenbus: Rename the variable xen_store_mfn to xen_store_gfn Julien Grall <julien.grall@citrix.com> - 2015-08-07 18:40 +0200
    Re: [PATCH v3 9/9] xen/xenbus: Rename the variable xen_store_mfn  to xen_store_gfn Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2015-08-07 23:40 +0200
      Re: [Xen-devel] [PATCH v3 9/9] xen/xenbus: Rename the variable xen_store_mfn  to xen_store_gfn Julien Grall <julien.grall@citrix.com> - 2015-08-10 12:00 +0200
    Re: [PATCH v3 9/9] xen/xenbus: Rename the variable xen_store_mfn to  xen_store_gfn Stefano Stabellini <stefano.stabellini@eu.citrix.com> - 2015-08-10 12:10 +0200
  [PATCH v3 5/9] xen/tmem: Use xen_page_to_gfn rather than pfn_to_gfn Julien Grall <julien.grall@citrix.com> - 2015-08-07 18:40 +0200
  [PATCH v3 6/9] video/xen-fbfront: Further s/MFN/GFN clean-up Julien Grall <julien.grall@citrix.com> - 2015-08-07 18:40 +0200
  [PATCH v3 4/9] xen: Use correctly the Xen memory terminologies Julien Grall <julien.grall@citrix.com> - 2015-08-07 18:40 +0200
  Re: [Xen-devel] [PATCH v3 0/9] Use correctly the Xen memory terminologies David Vrabel <david.vrabel@citrix.com> - 2015-08-11 19:40 +0200

csiph-web