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
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Francis Moreau
Re: Disk geometry from /sys
Rafael J. Wysocki
[Bug #11407] suspend: unable to handle kernel paging request
Christoph Lameter
Re: [bug] SLUB + mm/slab.c boot crash in -rc9
Jeremy Fitzhardinge
Re: [2.6.25] compat VDSO option not disabling
Rafael J. Wysocki
[Bug #11551] Semi-repeatable hard lockup on 2.6.27-rc6
git
:
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Tait
Re: [PATCH] Replace hard-coded path with one from <paths.h>
Frans Pop
'git gc --aggressive' effectively unusable
Stephan Beyer
Re: git sequencer prototype
Lynn Lin
Re: clearcase migration to git
linux-netdev
:
William Allen Simpson
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option exchange
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
git-commits-head
:
Linux Kernel Mailing List
.gitignore: ignore *.lzo files
Linux Kernel Mailing List
sparc64: Fix sun4u execute bit check in TSB I-TLB load.
Linux Kernel Mailing List
init: Open /dev/console from rootfs
Linux Kernel Mailing List
udp: fix for unicast RX path optimization
Linux Kernel Mailing List
imxfb: Fix margin settings
openbsd-misc
:
nixlists
Re: Which laptops do the developers use?
Robert
disklabel - cylinder rounding
admin
Drive a 2009 car from R799p/m
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Colocation donated by:
Syndicate