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: Joerg Roedel
Subject:
Re: [PATCH 11/22] KVM: MMU: Add infrastructure for two-level page walker
Date: Wednesday, April 28, 2010 - 3:52 am
On Tue, Apr 27, 2010 at 03:34:10PM +0300, Avi Kivity wrote:
quoted text
> 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.
Hm, this is a problem outside of this patchset too (for 32bit hosts). The best solution is probably to convert gfn_t to u64 too. Joerg --
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
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate