From: Aurelien Jarno Subject: Re: Data corruption in guest using KVM Date: Mon, 23 Jul 2007 08:08:27 +0200 Message-ID: <20070723060827.GA25395@hall.aurel32.net> References: <20070721172248.GA1555@hall.aurel32.net> <46A30CA3.3090100@qumranet.com> <20070722133818.GG16993@hall.aurel32.net> <46A35FAB.701@qumranet.com> <20070722164454.GA26166@hall.aurel32.net> <46A3952D.2020009@qumranet.com> <20070722233429.GA10146@hall.aurel32.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <20070722233429.GA10146-OqXK5JiLQY5aJl8KAwiEcA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Mon, Jul 23, 2007 at 01:34:29AM +0200, Aurelien Jarno wrote: > On Sun, Jul 22, 2007 at 08:34:37PM +0300, Avi Kivity wrote: > > Aurelien Jarno wrote: > > > On Sun, Jul 22, 2007 at 04:46:19PM +0300, Avi Kivity wrote: > > > > > >> If you do happen to get a same-size corruption, that may tell us more. > > >> > > >> > > > > > > I have just got one same-size corruption building glibc 2.6 on > > > GNU/kFreeBSD i386 (32-bit nonpae). > > > > > > One byte at address 0x9000 has been replaced by 0x00. Please find the > > > good and the bad file attached. > > > > > > > > > > Good. We have one or two cross-page-boundary bugs. The > > corruption-chase branch already fixes one (which is much more likely to > > be triggered by FreeBSD than Linux, if I understand the FreeBSD VM > > correctly). > > > > I have tried this branch, and the data get corrupted another way. This > is due to the fact that the source address is not incremented for the > second write. The patch below fixes that. > > With this patch, I haven't be able to make any corruption. I have added > a printk in the code to see that I have been able to trigger 21 > cross-boundary writes without any problem in the various guests. > After a night of tests, 172 cross-boundary writes have been triggered, still nothing wrong in the guests. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org | aurelien-rXXEIb44qovR7s880joybQ@public.gmane.org `- people.debian.org/~aurel32 | www.aurel32.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/