hv: vCAT: propagate vCBM to other vCPUs that share cache with vcpu

Implement the propagate_vcbm() function:
  Set vCBM to to all the vCPUs that share cache with vcpu
  to mimic hardware CAT behavior

Tracked-On: #5917
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Acked-by: Eddie Dong <eddie.dong@Intel.com>
This commit is contained in:
dongshen
2021-09-20 17:58:24 -07:00
committed by wenlingz
parent a7014f4654
commit c0d95558c1
2 changed files with 64 additions and 3 deletions

View File

@@ -148,7 +148,7 @@ static uint32_t nearest_pow2(uint32_t n)
return p;
}
static void get_cache_shift(uint32_t *l2_shift, uint32_t *l3_shift)
void get_cache_shift(uint32_t *l2_shift, uint32_t *l3_shift)
{
uint32_t subleaf;