Skip to content
  • Iustin Pop's avatar
    Move to data-based hvparam checks instead of code · 205ab586
    Iustin Pop authored
    
    
    Currently the hypervisor parameters are checked using hard-coded snippets in
    each hypervisor. However, most parameter checks fall into three cases:
      - file check
      - directory check
      - string value in a set
    
    And the remaining ones are checked using simple functions.
    
    This patch moves to a declarative-style for these parameter checks; in
    hv_base we add the necessary infrastructure for these checks, and the
    above common cases.
    
    This translates into complete removal of the Check/Verify functions for
    the Xen hypervisors, and a drastic reduction for the KVM one (which has
    inter-parameter dependencies and thus can't use a simple table).
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    205ab586