qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] virtio-scsi/blk dataplane and guest memory allocation
@ 2016-01-20 20:12 Roy Shterman
  2016-01-21  3:53 ` Fam Zheng
  2016-01-21  9:01 ` Paolo Bonzini
  0 siblings, 2 replies; 11+ messages in thread
From: Roy Shterman @ 2016-01-20 20:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: famz, stefanha

[-- Attachment #1: Type: text/plain, Size: 1818 bytes --]

Hi,

I have two questions,

First, I'm developing for Libiscsi and trying to work with virtio-scsi
dataplane or even virtio-blk dataplane and it doesn't works well.

I'm working with latest qemu and latest Libiscsi in RedHat 7 libvirt
package.

my iscsi xml part is :

virtio-blk -

    <disk type='network' device='lun'>
      <driver name='qemu' type='raw'/>
      <source protocol='iscsi' name='iqn.2001-04.com.r-dcs03-tgt-3/1'>
        <host name='11.212.32.52' port='3260'/>
      </source>
      <target dev='vdb' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07'
function='0x0'/>
    </disk>

virtio-scsi -

    <disk type='network' device='lun'>
      <driver name='qemu' type='raw'/>
      <source protocol='iscsi' name='iqn.2001-04.com.r-dcs03-tgt-1/1>
        <host name='11.212.32.52' port='3260'/>
      </source>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
    </controller>

I tried to add this code outdise of <devices> in my xml :

  <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.virtio-disk0.scsi=off'/>
  </qemu:commandline>
  <!-- config-wce=off is not needed in RHEL 6.4 -->
  <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.virtio-disk0.config-wce=off'/>
  </qemu:commandline>
  <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.virtio-disk0.x-data-plane=on'/>
  </qemu:commandline>

and nothing happened, can you think of something i'm missing?

second thing, I'm trying to look for the code where QEMU allocate all
guest memory (2 GB) in my case.

Thanks,

Roy

[-- Attachment #2: Type: text/html, Size: 3429 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-01-30  8:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20 20:12 [Qemu-devel] virtio-scsi/blk dataplane and guest memory allocation Roy Shterman
2016-01-21  3:53 ` Fam Zheng
2016-01-21  9:01 ` Paolo Bonzini
2016-01-27 19:03   ` Roy Shterman
2016-01-28  1:24     ` Fam Zheng
2016-01-28  7:28     ` Roy Shterman
2016-01-28  7:38       ` Fam Zheng
2016-01-28  8:46       ` Paolo Bonzini
2016-01-28  8:53         ` Daniel P. Berrange
2016-01-30  8:29           ` Roy Shterman
2016-01-30  8:33             ` Roy Shterman

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).