Skip to content

Probe host capabilities #9

@jpbrucker

Description

@jpbrucker

@anta5010 suggests adding a probing function to the tool, that finds out VM capabilities (PMU, BPs/WPs, SVE, but also default CPU number, GIC versions etc needed for FW table generation). It can be useful for at least two reasons:

  • we wouldn't have to pass fixed config files when in "generate DTB" mode, before launching the VM
  • we could also generate a config file for offline measurements.

KVM doesn't yet export the RMM features register to userspace, but it does provide default values of ID registers with GET_ONE_REG. Getting some features from host platform registers is possible, but KVM and RMM can decide for whatever reason to use different values for guests, so probing by creating a scratch VM is probably the most accurate method at the moment.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions