vpci_bar_writable()
Generate the writable field for the slice descriptor of a BAR
Synopsis:
#include <qvm/vpci.h>uint32_t vpci_bar_writable(uint32_t const size,
unsigned const flags)Arguments:
- size
- The size of the BAR, in bytes.
- flags
- The bottom bits of the BAR value.
Description:
This function uses the given BAR size (size) and bottom bits of the BAR value (flags) to compute a value that can be stored in the writeable field of the qvm_slice_descriptor for a BAR.
Returns:
The set of bits a guest can write for the register.
Page updated:
