mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-23 22:25:18 +00:00
c2ae380503
The current code was always considering 0xffffffff being written to the register as a sign it was expecting to get the size, hence the BAR reprogramming detection was stating this case was not a reprogramming case. Problem is, if the value 0xffffffff is directed at a 64bits BAR, this might be the high or low part of a 64bits address which is meant to be the new address of the BAR, which means we would miss the detection of the BAR being reprogrammed here. This commit improves the code using finer granularity checks in order to detect this corner case correctly. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |