From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eK4SO-00060e-Sm for qemu-devel@nongnu.org; Wed, 29 Nov 2017 10:39:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eK4SL-0004kG-Ov for qemu-devel@nongnu.org; Wed, 29 Nov 2017 10:39:28 -0500 Date: Wed, 29 Nov 2017 16:39:08 +0100 From: Cornelia Huck Message-ID: <20171129163908.38ae0bd9.cohuck@redhat.com> In-Reply-To: <39bdd9f7-9510-48ab-9a17-1a53bcc7f029@redhat.com> References: <20171128203326.6062-1-david@redhat.com> <20171128203326.6062-5-david@redhat.com> <20171129161351.7908b6b0.cohuck@redhat.com> <40e115a4-476b-4b0a-c151-3f708b9e0a80@redhat.com> <20171129163501.1e83432c.cohuck@redhat.com> <39bdd9f7-9510-48ab-9a17-1a53bcc7f029@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1 for-2.12 04/15] s390x/ioinst: pass the retaddr to all IO instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Hildenbrand Cc: qemu-s390x@nongnu.org, qemu-devel@nongnu.org, Christian Borntraeger , Richard Henderson , Alexander Graf On Wed, 29 Nov 2017 16:38:03 +0100 David Hildenbrand wrote: > On 29.11.2017 16:35, Cornelia Huck wrote: > > On Wed, 29 Nov 2017 16:14:40 +0100 > > David Hildenbrand wrote: > > > >> On 29.11.2017 16:13, Cornelia Huck wrote: > >>> On Tue, 28 Nov 2017 21:33:14 +0100 > >>> David Hildenbrand wrote: > >>> > >>>> TCG needs the retaddr when injecting an interrupt. Let's just pass it > >>>> along and use 0 for KVM. The value will be completely ignored for KVM. > >>> > >>> Can we get a #define for that? Just to make it clear at a glance that > >>> we're passing an ignored value and not some magic thing. > >> > >> If you can come up with a good name, I can't :) > > > > KVM_FAKE_RA > > KVM_RA_UNUSED > > KVM_RA_IGNORED > > > > ? > > > > KVM_RA ? (to keep lines short?) > That sounds too much like a magic value IMO (and not something that is ignored).