RE: [PATCH v2 RESEND 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-16 Thread Alex Ng (LIS)
> >> static unsigned long handle_pg_range(unsigned long pg_start, @@ - > 834,13 > >> +881,19 @@ static unsigned long process_hot_add(unsigned long > pg_start, > >>unsigned long rg_size) > >> { > >>struct hv_hotadd_state *ha_region = NULL; > >> + int

RE: [PATCH v2 RESEND 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-16 Thread Alex Ng (LIS)
> >> static unsigned long handle_pg_range(unsigned long pg_start, @@ - > 834,13 > >> +881,19 @@ static unsigned long process_hot_add(unsigned long > pg_start, > >>unsigned long rg_size) > >> { > >>struct hv_hotadd_state *ha_region = NULL; > >> + int

Re: [PATCH v2 RESEND 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-16 Thread Vitaly Kuznetsov
"Alex Ng (LIS)" writes: >> @@ -676,35 +686,63 @@ static void hv_mem_hot_add(unsigned long start, >> unsigned long size, >> >> static void hv_online_page(struct page *pg) { >> -struct list_head *cur; >> struct hv_hotadd_state *has; >> +struct hv_hotadd_gap

Re: [PATCH v2 RESEND 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-16 Thread Vitaly Kuznetsov
"Alex Ng (LIS)" writes: >> @@ -676,35 +686,63 @@ static void hv_mem_hot_add(unsigned long start, >> unsigned long size, >> >> static void hv_online_page(struct page *pg) { >> -struct list_head *cur; >> struct hv_hotadd_state *has; >> +struct hv_hotadd_gap *gap; >> unsigned

RE: [PATCH v2 RESEND 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-15 Thread Alex Ng (LIS)
> @@ -676,35 +686,63 @@ static void hv_mem_hot_add(unsigned long start, > unsigned long size, > > static void hv_online_page(struct page *pg) { > - struct list_head *cur; > struct hv_hotadd_state *has; > + struct hv_hotadd_gap *gap; > unsigned long cur_start_pgp; >

RE: [PATCH v2 RESEND 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-15 Thread Alex Ng (LIS)
> @@ -676,35 +686,63 @@ static void hv_mem_hot_add(unsigned long start, > unsigned long size, > > static void hv_online_page(struct page *pg) { > - struct list_head *cur; > struct hv_hotadd_state *has; > + struct hv_hotadd_gap *gap; > unsigned long cur_start_pgp; >