Wait the state Connect of the frontend before connect the backend.
PATCH 1/1 Wait the state Connect of the frontend before connect the backend.
From: Anthony PERARD <[email protected]>
The frontend of the framebuffer set a value (request-abs-pointer) and go to the state Connected. The backend must read this value only when the frontend has the state Connected.
--- hw/xen_backend.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
hw/xen_backend.c +1 -2
@@ -411,8 +411,7 @@ static int xen_be_try_connect(struct XenDevice *xendev) {int rc =0 ; -if (xendev->fe_state != XenbusStateInitialised && - xendev->fe_state != XenbusStateConnected) { +if (xendev->fe_state != XenbusStateConnected) {if (xendev->ops->flags &DEVOPS_FLAG_IGNORE_STATE ) {xen_be_printf (xendev,2 ,"frontend not ready, ignoring\n" ); }else {
Quoted 6 lines · On 05/17/2010 10:18 AM, [email protected] wrote:
From: Anthony PERARD <[email protected]>
The frontend of the framebuffer set a value (request-abs-pointer) and go to the state Connected. The backend must read this value only when the frontend has the state Connected.
Thanks for looking at this, I'll try it out.
J
Quoted 26 lines
--- hw/xen_backend.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)hw/xen_backend.c +1
-2@@ -411,8 +411,7 @@ static int xen_be_try_connect(struct XenDevice *xendev) {int rc =0 ; -if (xendev->fe_state != XenbusStateInitialised && - xendev->fe_state != XenbusStateConnected) { +if (xendev->fe_state != XenbusStateConnected) {if (xendev->ops->flags &DEVOPS_FLAG_IGNORE_STATE ) {xen_be_printf (xendev,2 ,"frontend not ready, ignoring\n" ); }else {_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · On 05/17/2010 10:18 AM, [email protected] wrote:
From: Anthony PERARD <[email protected]>
The frontend of the framebuffer set a value (request-abs-pointer) and go to the state Connected. The backend must read this value only when the frontend has the state Connected.
This works well. It should go into git.
(Anthony: you'll need to append a "Signed-off-by:" line to be strictly complete.)
J
Quoted 26 lines
--- hw/xen_backend.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)hw/xen_backend.c +1
-2@@ -411,8 +411,7 @@ static int xen_be_try_connect(struct XenDevice *xendev) {int rc =0 ; -if (xendev->fe_state != XenbusStateInitialised && - xendev->fe_state != XenbusStateConnected) { +if (xendev->fe_state != XenbusStateConnected) {if (xendev->ops->flags &DEVOPS_FLAG_IGNORE_STATE ) {xen_be_printf (xendev,2 ,"frontend not ready, ignoring\n" ); }else {_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [PATCH] Wait the state Connect of the frontend before connect the backend. [and 1 more messages]
[email protected] writes ("[Xen-devel] [PATCH] Wait the state Connect of the frontend before connect the backend."):
Quoted 3 lines
The frontend of the framebuffer set a value (request-abs-pointer) and go to the state Connected. The backend must read this value only when the frontend has the state Connected.
Thanks for this patch. I've applied it to xen-unstable and will backport it to 4.0. Thanks also to Jeremy for testing.
In general you should include a Signed-Off-By line like this
except with your name and email address. This indicates that you are certifying the code as suitable (copyright-wise and so on) for inclusion in Xen. You can find the precise meaning in the Linux upstream kernel tree (Documentation/SubmittingPatches, copy below).
In this case, and since your patch was so small, I took your message to grant the relevant permissions.
Thanks,
Ian.
Quoted 1 line
From
Documentation/SubmittingPatches:
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.