KVM: MMU: make use of ->root_level in reset_rsvds_bits_mask

The reset_rsvds_bits_mask() function can use the guest walker's root level
number instead of using a separate 'level' variable.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
Davidlohr Bueso 2012-03-05 16:53:06 +01:00 • committed by Avi Kivity
commit 4d6931c380