[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.6] vscsiif.h: replace PAGE_SIZE with VSCSIIF_PAGE_SIZE



commit 03da413a6465f06a2b2854f2b2645f3cae5cbc9c
Author:     Stefano Stabellini <sstabellini@xxxxxxxxxx>
AuthorDate: Tue Oct 25 17:19:36 2016 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Oct 25 17:19:36 2016 +0200

    vscsiif.h: replace PAGE_SIZE with VSCSIIF_PAGE_SIZE
    
    Do not reference PAGE_SIZE directly: it could be undefined, or it could
    have different values in the frontend or in the backend.
    
    Define VSCSIIF_PAGE_SIZE as 4096, assuming all users of vscsiif.h have
    4K page granularity. Replace PAGE_SIZE with VSCSIIF_PAGE_SIZE.
    
    Signed-off-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
    master commit: d93539cc486aa6022195305dbea5fe12f90b69fe
    master date: 2016-10-21 09:58:16 +0100
---
 xen/include/public/io/vscsiif.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen/include/public/io/vscsiif.h b/xen/include/public/io/vscsiif.h
index 7a1db05..ff5496d 100644
--- a/xen/include/public/io/vscsiif.h
+++ b/xen/include/public/io/vscsiif.h
@@ -179,6 +179,7 @@
  */
 #define VSCSIIF_MAX_COMMAND_SIZE         16
 #define VSCSIIF_SENSE_BUFFERSIZE         96
+#define VSCSIIF_PAGE_SIZE              4096
 
 struct scsiif_request_segment {
     grant_ref_t gref;
@@ -187,7 +188,7 @@ struct scsiif_request_segment {
 };
 typedef struct scsiif_request_segment vscsiif_segment_t;
 
-#define VSCSIIF_SG_PER_PAGE (PAGE_SIZE / sizeof(struct scsiif_request_segment))
+#define VSCSIIF_SG_PER_PAGE (VSCSIIF_PAGE_SIZE / sizeof(struct 
scsiif_request_segment))
 
 /* Size of one request is 252 bytes */
 struct vscsiif_request {
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.6

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.