From: Vitaly Kuznetsov <vkuznets@redhat.com>
To: KY Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>,
"devel\@linuxdriverproject.org" <devel@linuxdriverproject.org>,
"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Dexuan Cui <decui@microsoft.com>
Subject: Re: [PATCH 0/1] Drivers: hv: hv_balloon: do not online pages in offline blocks
Date: Thu, 26 Mar 2015 10:39:50 +0100 [thread overview]
Message-ID: <877fu4rtax.fsf@vitty.brq.redhat.com> (raw)
In-Reply-To: <BY2PR0301MB07117A35A981B98CAE313D14A00B0@BY2PR0301MB0711.namprd03.prod.outlook.com> (KY Srinivasan's message of "Wed, 25 Mar 2015 18:31:03 +0000")
KY Srinivasan <kys@microsoft.com> writes:
>> -----Original Message-----
>> From: Vitaly Kuznetsov [mailto:vkuznets@redhat.com]
>> Sent: Wednesday, March 25, 2015 11:02 AM
>> To: KY Srinivasan
>> Cc: Haiyang Zhang; devel@linuxdriverproject.org; linux-
>> kernel@vger.kernel.org; Dexuan Cui
>> Subject: [PATCH 0/1] Drivers: hv: hv_balloon: do not online pages in offline
>> blocks
>>
>> Patch 1/1 is rather a hackaround. The root cause of the issue is the fact that
>> we're adding not fully backed memory blocks and allow to online them. It is
>> relatively easy to forbid that and add only fully backed 128Mb regions. The
>> whole
>> driver code will be much simpler: hv_bring_pgs_online() and
>> hv_online_page()
>> will go away, ha_region_mutex won't probably be required,... Please let me
>> know
>> if you think I should follow this way.
>
> Vitaly,
>
> The main issue I had to address here was that Windows has a 2M alignment for memory
> hot add while Linux has a 128M alignment requirement. Furthermore, we will also have to deal with
> the case where only a partial 128MB block might be hot-added. The strategy I chose of selectively
> onlining pages in a properly aligned block that would be hot added was
> to address the above two issues.
Yes, we can keep things this was, basically everyhting works. I just
wanted to highlight the other possible solution for the issue which is
also a major simplification for the driver.
So what do you think about my patch? We definitely should avoid onlining
pages in offline blocks.
>
> Regards,
>
> K. Y
>>
>> Vitaly Kuznetsov (1):
>> Drivers: hv: hv_balloon: do not online pages in offline blocks
>>
>> drivers/hv/hv_balloon.c | 12 +++++++++++-
>> 1 file changed, 11 insertions(+), 1 deletion(-)
>>
>> --
>> 1.9.3
--
Vitaly
next prev parent reply other threads:[~2015-03-26 9:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-25 18:01 Vitaly Kuznetsov
2015-03-25 18:02 ` [PATCH 1/1] " Vitaly Kuznetsov
2015-03-25 18:31 ` [PATCH 0/1] " KY Srinivasan
2015-03-26 9:39 ` Vitaly Kuznetsov [this message]
2015-03-27 14:28 ` KY Srinivasan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877fu4rtax.fsf@vitty.brq.redhat.com \
--to=vkuznets@redhat.com \
--cc=decui@microsoft.com \
--cc=devel@linuxdriverproject.org \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome