From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxINA-0002fH-G4 for qemu-devel@nongnu.org; Wed, 18 Jun 2014 12:06:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxIN3-0000Rn-0k for qemu-devel@nongnu.org; Wed, 18 Jun 2014 12:06:04 -0400 Message-ID: <53A1B8DA.8010002@redhat.com> Date: Wed, 18 Jun 2014 18:05:46 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1403105553-5478-1-git-send-email-ming.lei@canonical.com> <20140618154335.GA25619@redhat.com> <53A1B5DF.7020303@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1] virtio-scsi: fix object check failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ming Lei Cc: Peter Maydell , qemu-stable@nongnu.org, qemu-devel@nongnu.org, Anthony Liguori , "Michael S. Tsirkin" Il 18/06/2014 18:03, Ming Lei ha scritto: >> > >> > - initialize them to the existing functions in virtio_scsi_class_init >> > >> > - initialize them to dummy empty functions in vhost_scsi_class_init > But vhost does need the three functions as vq's handle_out callback. Yes, but they do not need to do anything, the kernel handles everything. They just cannot be NULL. Paolo