dm: update vRTCT module to support new vLAPIC solution

Emulation of guest lapic ID has been enhanced to
 indicate the topology of vCPU hierarchy.

 This patch refine logic to build virtual RCTC_v1 table
 of guest to adapt above lapic ID changes.

Tracked-On: #6020
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Yonghua Huang
2021-05-25 09:46:58 +08:00
committed by wenlingz
parent 2247aeed69
commit 69808297b1
2 changed files with 86 additions and 101 deletions

View File

@@ -19,7 +19,7 @@
struct rtct_entry {
uint16_t size;
uint16_t format;
uint16_t format_version;
uint32_t type;
uint32_t data[64];
} __packed;