-
Notifications
You must be signed in to change notification settings - Fork 7
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
drivers: xen: gnttab: process gentabs in reverse order #109
Conversation
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.
(XEN) xen-source/xen/common/grant_table.c:1909:d0v0 Expanding d0 \
grant table from 1 to 2 frames
This message is being printed only if Xen is being build in debug mode. So it is not a problem in production mode.
I don't believe that this patch will get into Zephyr mainline. You can try, though.
But as you are trying to include it into rpi5_dev
branch, I have no objections.
Acked-by: Volodymyr Babchuk <[email protected]>
The Linux Kernel has the following:
So, nothing special here really - just a bit faster and less logs. |
This is a better justification than "avoid printing debug logs". I believe, if you'll rewrite the commit message WRT to this, it would be much better. |
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.
Also in addition to @lorc comment, please, use gnttab
(grant table) instead of gentab
7a0e74b
to
c5beeb7
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.
Reviewed-by: Dmytro Firsov <[email protected]>
The Xen extends domain grant tables every time domain requests gnttab basing on gnttab idx. If idx > xen_current_max_gnttab_idx the Xen extends grant table so that idx <= xen_current_max_gnttab_idx. The growing grant tables on every hypercall is a bit costly operation and it also results in the bunch of log messages: (XEN) xen-source/xen/common/grant_table.c:1909:d0v0 Expanding d0 \ grant table from 1 to 2 frames This patch changes gnttab processing from gnttab max_idx to low_idx, so the first hypercall has the largest index, ensuring that the grant table will grow only once. It also reduces number of log messages. Signed-off-by: Grygorii Strashko <[email protected]> Acked-by: Volodymyr Babchuk <[email protected]> Reviewed-by: Dmytro Firsov <[email protected]>
c5beeb7
to
28a74e6
Compare
The Xen extends domain gentab region every time domain requests gentab basing on gentab idx. If idx > xen_current_max_gentab_idx the Xen extends number of gentabs so that idx <= xen_current_max_gentab_idx. As result now when gentabs are requested from gentab low_idx to max_idx Xen is performing gentab extension by 1 and the bunch of log messages is produced:
(XEN) xen-source/xen/common/grant_table.c:1909:d0v0 Expanding d0
grant table from 1 to 2 frames
This patch changes gentab processing from gentab max_idx to low_idx which allows Xen to perform gentab extension only once (to max_idx) and only one message will be produced in the log:
(XEN) xen-source/xen/common/grant_table.c:1909:d0v0 Expanding d0
grant table from 1 to 64 frames