[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 1/3] mm/memory_hotplug: Prepare passing flags to add_memory() and friends
- To: David Hildenbrand <david@xxxxxxxxxx>
- From: Wei Liu <wei.liu@xxxxxxxxxx>
- Date: Wed, 29 Apr 2020 16:41:55 +0000
- Cc: linux-hyperv@xxxxxxxxxxxxxxx, Michal Hocko <mhocko@xxxxxxxx>, "Michael S . Tsirkin" <mst@xxxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Jason Wang <jasowang@xxxxxxxxxx>, Heiko Carstens <heiko.carstens@xxxxxxxxxx>, Pingfan Liu <kernelfans@xxxxxxxxx>, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx, Paul Mackerras <paulus@xxxxxxxxx>, "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, virtio-dev@xxxxxxxxxxxxxxxxxxxx, Wei Liu <wei.liu@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Dave Jiang <dave.jiang@xxxxxxxxx>, Baoquan He <bhe@xxxxxxxxxx>, linux-nvdimm@xxxxxxxxxxxx, Vishal Verma <vishal.l.verma@xxxxxxxxx>, linux-acpi@xxxxxxxxxxxxxxx, Wei Yang <richard.weiyang@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Len Brown <lenb@xxxxxxxxxx>, Nathan Lynch <nathanl@xxxxxxxxxxxxx>, Vasily Gorbik <gor@xxxxxxxxxxxxx>, linux-s390@xxxxxxxxxxxxxxx, Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>, Leonardo Bras <leobras.c@xxxxxxxxx>, Stephen Hemminger <sthemmin@xxxxxxxxxxxxx>, Dan Williams <dan.j.williams@xxxxxxxxx>, Michal Hocko <mhocko@xxxxxxxxxx>, Christian Borntraeger <borntraeger@xxxxxxxxxx>, Oscar Salvador <osalvador@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Pankaj Gupta <pankaj.gupta.linux@xxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Eric Biederman <ebiederm@xxxxxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, linuxppc-dev@xxxxxxxxxxxxxxxx
- Delivery-date: Wed, 29 Apr 2020 16:42:06 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed, Apr 29, 2020 at 06:08:01PM +0200, David Hildenbrand wrote:
> We soon want to pass flags - prepare for that.
>
> This patch is based on a similar patch by Oscar Salvador:
>
> https://lkml.kernel.org/r/20190625075227.15193-3-osalvador@xxxxxxx
>
[...]
> ---
> drivers/hv/hv_balloon.c | 2 +-
> diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
> index 32e3bc0aa665..0194bed1a573 100644
> --- a/drivers/hv/hv_balloon.c
> +++ b/drivers/hv/hv_balloon.c
> @@ -726,7 +726,7 @@ static void hv_mem_hot_add(unsigned long start, unsigned
> long size,
>
> nid = memory_add_physaddr_to_nid(PFN_PHYS(start_pfn));
> ret = add_memory(nid, PFN_PHYS((start_pfn)),
> - (HA_CHUNK << PAGE_SHIFT));
> + (HA_CHUNK << PAGE_SHIFT), 0);
>
> if (ret) {
> pr_err("hot_add memory failed error is %d\n", ret);
Acked-by: Wei Liu <wei.liu@xxxxxxxxxx>
|