This adds a sanity check for the value received from kvm_read. Test will fail if value is different from the expected one.
This derived from work in D23776
Differential D23783
lib/libkvm: add kvm_read test alfredo on Feb 21 2020, 4:38 PM. Authored by Tags Referenced Files
Details
This adds a sanity check for the value received from kvm_read. Test will fail if value is different from the expected one. This derived from work in D23776 run TestSuite on powerpc64 and amd64
Diff Detail
Event TimelineComment Actions One thing that isn't clear is why this sanity check is needed. Is this being specifically for platform integration issue with PowerPC64, or is there another better reason for why this needs to be done given the API? If for the latter reason and the item is well-documented, please add it. If not, this doesn't seem to serve much value and might be better implemented as a platform-specific regression test. Please test this on amd64 as well as a sanity check, second.
Comment Actions I sent an update to my previous comment that I wanted to note via email as well for clarity. I included it above.
Comment Actions I added the test because while creating D23776 I initially prevented panic but while trying to understand the data returned I figured out the initial solution was completelly wrong. So I think a sanity check of the value would help us to quickly detect regression on both kvm_read and /dev/kmem read consequently. As suggested, I will rework this as a new test case. It looks like the variable is not platform specific. I will double check the results on amd64.
Comment Actions Hi @ngie are you ok with the new "kvm_read_test" test?
|