Commit 836cb91
committed
fix(kvm): copy IO data before calling handle_pv_timer_config
The data slice borrows from the KVM run buffer (self.vcpu_fd), so
calling self.handle_pv_timer_config(data) would create a conflicting
mutable borrow. Copy data to a local Vec before calling the method.
Signed-off-by: danbugs <danilochiarlone@gmail.com>1 parent a834801 commit 836cb91
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
0 commit comments