diff options
author | Cédric Le Goater <clg@kaod.org> | 2019-04-18 12:39:41 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2019-04-30 19:35:16 +1000 |
commit | 2bde9b3ec8bdf60788e9e2ce8c07a2f8d6003dbd (patch) | |
tree | d4998665dc62f3c003fbd7e8c28a65651c7ad7ff /arch/powerpc | |
parent | 3fab2d10588e09abd4bd7b9bacce5e4e435993f6 (diff) | |
download | linux-2bde9b3ec8bdf60788e9e2ce8c07a2f8d6003dbd.tar.bz2 |
KVM: Introduce a 'release' method for KVM devices
When a P9 sPAPR VM boots, the CAS negotiation process determines which
interrupt mode to use (XICS legacy or XIVE native) and invokes a
machine reset to activate the chosen mode.
To be able to switch from one interrupt mode to another, we introduce
the capability to release a KVM device without destroying the VM. The
KVM device interface is extended with a new 'release' method which is
called when the file descriptor of the device is closed.
Once 'release' is called, the 'destroy' method will not be called
anymore as the device is removed from the device list of the VM.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions