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

xen/arch/x86/boot/head.S: Re-enable SMI in sl_stub #8

Open
wants to merge 1 commit into
base: tb-xen-txt
Choose a base branch
from

Conversation

Stojek139808
Copy link

Signed-off-by: Kacper Stojek [email protected]

/*
* Enable SMI with GETSEC[SMCTRL] which were disabled by SENTER.
*/
pushl %ebx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have stack after GETSEC[SENTER]?

According to SDM, AC.BASE is copied from EBX to EBP, so we probably don't have to save this value.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we don't have a stack, but the assumption was that it will be added in other tasks, together with other code. Which is why i just stored bx like in the original source.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But stack is already being set up later, after jumping into original entry point. Why do it twice?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because skipping it later was also supposed to be changed in other task. And it was done in other task, together with this change, making this PR obsolete, like it is said in a comment below.

Comment on lines +408 to +409
xorl %ebx,%ebx
movl $7,%eax
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These probably should be #defined somewhere instead of using magic numbers.

Base automatically changed from MLE-header to master September 4, 2022 10:16
@miczyg1 miczyg1 changed the base branch from master to tb-xen-txt September 4, 2022 10:51
@miczyg1
Copy link
Member

miczyg1 commented Sep 4, 2022

THis has been already ported with full sl_stub.S file here: https://github.com/3mdeb/xen/pull/7/files#diff-1b3eb478ddc3607c91f2796e07805aa689f388f250850a2b581831c83cb7e95dR129

So I think this MR becomes obsolete now...

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.

4 participants