Searched hist:bd83c861c0628a64997b7bd95c3bcc2e916baf2e (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/util/ |
H A D | module.c | bd83c861c0628a64997b7bd95c3bcc2e916baf2e Tue Mar 10 09:58:06 CDT 2020 Christian Ehrhardt <christian.ehrhardt@canonical.com> modules: load modules from versioned /var/run dir
On upgrades the old .so files usually are replaced. But on the other hand since a qemu process represents a guest instance it is usually kept around.
That makes late addition of dynamic features e.g. 'hot-attach of a ceph disk' fail by trying to load a new version of e.f. block-rbd.so into an old still running qemu binary.
This adds a fallback to also load modules from a versioned directory in the temporary /var/run path. That way qemu is providing a way for packaging to store modules of an upgraded qemu package as needed until the next reboot.
An example how that can then be used in packaging can be seen in: https://git.launchpad.net/~paelzer/ubuntu/+source/qemu/log/?h=bug-1847361-miss-old-so-on-upgrade-UBUNTU
Fixes: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1847361 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20200310145806.18335-2-christian.ehrhardt@canonical.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
/openbmc/qemu/ |
H A D | configure | bd83c861c0628a64997b7bd95c3bcc2e916baf2e Tue Mar 10 09:58:06 CDT 2020 Christian Ehrhardt <christian.ehrhardt@canonical.com> modules: load modules from versioned /var/run dir
On upgrades the old .so files usually are replaced. But on the other hand since a qemu process represents a guest instance it is usually kept around.
That makes late addition of dynamic features e.g. 'hot-attach of a ceph disk' fail by trying to load a new version of e.f. block-rbd.so into an old still running qemu binary.
This adds a fallback to also load modules from a versioned directory in the temporary /var/run path. That way qemu is providing a way for packaging to store modules of an upgraded qemu package as needed until the next reboot.
An example how that can then be used in packaging can be seen in: https://git.launchpad.net/~paelzer/ubuntu/+source/qemu/log/?h=bug-1847361-miss-old-so-on-upgrade-UBUNTU
Fixes: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1847361 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20200310145806.18335-2-christian.ehrhardt@canonical.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|