qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] virtio-scsi/blk dataplane and guest memory allocation


From: Roy Shterman
Subject: [Qemu-devel] virtio-scsi/blk dataplane and guest memory allocation
Date: Wed, 20 Jan 2016 22:12:54 +0200

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]