login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
28
Re: [PATCH 11/22] KVM: MMU: Add infrastructure for two-level page walker
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Avi Kivity
Subject:
Re: [PATCH 11/22] KVM: MMU: Add infrastructure for two-level page walker
Date: Wednesday, April 28, 2010 - 4:09 am
On 04/28/2010 02:03 PM, Joerg Roedel wrote:
quoted text
> On Tue, Apr 27, 2010 at 03:34:10PM +0300, Avi Kivity wrote: > >> On 04/27/2010 01:38 PM, Joerg Roedel wrote: >> >>> This patch introduces a mmu-callback to translate gpa >>> addresses in the walk_addr code. This is later used to >>> translate l2_gpa addresses into l1_gpa addresses. >>> >>> +static inline gfn_t gpa_to_gfn(gpa_t gpa) >>> +{ >>> + return (gfn_t)gpa>> PAGE_SHIFT; >>> +} >>> + >>> >> This overflows on 32-bit, since gpa_t is u64 and gfn_t is ulong. >> > Thinking again about it, on 32 bit the physical address width is only 36 > bits. So there shouldn't be an overflow, no? >
It's limited by MAXPHYADDR (at least on Intel) even on 32-bits. -- error compiling committee.c: too many arguments to function --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/22] Nested Paging support for Nested SVM v2
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 01/22] KVM: MMU: Check for root_level instead of lo ...
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 03/22] KVM: MMU: Make set_cr3 a function pointer in ...
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 07/22] KVM: SVM: Implement MMU helper functions for ...
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 09/22] KVM: MMU: Let is_rsvd_bits_set take mmu cont ...
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 11/22] KVM: MMU: Add infrastructure for two-level p ...
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 13/22] KVM: X86: Add kvm_read_guest_page_tdp function
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 14/22] KVM: MMU: Make walk_addr_generic capable for ...
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 16/22] KVM: MMU: Track page fault data in struct vcpu
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 19/22] KVM: MMU: Introduce init_kvm_nested_mmu()
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 20/22] KVM: SVM: Initialize Nested Nested MMU conte ...
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
[PATCH 21/22] KVM: SVM: Report Nested Paging support to us ...
, Joerg Roedel
, (Tue Apr 27, 3:38 am)
Re: [PATCH 02/22] KVM: MMU: Make tdp_enabled a mmu-context ...
, Avi Kivity
, (Tue Apr 27, 5:06 am)
Re: [PATCH 11/22] KVM: MMU: Add infrastructure for two-lev ...
, Avi Kivity
, (Tue Apr 27, 5:34 am)
Re: [PATCH 12/22] KVM: MMU: Implement nested gva_to_gpa fu ...
, Avi Kivity
, (Tue Apr 27, 5:37 am)
Re: [PATCH 13/22] KVM: X86: Add kvm_read_guest_page_tdp fu ...
, Avi Kivity
, (Tue Apr 27, 5:42 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Avi Kivity
, (Tue Apr 27, 5:58 am)
Re: [PATCH 20/22] KVM: SVM: Initialize Nested Nested MMU c ...
, Avi Kivity
, (Tue Apr 27, 6:01 am)
Re: [PATCH 0/22] Nested Paging support for Nested SVM v2
, Avi Kivity
, (Tue Apr 27, 6:03 am)
Re: [PATCH 13/22] KVM: X86: Add kvm_read_guest_page_tdp fu ...
, Joerg Roedel
, (Tue Apr 27, 6:10 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Joerg Roedel
, (Tue Apr 27, 6:28 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Avi Kivity
, (Tue Apr 27, 6:37 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Joerg Roedel
, (Tue Apr 27, 6:57 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Avi Kivity
, (Tue Apr 27, 9:02 am)
Re: [PATCH 11/22] KVM: MMU: Add infrastructure for two-lev ...
, Joerg Roedel
, (Wed Apr 28, 3:52 am)
Re: [PATCH 11/22] KVM: MMU: Add infrastructure for two-lev ...
, Joerg Roedel
, (Wed Apr 28, 4:03 am)
Re: [PATCH 11/22] KVM: MMU: Add infrastructure for two-lev ...
, Avi Kivity
, (Wed Apr 28, 4:09 am)
Re: [PATCH 11/22] KVM: MMU: Add infrastructure for two-lev ...
, Avi Kivity
, (Wed Apr 28, 4:24 am)
Re: [PATCH 12/22] KVM: MMU: Implement nested gva_to_gpa fu ...
, Joerg Roedel
, (Wed Apr 28, 7:20 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Joerg Roedel
, (Mon May 3, 9:32 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Avi Kivity
, (Tue May 4, 12:53 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Roedel, Joerg
, (Tue May 4, 2:11 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Avi Kivity
, (Tue May 4, 2:20 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Roedel, Joerg
, (Tue May 4, 2:37 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Avi Kivity
, (Tue May 4, 2:45 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Avi Kivity
, (Tue May 4, 2:50 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Roedel, Joerg
, (Tue May 4, 5:00 am)
Re: [PATCH 16/22] KVM: MMU: Track page fault data in struc ...
, Avi Kivity
, (Tue May 4, 5:04 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jesse Barnes
Re: [stable] [BUG][PATCH] cpqphp: fix kernel NULL pointer dereference
Greg KH
[003/136] p54usb: add Zcomax XG-705A usbid
Magnus Damm
[PATCH 03/07] ARM: Use shared GIC entry macros on Realview
Oliver Neukum
Re: [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30
Martin Schwidefsky
Re: [PATCH] optimized ktime_get[_ts] for GENERIC_TIME=y
git
:
Junio C Hamano
Re: Some advanced index playing
Jeff King
Re: confusion over the new branch and merge config
Robin Rosenberg
Re: cvs2svn conversion directly to git ready for experimentation
Linus Torvalds
git binary size...
Ævar Arnfjörð Bjarmason
Re: Challenge with Git-Bash
git-commits-head
:
Linux Kernel Mailing List
md: move allocation of ->queue from mddev_find to md_probe
Linux Kernel Mailing List
md: raid0: Represent zone->zone_offset in sectors.
Linux Kernel Mailing List
[ARM] S3C24XX: Add gpio_to_irq() facility
Linux Kernel Mailing List
md: raid0_make_request(): Replace local variable block by sector.
Linux Kernel Mailing List
md: Allow md devices to be created by name.
linux-netdev
:
kaber
[PATCH 07/12] netfilter: xtables: change hotdrop pointer to direct modification
Gerrit Renker
[PATCH 3/5] dccp ccid-2: Remove redundant sanity tests
David Miller
Re: [PATCH net-next-2.6] pcnet32: Remove redundant set of skb->dev
Gerrit Renker
[PATCH 4/5] dccp ccid-2: Simplify dec_pipe and rearming of RTO timer
Saikiran Madugula
[PATCH] Allow fragmentation of VLAN packets traversing a bridge.
freebsd-current
:
Ryan Stone
Re: Re[3]: [Call For Testing] VirtualBox for FreeBSD! take2
Alexey Shuvaev
Re: Ruby w/clang (Was: Re: [CFT]: ClangBSD is selfhosting, we need testers now)
Cristian KLEIN
Re: small purposal for change in installworld
FreeBSD Tinderbox
[head tinderbox] failure on sparc64/sparc64
Mark Martinec
Support for newer Ethernet chips in RE(4) driver?
Colocation donated by:
Syndicate