]> xenbits.xensource.com Git - libvirt.git/commit
xen: Fix scheduler setting problems
authorDaniel Veillard <veillard@redhat.com>
Tue, 17 Aug 2010 16:30:17 +0000 (18:30 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 18 Aug 2010 15:32:31 +0000 (17:32 +0200)
commit1dcd5ab98930a1b9485378ecb47839d4e37506bf
treea50f12dc9f6b8e589b4743c7e84b75be826e4a11
parent47c74e8264ba4ddbee5dd93be6cc21dd87539bf3
xen: Fix scheduler setting problems

Doing `virsh schedinfo rhel5u3 --cap 65535' the hypervisor does the
call, but does not change the value nor raise an error. Best is just to
consider it's not in the allowed values. The problem is that the error
won't be output since the xend driver will then be called and raise an
error

    error: this function is not supported by the hypervisor: unsupported
    in xendConfigVersion < 4

which will override the useful information from
xenUnifiedDomainSetSchedulerParameters(). So best is to also invert the
order in which the xen sub-drivers are called.

* src/xen/xen_hypervisor.c: mark 65535 cap value as out of bound
* src/xen/xen_hypervisor.c: reverse the order of the calls to the xen
  sub drivers to get the error message if needed
src/xen/xen_driver.c
src/xen/xen_hypervisor.c