Bug 2175598
Summary: | Fail to run systemtap examples | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Han Han <hhan> |
Component: | libvirt | Assignee: | Virtualization Maintenance <virt-maint> |
libvirt sub component: | General | QA Contact: | Virtualization Bugs <virt-bugs> |
Status: | CLOSED WONTFIX | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | pkrempa, virt-maint |
Version: | 9.3 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-03-06 11:41:25 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Han Han
2023-03-06 02:47:38 UTC
Looking at the kernel source I've noticed that the 'vmsa' struct is inside the 'sev_es' member of 'struct vcpu_svm' which is in the context of the script accessed as $svm. Could you please try updating the script to say: dump_vmsa($svm->sev_es->vmsa) The 'vmsa' struct was moved out in kernel commit: commit b67a4cc35c9f726999fa29880713ce72d4e39e8d Author: Peter Gonda <pgonda> Date: Thu Oct 21 10:42:59 2021 -0700 KVM: SEV: Refactor out sev_es_state struct Move SEV-ES vCPU metadata into new sev_es_state struct from vcpu_svm. I don't think it's feasible for libvirt to try to keep that file working as it's referencing specific line(!!!!!) of kernel source code. In this case also a different change broke it. (In reply to Peter Krempa from comment #1) > Looking at the kernel source I've noticed that the 'vmsa' struct is inside > the 'sev_es' member of 'struct vcpu_svm' which is in the context of the > script accessed as $svm. > > Could you please try updating the script to say: > > dump_vmsa($svm->sev_es->vmsa) It works after updating to this line: ➜ ~ stap /usr/share/doc/libvirt-docs/examples/systemtap/amd-sev-es-vmsa.stp Running In upstream we came to the conclusion that bugs against this file are invalid as it's just an example which in most cases is expected to be editted. We'll be adding the following disclaimer to emphasisze that: +# NOTE: This directly references specific structures and places in the +# kernel source code. It is expected that this example will need to be +# editted to match the kernel you intend to run it against. |