Bug 62 - static_branch_enable函数不起作用
Summary: static_branch_enable函数不起作用
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Shiloong
QA Contact: shuming
URL:
Whiteboard:
Keywords: Bugfix
Depends on:
Blocks:
 
Reported: 2021-12-10 17:51 UTC by yuanzhi
Modified: 2022-04-15 14:42 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yuanzhi alibaba_cloud_group 2021-12-10 17:51:51 UTC
代码:
DEFINE_STATIC_KEY_FALSE(arm64_has_stage2_fwb_cap);
...

        kvm_info("#1 stage2 fwb caps %ld\n", static_branch_likely(&arm64_has_stage2_fwb_cap));
        static_branch_enable(&arm64_has_stage2_fwb_cap);
        kvm_info("#2 stage2 fwb caps %ld\n", static_branch_likely(&arm64_has_stage2_fwb_cap));
...


[实际结果]:
[79777.547508] kvm [56870]: #1 stage2 fwb caps 0
[79777.554511] kvm [56870]: #2 stage2 fwb caps 0