From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:52405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxDrI-0005bK-Bc for qemu-devel@nongnu.org; Fri, 22 Feb 2019 11:39:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxDrG-00077h-A7 for qemu-devel@nongnu.org; Fri, 22 Feb 2019 11:39:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50130) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gxDrE-00073L-9r for qemu-devel@nongnu.org; Fri, 22 Feb 2019 11:39:30 -0500 References: <28e6b4ed-9afd-3a79-6267-86c7385c23ce@redhat.com> <20190222163735.GB2616@work-vm> From: Paolo Bonzini Message-ID: <1f3243df-1037-235f-838f-4651df476ee3@redhat.com> Date: Fri, 22 Feb 2019 17:39:21 +0100 MIME-Version: 1.0 In-Reply-To: <20190222163735.GB2616@work-vm> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" , Stefan Hajnoczi Cc: =?UTF-8?Q?Fernando_Casas_Sch=c3=b6ssow?= , Richard Henderson , qemu-devel , Natanael Copa On 22/02/19 17:37, Dr. David Alan Gilbert wrote: > Why does vring_avail_idx use virtio_ld*u*w_phys_cached? > (similar for vring_avail_ring). > There's no generically safe way to do unaligned atomic loads - don't we know > in virtio that these are naturally aligned? u is for unsigned. :) We know that these are aligned and so they will be atomic. Paolo