Xen 2016/09/05
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJXzcCjAAoJEIlPj0hw4a6QUJsP/2seJDo0RUwnhLyLtTTjrjGE i2HhDOBs/BtNObimFsqk4cMYexKj/E6yFk0etbjzbZegwglafi2ixWnUY6T2eAvP iPIYg0Nhu6JY48HQcHJp1EKSHQ98AqiH+2iJUFaMt6XGiLtnTM7tH+ygK9Cz8aBy STn/HV9MSwMHozKkK41iHA4mn2MvDhzVhpyMv5VFaGn9WWPpoCtyVbl2yQZs03RQ pduAzjJ/JTAX1pnhuK4aNqcqrXj+EVgWdghefppKBkbgE7t4iNF6t5DnhdY+mSOH KGNhbZ8Xrk4WxWpJVtIBAc49c1mV4qbqU38OTulMPKh/4eHaO5rldPLX0jd7NkPZ z6SL1/Djcpz2vRhXjygi9RBZhwSPkcgIq8Lu5i11TZLFsrO9BCPWknJBHd1pVp3t uSz11F5kZYadJCrubxT7sG/LcvFuUU37OycIk/v2218fBxUW7qWkV52V8nUsH2Ed H1wekJXaNHIoxQjYBUa1a8O+0/zDiqJqI9AHS8M3Jjk6NMGJpgxCDFu0hYTK4lr1 UQVkMEZgv07HM48VMXxu7L/Of250StB97wAVVJtlnUhWmLeX/AyJGfooGiyqz5fZ 6LfpQ9KpdIYSKqUmTi4s6kJ8HX+EpI4q/nVT3Iu4Z3n26fqhtkxpJ/ZNrFxawcyW pcdpgAYc9R6KagIFHM7U =LCFO -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20160905' into staging Xen 2016/09/05 # gpg: Signature made Mon 05 Sep 2016 19:59:47 BST # gpg: using RSA key 0x894F8F4870E1AE90 # gpg: Good signature from "Stefano Stabellini <stefano.stabellini@eu.citrix.com>" # Primary key fingerprint: D04E 33AB A51F 67BA 07D3 0AEA 894F 8F48 70E1 AE90 * remotes/sstabellini/tags/xen-20160905: xen: use native disk xenbus protocol if possible Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
1fd66154fd
@ -976,14 +976,16 @@ static int blk_connect(struct XenDevice *xendev)
|
||||
blkdev->feature_persistent = !!pers;
|
||||
}
|
||||
|
||||
blkdev->protocol = BLKIF_PROTOCOL_NATIVE;
|
||||
if (blkdev->xendev.protocol) {
|
||||
if (strcmp(blkdev->xendev.protocol, XEN_IO_PROTO_ABI_X86_32) == 0) {
|
||||
blkdev->protocol = BLKIF_PROTOCOL_X86_32;
|
||||
}
|
||||
if (strcmp(blkdev->xendev.protocol, XEN_IO_PROTO_ABI_X86_64) == 0) {
|
||||
blkdev->protocol = BLKIF_PROTOCOL_X86_64;
|
||||
}
|
||||
if (!blkdev->xendev.protocol) {
|
||||
blkdev->protocol = BLKIF_PROTOCOL_NATIVE;
|
||||
} else if (strcmp(blkdev->xendev.protocol, XEN_IO_PROTO_ABI_NATIVE) == 0) {
|
||||
blkdev->protocol = BLKIF_PROTOCOL_NATIVE;
|
||||
} else if (strcmp(blkdev->xendev.protocol, XEN_IO_PROTO_ABI_X86_32) == 0) {
|
||||
blkdev->protocol = BLKIF_PROTOCOL_X86_32;
|
||||
} else if (strcmp(blkdev->xendev.protocol, XEN_IO_PROTO_ABI_X86_64) == 0) {
|
||||
blkdev->protocol = BLKIF_PROTOCOL_X86_64;
|
||||
} else {
|
||||
blkdev->protocol = BLKIF_PROTOCOL_NATIVE;
|
||||
}
|
||||
|
||||
blkdev->sring = xengnttab_map_grant_ref(blkdev->xendev.gnttabdev,
|
||||
|
Loading…
Reference in New Issue
Block a user