[Xen-devel] [PATCH 4/4] dmop: Add xendevicemodel_modified_memory_bulk()

2017-04-20 Thread jennifer.herbert
From: Jennifer Herbert This new lib devicemodel call allows multiple extents of pages to be marked as modified in a single call. This is something needed for a usecase I'm working on. The xen side of the modified_memory call has been modified to accept an array of extents. The devicemodel libr

[Xen-devel] [PATCH 2/4] hvm/dmop: Implement copy_{to, from}_guest_buf() in terms of raw accessors

2017-04-20 Thread jennifer.herbert
From: Jennifer Herbert This also allows the usual cases to be simplified, by omitting an unnecessary buf parameters, and because the macros can appropriately size the object. This makes copying to or from a buf that isn't big enough an error. If the buffer isnt big enough, trying to carry on reg

[Xen-devel] [PATCH 3/4] hvm/dmop: Implement copy_{to, from}_guest_buf_offset() helpers

2017-04-20 Thread jennifer.herbert
From: Jennifer Herbert copy_{to,from}_guest_buf() are now implemented using an offset of 0. Signed-off-by: Andrew Cooper Signed-off-by: Jennifer Herbert -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC: Julien Grall --- xen/arch/x86/hvm/dm.c | 48 +-

[Xen-devel] [PATCH 1/4] hvm/dmop: Box dmop_args rather than passing multiple parameters around

2017-04-20 Thread jennifer.herbert
From: Jennifer Herbert No functional change. Signed-off-by: Jennifer Herbert Signed-off-by: Andrew Cooper -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC: Julien Grall --- xen/arch/x86/hvm/dm.c | 47 --- 1 file changed, 28 insertions(+)

[Xen-devel] [PATCH v7 for-4.9 5/5] dmop: Add xendevicemodel_modified_memory_bulk()

2017-04-21 Thread jennifer.herbert
From: Jennifer Herbert This new lib devicemodel call allows multiple extents of pages to be marked as modified in a single call. This is something needed for a usecase I'm working on. The xen side of the modified_memory call has been modified to accept an array of extents. The devicemodel libr

[Xen-devel] [PATCH v7 for-4.9 1/5] hvm/dmop: Box dmop_args rather than passing multiple parameters around

2017-04-21 Thread jennifer.herbert
From: Jennifer Herbert No functional change. Signed-off-by: Jennifer Herbert Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich Reviewed-by: Paul Durrant -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC: Julien Grall --- dm_op now takes a const sturct. --- xen/arch/x86/hvm/d

[Xen-devel] [PATCH v7 for-4.9 4/5] hvm/dmop: Implement copy_{to, from}_guest_buf_offset() helpers

2017-04-21 Thread jennifer.herbert
From: Andrew Cooper copy_{to,from}_guest_buf() are now implemented using an offset of 0. Signed-off-by: Andrew Cooper Signed-off-by: Jennifer Herbert Reviewed-by: Paul Durrant Reviewed-by: Jan Beulich -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC: Julien Grall --- No change.

[Xen-devel] [PATCH v7 for-4.9 3/5] hvm/dmop: Implement copy_{to, from}_guest_buf() in terms of raw accessors

2017-04-21 Thread jennifer.herbert
From: Andrew Cooper This also allows the usual cases to be simplified, by omitting an unnecessary buf parameters, and because the macros can appropriately size the object. Signed-off-by: Andrew Cooper Signed-off-by: Jennifer Herbert -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC:

[Xen-devel] [PATCH v7 for-4.9 2/5] hvm/dmop: Make copy_buf_{from, to}_guest for a buffer not big enough an error.

2017-04-21 Thread jennifer.herbert
From: Jennifer Herbert This makes copying to or from a buf that isn't big enough an error. If the buffer isnt big enough, trying to carry on regardless can only cause trouble later on. Signed-off-by: Jennifer Herbert -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC: Julien Grall ---

[Xen-devel] [PATCH v8 for-4.9 4/5] hvm/dmop: Implement copy_{to, from}_guest_buf_offset() helpers

2017-04-21 Thread jennifer.herbert
From: Andrew Cooper copy_{to,from}_guest_buf() are now implemented using an offset of 0. Signed-off-by: Andrew Cooper Signed-off-by: Jennifer Herbert Reviewed-by: Paul Durrant Reviewed-by: Jan Beulich -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC: Julien Grall -- Rebased ---

[Xen-devel] [PATCH v8 for-4.9 2/5] hvm/dmop: Make copy_buf_{from, to}_guest for a buffer not big enough an error.

2017-04-21 Thread jennifer.herbert
From: Jennifer Herbert This makes copying to or from a buf that isn't big enough an error. If the buffer isnt big enough, trying to carry on regardless can only cause trouble later on. Signed-off-by: Jennifer Herbert -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC: Julien Grall ---

[Xen-devel] [PATCH v8 for-4.9 1/5] hvm/dmop: Box dmop_args rather than passing multiple parameters around

2017-04-21 Thread jennifer.herbert
From: Jennifer Herbert No functional change. Signed-off-by: Jennifer Herbert Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich Reviewed-by: Paul Durrant -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC: Julien Grall --- No change. --- xen/arch/x86/hvm/dm.c | 49

[Xen-devel] [PATCH v8 for-4.9 5/5] dmop: Add xendevicemodel_modified_memory_bulk()

2017-04-21 Thread jennifer.herbert
From: Jennifer Herbert This new lib devicemodel call allows multiple extents of pages to be marked as modified in a single call. This is something needed for a usecase I'm working on. The xen side of the modified_memory call has been modified to accept an array of extents. The devicemodel libr

[Xen-devel] [PATCH v8 for-4.9 3/5] hvm/dmop: Implement copy_{to, from}_guest_buf() in terms of raw accessors

2017-04-21 Thread jennifer.herbert
From: Andrew Cooper This also allows the usual cases to be simplified, by omitting an unnecessary buf parameters, and because the macros can appropriately size the object. Signed-off-by: Andrew Cooper Signed-off-by: Jennifer Herbert -- CC: Paul Durrant CC: Andrew Cooper CC: Jan Beulich CC: