libvirt/src/qemu
John Ferlan 63a368012d qemu: Fix bus and lun checks when scsi-disk.channel not present
Found by Laine and discussed a bit on internal IRC.

Commit id c56fe7f1d6 added support for creating a command line to support
scsi-disk.channel.

Series was here:
http://www.redhat.com/archives/libvir-list/2012-February/msg01052.html

Which pointed to a design proposal here:
http://permalink.gmane.org/gmane.comp.emulators.libvirt/50428

Which states (in part):

Libvirt should check for the QEMU "scsi-disk.channel" property.  If it
is unavailable, QEMU will only support channel=lun=0 and 0<=target<=7.

However, the check added was ensuring that bus != lun *and* bus != 0. So
if bus == lun and both were non zero, we'd never make the second check.
Changing this to an *or* check fixes the check, but still is less readable
than the just checking each for 0
2015-04-30 16:21:38 -04:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug
MIGRATION.txt
qemu_agent.c qemu: agent: Reuse virJSONValueObjectCreateVArgs in qemuAgentMakeCommand 2015-04-26 17:19:22 +02:00
qemu_agent.h
qemu_blockjob.c qemuBlockJobSync*: introduce sync block job helpers 2015-04-29 13:11:42 +02:00
qemu_blockjob.h qemuBlockJobSync*: introduce sync block job helpers 2015-04-29 13:11:42 +02:00
qemu_capabilities.c Introduce virDomainObjEndAPI 2015-04-24 13:22:45 +02:00
qemu_capabilities.h
qemu_cgroup.c Move iothreadspin information into iothreadids 2015-04-27 12:36:35 -04:00
qemu_cgroup.h qemu: cgroup: Kill qemuSetupCgroupVcpuPin() 2015-04-02 10:12:08 +02:00
qemu_command.c qemu: Fix bus and lun checks when scsi-disk.channel not present 2015-04-30 16:21:38 -04:00
qemu_command.h qemu: command: Validate that memory devices slot ID is in range 2015-04-29 09:40:16 +02:00
qemu_conf.c qemu: Build nvram directory at driver startup 2015-04-24 10:30:42 -04:00
qemu_conf.h qemu: Build nvram directory at driver startup 2015-04-24 10:30:42 -04:00
qemu_domain.c qemu: Use domain iothreadids to IOThread's 'thread_id' 2015-04-27 12:36:35 -04:00
qemu_domain.h qemu: Use domain iothreadids to IOThread's 'thread_id' 2015-04-27 12:36:35 -04:00
qemu_driver.c qemu: blockjob: Call qemuDomainSupportsBlockJobs only on online VMs 2015-04-30 16:46:42 +02:00
qemu_driver.h
qemu_hostdev.c
qemu_hostdev.h
qemu_hotplug.c qemu: Validate available slot count for memory devices 2015-04-29 09:40:16 +02:00
qemu_hotplug.h
qemu_hotplugpriv.h
qemu_interface.c qemu: set macvtap physdevs online when macvtap is set online 2015-04-21 12:34:29 -04:00
qemu_interface.h
qemu_migration.c qemu: migration: use sync block job helpers 2015-04-29 13:11:42 +02:00
qemu_migration.h
qemu_monitor_json.c qemu: Remove need for qemuMonitorIOThreadInfoFree 2015-04-28 06:33:49 -04:00
qemu_monitor_json.h qemu: blockPull: Refactor the rest of qemuDomainBlockJobImpl 2015-04-14 10:00:56 +02:00
qemu_monitor_text.c Remove unused macros 2015-04-02 10:27:56 +02:00
qemu_monitor_text.h
qemu_monitor.c qemu: make qemuMonitorChardevInfoFree non-static 2015-04-28 16:50:11 +02:00
qemu_monitor.h qemu: make qemuMonitorChardevInfoFree non-static 2015-04-28 16:50:11 +02:00
qemu_process.c qemuProcessStop: wake up pending sync block jobs 2015-04-29 13:11:42 +02:00
qemu_process.h qemu: Connect to guest agent after channel hotplug 2015-04-26 17:19:22 +02:00
qemu_processpriv.h
qemu.conf
test_libvirtd_qemu.aug.in
THREADS.txt Introduce virDomainObjEndAPI 2015-04-24 13:22:45 +02:00