[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host |
Date: |
Mon, 10 Sep 2012 13:29:30 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
Il 10/09/2012 13:06, Peter Lieven ha scritto:
>
> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_entry: vcpu 0
> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_exit: reason MSR_READ rip
> 0x11478 info 0 0
> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_msr: msr_read 194 = 0x0 (#GP)
> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_inj_exception: #GP (0x0)
> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_entry: vcpu 0
> qemu-kvm-1.0.1-5107 [007] 410771.148000: kvm_exit: reason TRIPLE_FAULT
> rip 0x11478 info 0 0
Memory controller MSR:
static float getNHMmultiplier(void)
{
unsigned int msr_lo, msr_hi;
float coef;
/* Find multiplier (by MSR) */
/* First, check if Flexible Ratio is Enabled */
rdmsr(0x194, msr_lo, msr_hi);
if((msr_lo >> 16) & 1){
coef = (msr_lo >> 8) & 0xFF;
} else {
rdmsr(0xCE, msr_lo, msr_hi);
coef = (msr_lo >> 8) & 0xFF;
}
return coef;
}
Looks like we need to emulate it since memtest only looks at the cpuid
to detect an integrated memory controller. What does this return for you?
dd if=/dev/cpu/0/msr skip=$((0x194)) bs=8 count=1 | xxd
dd if=/dev/cpu/0/msr skip=$((0xCE)) bs=8 count=1 | xxd
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Avi Kivity, 2012/09/06
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Peter Lieven, 2012/09/10
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host,
Paolo Bonzini <=
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Peter Lieven, 2012/09/10
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Peter Lieven, 2012/09/10
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Paolo Bonzini, 2012/09/10
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Gleb Natapov, 2012/09/10
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Peter Lieven, 2012/09/10
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Avi Kivity, 2012/09/10
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Peter Lieven, 2012/09/10
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Peter Lieven, 2012/09/13
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Paolo Bonzini, 2012/09/13
- Re: [Qemu-devel] memtest 4.20+ does not work with -cpu host, Gleb Natapov, 2012/09/13