Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable the kvm_legacy to fetch multicpu reg info #994

Merged
merged 9 commits into from Nov 3, 2021

Conversation

npc1054657282
Copy link
Contributor

In kvm_legacy mode, the vmi_get_vcpureg API can only fetch reg info with cpu 0 because the inner implement does not use the argument "vcpu".
The patch make up the flaw.

The variable in subdirectories cannot be found in parent subdirectories. That is, even if LibvmiRequest is found, HAVE_LIBVMI_REQUEST cannot be defined in config.h.
It is a first-aid fix and the coding in cmake is not very pretty after the fix. I think the /CMakeLists.txt , /libvmi/CMakeLists.txt , and /cmake/modules/*.cmake should be optimized throughly in the future.
In kvm_legacy.c, there is a function 'ceil', which needs the library 'libm'. 
It seems that, without HAVE_LIBVMI_REQUEST, the branch to the function 'ceil' will be optimized by gcc. When I use cmake to test kvm_legacy with HAVE_LIBVMI_REQUEST(after I fix another bug), I meet the error with unreferenced symbol 'ceil'. To add the link library 'libm' can resolve it.
bug fix: set HAVE_LIBVMI_REQUEST ON while find it
update to latest virsion
In kvm_legacy mode, the vmi_get_vcpureg API can only fetch reg info with cpu 0 because the inner implement unuse the argument "vcpu".
The patch make up the flaw.
The commit is accidently done. Undo it.
@tklengyel tklengyel merged commit 35ed903 into libvmi:master Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants