login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
29
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_RODATA support - alternatives"
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
H. Peter Anvin <hpa@...>
To: Jeremy Fitzhardinge <jeremy@...>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...>, Ingo Molnar <mingo@...>, Linux Kernel Mailing List <linux-kernel@...>, Andi Kleen <ak@...>, Zachary Amsden <zach@...>
Subject:
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_RODATA support - alternatives"
Date: Friday, February 29, 2008 - 4:56 pm
Jeremy Fitzhardinge wrote:
quoted text
> The patch "x86 - Enhance DEBUG_RODATA support - alternatives" enables > the kernel for writing by clearing X86_CR0_WP allow privileged writes. > This won't work in a paravirt environment for two reasons: > > 1. the kernel may not be running in ring 0, so writes will still be > prevented > 2. the hypervisor prevents X86_CR0_WP from being cleared anyway (it > GPFs the cr0 update) > > This crashes on Xen, and it would probably break VMI too. > > The only safe way to allow writes is to change the page permissions > (either on the page itself, or create a temporary writable alias for > that page). Perhaps something you could do it with kmap_atomic. >
A properly implemented hypervisor should arguably emulate this. Doesn't really mean the patch is worth the pain. -hpa --
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:
bad paravirt/Xen interaction in "x86 - Enhance DEBUG_RODATA ...
, Jeremy Fitzhardinge
, (Fri Feb 29, 4:39 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, Ingo Molnar
, (Fri Feb 29, 5:24 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, H. Peter Anvin
, (Fri Feb 29, 4:56 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, Jeremy Fitzhardinge
, (Fri Feb 29, 5:09 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, Mathieu Desnoyers
, (Mon Mar 3, 1:30 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, Jeremy Fitzhardinge
, (Mon Mar 3, 1:58 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance
, Andi Kleen
, (Mon Mar 3, 2:03 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, Jeremy Fitzhardinge
, (Mon Mar 3, 2:05 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, Mathieu Desnoyers
, (Mon Mar 3, 4:53 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, Jeremy Fitzhardinge
, (Mon Mar 3, 6:15 pm)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, Mathieu Desnoyers
, (Tue Mar 4, 12:12 am)
Re: bad paravirt/Xen interaction in "x86 - Enhance DEBUG_ROD...
, Andi Kleen
, (Mon Mar 3, 1:35 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
H. Peter Anvin
Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.
Christoph Lameter
Re: [RFC 00/15] x86_64: Optimize percpu accesses
git
:
linux-netdev
:
Christoph Hellwig
Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2]
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
753 guests
online.
Online users
zeekec
negociosores
christopherneal
dogbehavior
Syndicate