Skip to content
Snippets Groups Projects
  1. Mar 23, 2022
    • luofei's avatar
      i386: Set MCG_STATUS_RIPV bit for mce SRAR error · cb48748a
      luofei authored
      
      In the physical machine environment, when a SRAR error occurs,
      the IA32_MCG_STATUS RIPV bit is set, but qemu does not set this
      bit. When qemu injects an SRAR error into virtual machine, the
      virtual machine kernel just call do_machine_check() to kill the
      current task, but not call memory_failure() to isolate the faulty
      page, which will cause the faulty page to be allocated and used
      repeatedly. If used by the virtual machine kernel, it will cause
      the virtual machine to crash
      
      Signed-off-by: default avatarluofei <luofei@unicloud.com>
      Message-Id: <20220120084634.131450-1-luofei@unicloud.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      cb48748a
    • Philippe Mathieu-Daudé's avatar
      target/i386/kvm: Free xsave_buf when destroying vCPU · dcebbb65
      Philippe Mathieu-Daudé authored
      
      Fix vCPU hot-unplug related leak reported by Valgrind:
      
        ==132362== 4,096 bytes in 1 blocks are definitely lost in loss record 8,440 of 8,549
        ==132362==    at 0x4C3B15F: memalign (vg_replace_malloc.c:1265)
        ==132362==    by 0x4C3B288: posix_memalign (vg_replace_malloc.c:1429)
        ==132362==    by 0xB41195: qemu_try_memalign (memalign.c:53)
        ==132362==    by 0xB41204: qemu_memalign (memalign.c:73)
        ==132362==    by 0x7131CB: kvm_init_xsave (kvm.c:1601)
        ==132362==    by 0x7148ED: kvm_arch_init_vcpu (kvm.c:2031)
        ==132362==    by 0x91D224: kvm_init_vcpu (kvm-all.c:516)
        ==132362==    by 0x9242C9: kvm_vcpu_thread_fn (kvm-accel-ops.c:40)
        ==132362==    by 0xB2EB26: qemu_thread_start (qemu-thread-posix.c:556)
        ==132362==    by 0x7EB2159: start_thread (in /usr/lib64/libpthread-2.28.so)
        ==132362==    by 0x9D45DD2: clone (in /usr/lib64/libc-2.28.so)
      
      Reported-by: default avatarMark Kanda <mark.kanda@oracle.com>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Tested-by: default avatarMark Kanda <mark.kanda@oracle.com>
      Message-Id: <20220322120522.26200-1-philippe.mathieu.daude@gmail.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      dcebbb65
  2. Mar 22, 2022
Loading