Skip to content
Snippets Groups Projects
  1. Mar 10, 2025
    • Yichong Tang's avatar
      hv: hyperv: Add hyperv page destory function · 27aee66f
      Yichong Tang authored
      
      In current code process, hyperv data in struct vm_arch is never cleared
      during VM shutdown and is retained to next VM launch. As the enabled
      bit of hypercall_page msr is not clear, hypercall page might cause fatal
      error such as Windows VM BSOD during VM restart and memory
      remapping. Hyperv page destory function can ensure hyperv page is
      destory during each VM shutdown so hyperv related config such as
      hypercall page is established correctly during each VM launch.
      
      Tracked-On: #8755
      Signed-off-by: default avatarYichong Tang <yichong.tang@intel.com>
      27aee66f
  2. Mar 07, 2025
  3. Feb 24, 2025
  4. Dec 19, 2024
  5. Nov 04, 2024
  6. Oct 09, 2024
  7. Sep 22, 2024
  8. Sep 18, 2024
    • Gao, Shiqing's avatar
      hv: release: fix the compilation error · 9d7f14e7
      Gao, Shiqing authored
      
      This patch fixes the following compilation error when including
      `release/uart16550.c` into the module test.
      
      ./release/uart16550.c:14:6: error: conflicting types for ‘get_pio_dbg_uart_cfg’; have ‘bool(uint64_t *, uint64_t *)’ {aka ‘_Bool(long unsigned int *, long unsigned int *)’}
         14 | bool get_pio_dbg_uart_cfg(__unused uint64_t *pio_address, __unused uint64_t *nbytes) {
            |      ^~~~~~~~~~~~~~~~~~~~
      
      ./include/debug/uart16550.h:142:6: note: previous declaration of ‘get_pio_dbg_uart_cfg’ with type ‘bool(uint16_t *, uint32_t *)’ {aka ‘_Bool(short unsigned int *, unsigned int *)’}
        142 | bool get_pio_dbg_uart_cfg(uint16_t *pio_address, uint32_t *nbytes);
            |      ^~~~~~~~~~~~~~~~~~~~
      
      Tracked-On: #861
      
      Signed-off-by: default avatarGao, Shiqing <shiqing.gao@intel.com>
      9d7f14e7
  9. Sep 17, 2024
  10. Sep 14, 2024
  11. Sep 12, 2024
  12. Sep 11, 2024
  13. Sep 09, 2024
    • Jiaqing Zhao's avatar
      hv: handle reboot from Service VM properly · eae66826
      Jiaqing Zhao authored
      
      Service VM may write 0x6 to port 0xcf9 to trigger a warm reset, but
      current hypervisor always performs a cold reset by writing 0xE to CF9.
      Hypervisor should reboot the system in the same mode as Service VM
      specified. Specific OS features (like linux pstore) requires warm
      reset to keep data across reboot.
      
      The behavior of hv console's reboot command (cold reset) remains
      unchanged.
      
      Tracked-On: #8539
      Signed-off-by: default avatarJiaqing Zhao <jiaqing.zhao@linux.intel.com>
      Reviewed-by: default avatarJunjie Mao <junjie.mao@intel.com>
      eae66826
    • Haiwei Li's avatar
      hv: cpuid: expose CPUID.EAX=07H subleaf to VMs · 17c4ce75
      Haiwei Li authored
      
      Per SDM, VPDPBUSD/VPDPBUSDS/VPDPWSSD/VPDPWSSDS instructions depend on
      CPUID Feature Flag 'AVX-VNNI, AVX512_VNNI, AVX512VL'. 'AVX512_VNNI' and
      'AVX512VL' are already exposed to any VM.
      
      'AVX-VNNI' is in CPUID.(EAX=07H,ECX=1):EAX.AVX-VNNI[bit 4]. This patch
      is to expose all the CPUID.EAX=07H subleaf features to VMs.
      
      Mask corresponding bits if want to disable some features in the future.
      
      Tracked-On: #8710
      Reviewed-by: default avatarFei Li <fei1.li@intel.com>
      Signed-off-by: default avatarHaiwei Li <haiwei.li@intel.com>
      17c4ce75
  14. Sep 03, 2024
  15. Aug 30, 2024
    • Haoyu Tang's avatar
      local_gva2gpa_common: optimize code · fa1f2ba7
      Haoyu Tang authored
      
      Remove unreachable code branch in line 163:
      if CR0 enabled WP, supervisor-mode writing a read-only page have
      been checked in line 109.
      
      Merge redundant checking:
      if smap is enabled, supervisor-mode can't access user-mode address
      when eflags.ac disabled.
      
      Tracked-On: #8708
      Signed-off-by: default avatarHaoyu Tang <haoyu.tang@intel.com>
      fa1f2ba7
  16. Aug 26, 2024
  17. Aug 23, 2024
  18. Aug 20, 2024
  19. Aug 19, 2024
  20. Aug 16, 2024
    • Yuan Lu's avatar
      hv: hypercall: change condition for hcall_get_cpu_pm_state · 95bfc87e
      Yuan Lu authored
      
      After rebooting guest, CPPC initialization failed because _CST and _CPC
      missed in DSDT table. When writing _CST and _CPC in DSDT table, it gets
      cx_cnt or px_cnt as condition. Getting cx_cnt or px_cnt triggers
      the hypercall hcall_get_cpu_pm_state. The hypercall hcall_get_cpu_pm_state
      uses VM_CREATED as VM state's condition. While, after rebooting guest,
      the VM state is VM_PAUSED when writing _CST and _CPC in DSDT table.
      Therefore, changing VM state's condition from VM_CREATED to VM_CREATED or
      VM_PAUSED for hcall_get_cpu_pm_state can solve the CPPC initialization
      failed issue after rebooting guest.
      
      Tracked-On: #8695
      Signed-off-by: default avatarYuan Lu <yuan.y.lu@intel.com>
      Reviewed-by: default avatarFei Li <fei1.li@intel.com>
      95bfc87e
  21. Aug 15, 2024
  22. Aug 12, 2024
  23. Aug 05, 2024
  24. Aug 01, 2024
    • Haiwei Li's avatar
      doc: add module design for some defines in hwmgmt_page · fa2b8fcf
      Haiwei Li authored
      
      GAI Tooling Notice: These contents may have been developed with support from one
      or more generative artificial intelligence solutions.
      
      ACRN hypervisor is decomposed into a series of components and modules. The
      module design in hypervisor is to add inline doxygen style comments above
      functions, macros, structures, etc.
      
      This patch is to add comments for some elements in hwmgmt_page module.
      
      Tracked-On: #8665
      
      Signed-off-by: default avatarHaiwei Li <haiwei.li@intel.com>
      fa2b8fcf
    • Haiwei Li's avatar
      doc: add custom commands in acrn.doxyfile · cb431d9d
      Haiwei Li authored
      
      `consistency` is used to describe the consistency rule and `alignment`
      is used to describe the align info.
      
      These two are used to enhance the documentation inside a struct comment
      block.
      
      Signed-off-by: default avatarGao, Shiqing <shiqing.gao@intel.com>
      cb431d9d
  25. Jul 30, 2024
  26. Jul 18, 2024
Loading