-
Notifications
You must be signed in to change notification settings - Fork 98
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
AA/attester: support to read CCEL for kernel older than v6.4 #860
Conversation
linux kernels older than v6.4 does not support to read CCEL from acpi sysfs. This patch supports to read CCEL from dev/mem This is accomplished by reading CCEL's physical address from ACPI table description. Then read the CCEL from /dev/mem. ACPI table to include CCEL patch of linux kernel torvalds/linux@4f855dc Signed-off-by: Xynnn007 <[email protected]>
896acad
to
7c742f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linux kernels older than v6.4 does not support to read CCEL from acpi sysfs.
do you have a particular kernel version in mind? We haven't clearly said how old we support I think going back to ~2 years is already a bit too much, IMO. kata-runtime only supports the configfs-tsm based get quote which implies the minimum version is 6.7.
Yes. We want to run some components, s.t. AA on aliyun OS which is based on kernel older than 6.7 now. The latest patch of config-tsm things are not supported. btw, this is not directly related to kata. |
What's the version you are targeting? |
It does not make sense to say the kernel version. We use a relatively old kernel version based on 5.10, but did a lot of patches on that. |
The reason for my question is that 6.2 added the tdx guest driver so I guess there's a short time window in history where this could be justified somehow but sounds like that is not the case here.
I think you need to add torvalds/linux@4f855dc to it |
right. We have pushed forward this, but it takes some time. Before that, i think it makes sense to get this merge. This will not be related to tdx guest device but only acpi table of guest memory. |
IMO, merging this is not justified. |
It might not be good to include the code in CoCo directly. |
@mythi This patch will not break any of current behavior. |
I'm not concerned about that. The problem is that the upstream project needs to maintain workarounds needed by some special downstream configurations. That's dead code for the official configurations and we don't even know how long this is going to be needed. I agree it's not a lot of code but if we start accepting workarounds it's hard to say no next time a similar case happens. |
linux kernels older than v6.4 does not support to read CCEL from acpi sysfs. This patch supports to read CCEL from dev/mem
This is accomplished by reading CCEL's physical address from ACPI table description. Then read the CCEL from /dev/mem.
ACPI table to include CCEL patch of linux kernel
torvalds/linux@4f855dc