Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HV: store the vbar base address in vbar's reg member
We added "union pci_bar_reg reg" to struct pci_bar in previous commit, but only pci_pdev uses it and pci_vdev does not use it. Starting from this commit, pci_vdev will use it: In init_vdev_pt(), copy pbar's reg's flags portion to corresponding vbar's reg. When guest updates the vbar base address, the corresponding vbar reg's base address will also be updated, so that in subsequent commits, we can eventually remove the base member in struct pci_bar. Rename local variable new_bar to base in vdev_pt_write_vbar Tracked-On: #3241 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
- Loading branch information
Showing
1 changed file
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters