qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>, qemu-devel@nongnu.org
Cc: felipe@nutanix.com
Subject: Re: [PATCH] vhost-user-scsi: fix Kconfig dependencies
Date: Mon, 8 Nov 2021 11:53:31 +0100	[thread overview]
Message-ID: <8ca321c4-a28c-cefd-eda7-525c0bd715fc@redhat.com> (raw)
In-Reply-To: <2a587f18-ac3f-0125-9685-b860b731c84d@redhat.com>

On 11/8/21 10:53, Philippe Mathieu-Daudé wrote:
>>   config VHOST_USER_SCSI
>>       bool
>> +    default y
>>       # Only PCI devices are provided for now
>> -    default y if VIRTIO_PCI
>> -    depends on VIRTIO && VHOST_USER && LINUX
>> +    depends on VIRTIO_PCI && VHOST_USER && LINUX
> But there is no PCI call there:

Yeah, you're right.  You can still access the device on virtio-mmio via 
-device vhost-user-scsi.

> $ git grep pci hw/scsi/vhost*scsi*
> $
> 
> Don't we want to add VHOST_USER_SCSI_PCI in
> hw/virtio/Kconfig instead?

In practice you already have hw/virtio/vhost-user-scsi.pci conditional 
on "CONFIG_VHOST_USER_SCSI && CONFIG_VIRTIO_PCI", and further 
configuration is not too useful.

I think the best option is to either make it "default y if VIRTIO_PCI || 
VIRTIO_MMIO", or bite the bullet and add the ccw proxy devices.

Paolo



      reply	other threads:[~2021-11-08 10:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-08  9:47 [PATCH] vhost-user-scsi: fix Kconfig dependencies Paolo Bonzini
2021-11-08  9:53 ` Philippe Mathieu-Daudé
2021-11-08 10:53   ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8ca321c4-a28c-cefd-eda7-525c0bd715fc@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=felipe@nutanix.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).