From: Alexander Graf <agraf@suse.de>
To: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Cc: avi@redhat.com, mtosatti@redhat.com, kvm@vger.kernel.org,
cotte@de.ibm.com, Paul Mackerras <paulus@samba.org>,
borntraeger@de.ibm.com, Andrea Arcangeli <aarcange@redhat.com>
Subject: Re: [PATCH 4/4 v3] KVM: Introduce kvm_memory_slot::arch and move lpage_info into it
Date: Wed, 07 Mar 2012 14:27:35 +0100 [thread overview]
Message-ID: <4F576247.4010402@suse.de> (raw)
In-Reply-To: <20120307134617.f7fa887c.yoshikawa.takuya@oss.ntt.co.jp>
On 03/07/2012 05:46 AM, Takuya Yoshikawa wrote:
> Alexander Graf<agraf@suse.de> wrote:
>
>>>> This patch is the first step to make this difference clear by
>>>> introducing kvm_memory_slot::arch; lpage_info is moved into it.
>>> I am planning to move rmap stuff into arch next if this patch is accepted.
>>>
>>> Please let me know if you have some opinion about which members should be
>>> moved into this.
>> What is this lpage stuff? When do we need it? Right now the code gets executed on ppc, right? And with the patch it doesn't, no?
> lpage_info is used for supporting huge pages on kvm-x86: we have
> write_count and rmap_pde for each largepage and these are in lpage_info.
>
> At the time I made this patch, it seemed that only kvm-x86 supported
> huge pages, on ppc the array should be empty:
Hrm. I suppose this refers to transparent huge pages? Andrea, Paul, is
there anything keeping is from also needing/using that logic?
> /* We don't currently support large pages. */
> #define KVM_HPAGE_GFN_SHIFT(x) 0
> #define KVM_NR_PAGE_SIZES 1
>
> How each architecture supports huge pages will differ a lot.
> So this kind of memory consuming stuff should be arch specific.
Yeah, probably.
> IMO rmap also should to be moved into the arch.
> s390 does not need it and other architectures than x86 will be happy if
> the type of it can be changed from unsigned long to a pointer, no?
How would an unsigned long make a difference over a pointer?
Alex
next prev parent reply other threads:[~2012-03-07 13:27 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-30 3:48 [PATCH 0/4] KVM: Introduce kvm_memory_slot::arch Takuya Yoshikawa
2012-01-30 3:50 ` [PATCH 1/4] KVM: Introduce gfn_to_index() which returns the index for a given level Takuya Yoshikawa
2012-01-30 3:50 ` [PATCH 2/4] KVM: Split lpage_info creation out from __kvm_set_memory_region() Takuya Yoshikawa
2012-01-30 3:51 ` [PATCH 3/4 v2] KVM: Simplify ifndef conditional usage in __kvm_set_memory_region() Takuya Yoshikawa
2012-01-30 3:53 ` [PATCH 4/4 v2] KVM: Introduce kvm_memory_slot::arch and move lpage_info into it Takuya Yoshikawa
2012-01-30 4:58 ` Takuya Yoshikawa
2012-01-30 5:35 ` [PATCH 4/4 v3] " Takuya Yoshikawa
2012-01-31 1:17 ` Takuya Yoshikawa
2012-01-31 7:51 ` Christian Borntraeger
2012-01-31 12:42 ` Takuya Yoshikawa
2012-01-31 9:18 ` Avi Kivity
2012-01-31 9:32 ` Takuya Yoshikawa
2012-03-06 23:01 ` Alexander Graf
2012-03-07 4:46 ` Takuya Yoshikawa
2012-03-07 13:27 ` Alexander Graf [this message]
2012-03-07 14:04 ` Avi Kivity
2012-03-07 14:57 ` Alexander Graf
2012-03-07 15:03 ` Avi Kivity
2012-03-07 15:28 ` Alexander Graf
2012-03-07 14:15 ` Takuya Yoshikawa
2012-03-07 21:58 ` Paul Mackerras
2012-02-06 10:10 ` [PATCH 0/4] KVM: Introduce kvm_memory_slot::arch Takuya Yoshikawa
2012-02-06 10:10 ` Avi Kivity
2012-02-07 17:42 ` Marcelo Tosatti
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=4F576247.4010402@suse.de \
--to=agraf@suse.de \
--cc=aarcange@redhat.com \
--cc=avi@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=cotte@de.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=paulus@samba.org \
--cc=yoshikawa.takuya@oss.ntt.co.jp \
/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;
as well as URLs for NNTP newsgroup(s).