From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Subject: Re: [PATCH 1/2] S390: take a full byte as ext_param indicator Date: Tue, 24 Aug 2010 14:06:25 +0200 Message-ID: <4C73B5C1.5040603@suse.de> References: <1282599077-29857-1-git-send-email-agraf@suse.de> <4C736EAF.9020107@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: virtualization@lists.linux-foundation.org, Rusty Russell , Christian Ehrhardt , Carsten Otte , KVM list To: Christian Borntraeger Return-path: Received: from cantor.suse.de ([195.135.220.2]:46356 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751507Ab0HXMG2 (ORCPT ); Tue, 24 Aug 2010 08:06:28 -0400 In-Reply-To: <4C736EAF.9020107@de.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: Christian Borntraeger wrote: > Am 23.08.2010 23:31, schrieb Alexander Graf: > >> Currenty the ext_param field only distinguishes between "config change" and >> "vring interrupt". We can do a lot more with it though, so let's enable a >> full byte of possible values and constants to #defines while at it. >> > > Makes a lot of sense. > [...] > > >> #define VIRTIO_SUBCODE_64 0x0D00 >> +#define VIRTIO_PARAM_MASK 0xff >> +#define VIRTIO_PARAM_VRING_INTERRUPT 0x0 >> +#define VIRTIO_PARAM_CONFIG_CHANGED 0x1 >> > > Maybe this should be exported in a header, something like > arch/s390/include/asm/kvm_virtio.h? In that case this file > must be added to Kbuild for make headers_install. > While that thought sounds good at first, it's really no use for anyone, right? I mean - in qemu we need to define the defines manually anyways because we need to potentially be able to build the s390x target on non-s390x, possibly on non-Linux. Alex