VirtualBox

Ignore:
Timestamp:
Nov 22, 2024 10:48:00 AM (2 months ago)
Author:
vboxsync
Message:

VMM: bugref:10759 Restructure the APIC to allow different backends to be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp

    r106061 r107113  
    3939#include <VBox/vmm/pdmapi.h>
    4040#include <VBox/vmm/pgm.h>
    41 #include <VBox/vmm/apic.h>
     41#include <VBox/vmm/pdmapic.h>
    4242#include <VBox/vmm/em.h>
    4343#include "GIMHvInternal.h"
     
    605605
    606606        case MSR_GIM_HV_TPR:
    607             *puValue = APICHvGetTpr(pVCpu);
     607            *puValue = PDMApicHvGetTpr(pVCpu);
    608608            return VINF_SUCCESS;
    609609
    610610        case MSR_GIM_HV_ICR:
    611             *puValue = APICHvGetIcr(pVCpu);
     611            *puValue = PDMApicHvGetIcr(pVCpu);
    612612            return VINF_SUCCESS;
    613613
     
    630630        case MSR_GIM_HV_APIC_FREQ:
    631631        {
    632             int rc = APICGetTimerFreq(pVM, puValue);
     632            int rc = PDMApicGetTimerFreq(pVM, puValue);
    633633            if (RT_FAILURE(rc))
    634634                return VERR_CPUM_RAISE_GP_0;
     
    772772    {
    773773        case MSR_GIM_HV_TPR:
    774             return APICHvSetTpr(pVCpu, uRawValue);
     774            return PDMApicHvSetTpr(pVCpu, uRawValue);
    775775
    776776        case MSR_GIM_HV_EOI:
    777             return APICHvSetEoi(pVCpu, uRawValue);
     777            return PDMApicHvSetEoi(pVCpu, uRawValue);
    778778
    779779        case MSR_GIM_HV_ICR:
    780             return APICHvSetIcr(pVCpu, uRawValue);
     780            return PDMApicHvSetIcr(pVCpu, uRawValue);
    781781
    782782        case MSR_GIM_HV_GUEST_OS_ID:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette