Skip to content
Commit c2bae893 authored by Mathias Krause's avatar Mathias Krause Committed by Paolo Bonzini
Browse files

KVM: VMX: Use proper types to access const arrays



Use a const pointer type instead of casting away the const qualifier
from const arrays. Keep the pointer array on the stack, nonetheless.
Making it static just increases the object size.

Signed-off-by: default avatarMathias Krause <minipli@googlemail.com>
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
parent a25eb114
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment