Commit 8c5e74c
KVM: arm64: vgic: Undo work in failed ITS restores
Failed ITS restores should clean up all state restored until the
failure. There is some cleanup already present when failing to restore
some tables, but it's not complete. Add the missing cleanup.
Note that this changes the behavior in case of a failed restore of the
device tables.
restore ioctl:
1. restore collection tables
2. restore device tables
With this commit, failures in 2. clean up everything created so far,
including state created by 1.
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220510001633.552496-5-ricarkol@google.com1 parent a1ccfd6 commit 8c5e74c
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2219 | 2219 | | |
2220 | 2220 | | |
2221 | 2221 | | |
2222 | | - | |
| 2222 | + | |
| 2223 | + | |
2223 | 2224 | | |
| 2225 | + | |
2224 | 2226 | | |
2225 | 2227 | | |
2226 | 2228 | | |
| |||
2485 | 2487 | | |
2486 | 2488 | | |
2487 | 2489 | | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
2488 | 2493 | | |
2489 | 2494 | | |
2490 | 2495 | | |
| |||
2615 | 2620 | | |
2616 | 2621 | | |
2617 | 2622 | | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
2618 | 2626 | | |
2619 | 2627 | | |
2620 | 2628 | | |
| |||
2646 | 2654 | | |
2647 | 2655 | | |
2648 | 2656 | | |
2649 | | - | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
2650 | 2661 | | |
2651 | 2662 | | |
2652 | 2663 | | |
| |||
0 commit comments