libvirt/src/qemu
Martin Kletzander 45ad1adb4a qemu: Reject unsupported tuning in session mode
When domain is started with setting that cannot be done, i.e. those
that require cgroups, there is no error reported and it succeeds
without any message whatsoever.

When setting with API, virsh, an error is reported, but only due to
the fact that no cgroups are mounted (priv->cgroup == NULL).

Given the above it seems reasonable to reject such unsupported
settings.

This patch effectively changes the error message from:

$ virsh -c qemu:///session schedinfo dummy
Scheduler      : Unknown
error: Requested operation is not valid: cgroup CPU controller is not mounted

to:

$ virsh -c qemu:///session schedinfo dummy
Scheduler      : Unknown
error: Operation not supported: CPU tuning is not available in session mode

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1023366

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2014-03-06 15:29:07 +01:00
..
libvirtd_qemu.aug qemu: Fix augeas support for migration ports 2013-10-18 18:30:13 +02:00
MIGRATION.txt qemu: Implement migration job phases 2011-07-27 08:45:09 -06:00
qemu_agent.c qemuAgentDispose: Reset lastError 2013-12-04 14:43:54 -07:00
qemu_agent.h qemu_agent: Move updater function for VCPU hotplug into qemu_agent.c 2013-07-31 14:25:43 +02:00
qemu_bridge_filter.c maint: avoid 'const fooPtr' in qemu 2013-10-14 14:34:38 -06:00
qemu_bridge_filter.h maint: avoid 'const fooPtr' in qemu 2013-10-14 14:34:38 -06:00
qemu_capabilities.c util: make it easier to grab only regular command exit 2014-03-03 12:40:32 -07:00
qemu_capabilities.h qemu: Add USB keyboard capability 2014-02-19 09:16:31 +01:00
qemu_cgroup.c util: Add one argument for several scsi utils 2014-01-30 15:48:28 +08:00
qemu_cgroup.h Auto-detect existing cgroup placement 2013-07-23 22:46:31 +01:00
qemu_command.c qemu: Reject unsupported tuning in session mode 2014-03-06 15:29:07 +01:00
qemu_command.h qemu: snapshot: Add support for external active snapshots on gluster 2014-02-14 11:07:29 +01:00
qemu_conf.c conf: Move qemuSnapshotDiskGetActualType to virDomainSnapshotDiskGetActualType 2014-02-14 10:47:56 +01:00
qemu_conf.h add 'driver' info to used_by 2014-03-04 12:24:13 +00:00
qemu_domain.c qemu: Use virtio network device for aarch64/virt 2014-02-19 10:46:10 -05:00
qemu_domain.h qemu: Implement VIR_DOMAIN_TAINT_HOOK 2014-02-17 11:38:15 +01:00
qemu_driver.c qemu: Reject unsupported tuning in session mode 2014-03-06 15:29:07 +01:00
qemu_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_hostdev.c add 'driver' info to used_by 2014-03-04 12:24:13 +00:00
qemu_hostdev.h qemu: default to vfio for nodedev-detach 2013-12-03 11:58:26 +02:00
qemu_hotplug.c network: Introduce network hooks 2014-02-18 14:46:49 +01:00
qemu_hotplug.h qemu: hotplug: Mark 2 private functions as static 2013-12-05 15:34:54 -05:00
qemu_hotplugpriv.h qemu: Let tests override waiting time for device unplug 2013-08-26 16:09:55 +02:00
qemu_migration.c qemu: Implement VIR_DOMAIN_TAINT_HOOK 2014-02-17 11:38:15 +01:00
qemu_migration.h qemu: Implement support for VIR_MIGRATE_PARAM_LISTEN_ADDRESS 2013-10-11 11:08:55 +02:00
qemu_monitor_json.c qemu: monitor: Provide more information in generic block job error 2014-03-05 15:08:56 +01:00
qemu_monitor_json.h qemu: Change return type of qemuMonitorGetGuestCPU() 2013-11-12 19:35:51 +01:00
qemu_monitor_text.c Convert 'int i' to 'size_t i' in src/qemu files 2013-07-10 17:55:15 +01:00
qemu_monitor_text.h qemu: Use bool instead of int in qemuMonitorSetCPU APIs 2013-06-07 15:57:03 +02:00
qemu_monitor.c qemu: Fix crash in virDomainMemoryStats with old qemu 2014-02-06 11:29:29 +01:00
qemu_monitor.h Fix migration with QEMU 1.6 2013-11-15 13:50:47 +01:00
qemu_process.c network: Introduce network hooks 2014-02-18 14:46:49 +01:00
qemu_process.h qemu_process: Make qemuProcessReadLog() more versatile and reusable 2013-09-25 13:50:56 +02:00
qemu_processpriv.h qemu: Export qemuProcessHandleDeviceDeleted for tests 2013-08-26 16:09:55 +02:00
qemu.conf maint: fix grammar in conf file 2014-02-05 10:40:14 -07:00
test_libvirtd_qemu.aug.in qemu: Fix augeas support for migration ports 2013-10-18 18:30:13 +02:00
THREADS.txt Remove qemuDriverLock from almost everywhere 2013-02-13 11:10:30 +00:00