diff options
author | Sean Christopherson <[email protected]> | 2023-07-28 18:35:34 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2023-08-31 14:08:19 -0400 |
commit | f22b1e8500b449fabc33ca271cd8e91749fa63b4 (patch) | |
tree | 3be59f09e9872d46419fc03c2d062723cb22a23a /lib/memory-notifier-error-inject.c | |
parent | 96316a06700fc93140e7492c9e994045680f7272 (diff) |
KVM: x86/mmu: Handle KVM bookkeeping in page-track APIs, not callers
Get/put references to KVM when a page-track notifier is (un)registered
instead of relying on the caller to do so. Forcing the caller to do the
bookkeeping is unnecessary and adds one more thing for users to get
wrong, e.g. see commit 9ed1fdee9ee3 ("drm/i915/gvt: Get reference to KVM
iff attachment to VM is successful").
Reviewed-by: Yan Zhao <[email protected]>
Tested-by: Yongwei Ma <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions