[PATCH 6/6] KVM: PPC: Book3S HV: Add one-reg interface for HASHKEYR register

2024-06-03 Thread Shivaprasad G Bhat
The patch adds a one-reg register identifier which can be used to read and set the virtual HASHKEYR for the guest during enter/exit with KVM_REG_PPC_HASHKEYR. The specific SPR KVM API documentation too updated. Signed-off-by: Shivaprasad G Bhat --- Documentation/virt/kvm/api.rst

[PATCH 5/6] KVM: PPC: Book3S HV nestedv2: Keep nested guest HASHKEYR in sync

2024-06-03 Thread Shivaprasad G Bhat
The nestedv2 APIs has the guest state element defined for HASHKEYR for the save-restore with L0. However, its ignored in the code. The patch takes care of this for the HASHKEYR GSID. Signed-off-by: Shivaprasad G Bhat --- arch/powerpc/include/asm/kvm_host.h |1 + arch/powerpc/kvm

[PATCH 4/6] KVM: PPC: Book3S HV: Add one-reg interface for DEXCR register

2024-06-03 Thread Shivaprasad G Bhat
The patch adds a one-reg register identifier which can be used to read and set the DEXCR for the guest during enter/exit with KVM_REG_PPC_DEXCR. The specific SPR KVM API documentation too updated. Signed-off-by: Shivaprasad G Bhat --- Documentation/virt/kvm/api.rst|1 + arch

[PATCH 3/6] KVM: PPC: Book3S HV nestedv2: Keep nested guest DEXCR in sync

2024-06-03 Thread Shivaprasad G Bhat
The nestedv2 APIs has the guest state element defined for DEXCR for the save-restore with L0. However, its ignored in the code. The patch takes care of this for the DEXCR GSID. Signed-off-by: Shivaprasad G Bhat --- arch/powerpc/include/asm/kvm_host.h |1 + arch/powerpc/kvm/book3s_hv.h

[PATCH 2/6] KVM: PPC: Book3S HV: Fix the get_one_reg of SDAR

2024-06-03 Thread Shivaprasad G Bhat
Signed-off-by: Shivaprasad G Bhat Reviewed-by: Nicholas Piggin --- arch/powerpc/kvm/book3s_hv.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index a4f34f94c86f..b576781d58d5 100644 --- a/arch/powerpc/kvm/book3s_hv.c

[PATCH 1/6] KVM: PPC: Book3S HV: Fix the set_one_reg for MMCR3

2024-06-03 Thread Shivaprasad G Bhat
The kvmppc_set_one_reg_hv() wrongly get() the value instead of set() for MMCR3. Fix the same. Fixes: 5752fe0b811b ("KVM: PPC: Book3S HV: Save/restore new PMU registers") Signed-off-by: Shivaprasad G Bhat Reviewed-by: Nicholas Piggin --- arch/powerpc/kvm/book3s_hv.c |2 +- 1 file

[PATCH 0/6] KVM: PPC: Book3S HV: Nested guest migration fixes

2024-06-03 Thread Shivaprasad G Bhat
-unit-tests --- Shivaprasad G Bhat (6): KVM: PPC: Book3S HV: Fix the set_one_reg for MMCR3 KVM: PPC: Book3S HV: Fix the get_one_reg of SDAR KVM: PPC: Book3S HV nestedv2: Keep nested guest DEXCR in sync KVM: PPC: Book3S HV: Add one-reg interface for DEXCR register KVM

Re: [RFC PATCH v2 0/6] powerpc: pSeries: vfio: iommu: Re-enable support for SPAPR TCE VFIO

2024-05-07 Thread Shivaprasad G Bhat
Hi Jason, On 5/6/24 23:13, Jason Gunthorpe wrote: On Sat, May 04, 2024 at 12:33:53AM +0530, Shivaprasad G Bhat wrote: We have legacy workloads using VFIO in userspace/kvm guests running on downstream distro kernels. We want these workloads to be able to continue running on our arch. It has

Re: [RFC PATCH v2 0/6] powerpc: pSeries: vfio: iommu: Re-enable support for SPAPR TCE VFIO

2024-05-03 Thread Shivaprasad G Bhat
On 5/2/24 06:59, Alexey Kardashevskiy wrote: On 2/5/24 00:09, Jason Gunthorpe wrote: On Tue, Apr 30, 2024 at 03:05:34PM -0500, Shivaprasad G Bhat wrote: RFC v1 was posted here [1]. As I was testing more and fixing the issues, I realized its clean to have the table_group_ops implemented

[RFC PATCH v2 6/6] powerpc/iommu: Implement the iommu_table_group_ops for pSeries

2024-04-30 Thread Shivaprasad G Bhat
window management changes mentioned above, the patch also brings back the userspace view for the single level TCE as it existed before commit 090bad39b237a ("powerpc/powernv: Add indirect levels to it_userspace") along with the relavent refactoring. Signed-off-by: Shivaprasad G Bhat ---

[RFC PATCH v2 4/6] vfio/spapr: Always clear TCEs before unsetting the window

2024-04-30 Thread Shivaprasad G Bhat
. On PowerNV, this has no side effect as the TCE clear can be done before the DMA window removal as well. Signed-off-by: Shivaprasad G Bhat --- drivers/vfio/vfio_iommu_spapr_tce.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/vfio/vfio_iommu_spapr_tce.c b

[RFC PATCH v2 5/6] powerpc/iommu: Move dev_has_iommu_table() to iommu.c

2024-04-30 Thread Shivaprasad G Bhat
Move function dev_has_iommu_table() to powerpc/kernel/iommu.c as it is going to be used by machine specific iommu code as well in subsequent patches. Signed-off-by: Shivaprasad G Bhat --- arch/powerpc/include/asm/iommu.h |1 + arch/powerpc/kernel/eeh.c| 16 arch

[RFC PATCH v2 3/6] powerpc/pseries/iommu: Use the iommu table[0] for IOV VF's DDW

2024-04-30 Thread Shivaprasad G Bhat
-off-by: Shivaprasad G Bhat --- arch/powerpc/platforms/pseries/iommu.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c index 5b68a4918d63..e701255560a6 100644 --- a/arch/powerpc

[RFC PATCH v2 2/6] powerpc/pseries/iommu: Fix the VFIO_IOMMU_SPAPR_TCE_GET_INFO ioctl output

2024-04-30 Thread Shivaprasad G Bhat
on parent nodes anyway. Signed-off-by: Shivaprasad G Bhat --- arch/powerpc/platforms/pseries/iommu.c | 81 ++-- 1 file changed, 67 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c index

[RFC PATCH v2 1/6] powerpc/iommu: Move pSeries specific functions to pseries/iommu.c

2024-04-30 Thread Shivaprasad G Bhat
The PowerNV specific table_group_ops are defined in powernv/pci-ioda.c. The pSeries specific table_group_ops are sitting in the generic powerpc file. Move it to where it actually belong(pseries/iommu.c). Only code movement, no functional changes intended. Signed-off-by: Shivaprasad G Bhat

[RFC PATCH v2 0/6] powerpc: pSeries: vfio: iommu: Re-enable support for SPAPR TCE VFIO

2024-04-30 Thread Shivaprasad G Bhat
--- Changelog: v1: https://lore.kernel.org/linuxppc-dev/171026724548.8367.8321359354119254395.st...@linux.ibm.com/ - Rewrite as to stop borrowing the DMA windows and implemented the table_group_ops for pSeries. - Cover letter and Patch 6 has more details as this was a rewrite. Shivaprasad G Bhat (6

Re: [RFC PATCH 3/3] pseries/iommu: Enable DDW for VFIO TCE create

2024-03-25 Thread Shivaprasad G Bhat
Hi Michael, On 3/13/24 18:23, Michael Ellerman wrote: Hi Shivaprasad, Shivaprasad G Bhat writes: The commit 9d67c9433509 ("powerpc/iommu: Add \"borrowing\" iommu_table_group_ops") implemented the "borrow" mechanism for the pSeries SPAPR TCE. It did im

Re: [RFC PATCH 1/3] powerpc/pseries/iommu: Bring back userspace view for single level TCE tables

2024-03-20 Thread Shivaprasad G Bhat
Hi Jason, On 3/19/24 20:02, Jason Gunthorpe wrote: On Tue, Mar 12, 2024 at 01:14:20PM -0500, Shivaprasad G Bhat wrote: The commit 090bad39b237a ("powerpc/powernv: Add indirect levels to it_userspace") which implemented the tce indirect levels support for PowerNV ended up removing

[RFC PATCH 3/3] pseries/iommu: Enable DDW for VFIO TCE create

2024-03-12 Thread Shivaprasad G Bhat
n enable_ddw() if the user had created/modified the DDW. As there is preference for DIRECT mapping on the host driver side, the user created window is removed. The changes work only for the non-SRIOV-VF scenarios for PEs having 2 DMA windows. Signed-off-by: Shivaprasad G Bhat --- arch/powerpc/in

[RFC PATCH 2/3] powerpc/iommu: Move pSeries specific functions to pseries/iommu.c

2024-03-12 Thread Shivaprasad G Bhat
The PowerNV specific table_group_ops are defined in powernv/pci-ioda.c. The pSeries specific table_group_ops are sitting in the generic powerpc file. Move it to where it actually belong(pseries/iommu.c). Only code movement, no functional changes intended. Signed-off-by: Shivaprasad G Bhat

[RFC PATCH 1/3] powerpc/pseries/iommu: Bring back userspace view for single level TCE tables

2024-03-12 Thread Shivaprasad G Bhat
or the tce release call paths as the table is not really freed. So, decoupling the userspace view array free and alloc from table's it_ops just the way it was before. Signed-off-by: Shivaprasad G Bhat --- arch/powerpc/platforms/pseries/iommu.c | 19 ++-- drivers/vfio/vfio_iomm

[RFC PATCH 0/3] powerpc: pSeries: vfio: iommu: Re-enable support for SPAPR TCE VFIO

2024-03-12 Thread Shivaprasad G Bhat
("powerpc/powernv: Add indirect levels to it_userspace") [2] Commit: 9d67c9433509 ("powerpc/iommu: Add \"borrowing\" iommu_table_group_ops") [3] https://github.com/awilliam/tests [4] https://github.com/nnmwebmin/vfio-ppc-tests/tree/vfio-ppc-ex --- Shivaprasad G Bhat

Re: [PATCH v2] powerpc/iommu: Fix the iommu group reference leak during platform domain attach

2024-02-15 Thread Shivaprasad G Bhat
On 2/15/24 08:01, Michael Ellerman wrote: Shivaprasad G Bhat writes: The function spapr_tce_platform_iommu_attach_dev() is missing to call iommu_group_put() when the domain is already set. This refcount leak shows up with BUG_ON() during DLPAR remove operation as, [c013aed5fd10

[PATCH] powerpc/iommu: Refactor spapr_tce_platform_iommu_attach_dev()

2024-02-15 Thread Shivaprasad G Bhat
The patch makes the iommu_group_get() call only when using it thereby avoiding the unnecessary get & put for domain already being set case. Reviewed-by: Jason Gunthorpe Signed-off-by: Shivaprasad G Bhat --- Changelog: v2: https://lore.kernel.org/linux-i

Re: [PATCH] powerpc/iommu: Fix the missing iommu_group_put() during platform domain attach

2024-02-14 Thread Shivaprasad G Bhat
On 2/14/24 18:28, Jason Gunthorpe wrote: On Wed, Feb 14, 2024 at 11:53:20PM +1100, Michael Ellerman wrote: Venkat Rao Bagalkote writes: Thanks for the patch. Applied this patch and verified and issue is fixed. This issue way originally reported in the below mail.

[PATCH v2] powerpc/iommu: Fix the iommu group reference leak during platform domain attach

2024-02-14 Thread Shivaprasad G Bhat
-8427e88e2...@linux.vnet.ibm.com Signed-off-by: Shivaprasad G Bhat --- Changelog: v1: https://lore.kernel.org/all/170784021983.6249.10039296655906636112.st...@linux.ibm.com/ - Minor refactor to call the iommu_group_get() only if required. - Updated the title, description and signature(Closes/Reported-b

[PATCH] powerpc/iommu: Fix the missing iommu_group_put() during platform domain attach

2024-02-13 Thread Shivaprasad G Bhat
]--- The patch adds the missing iommu_group_put() call. Fixes: a8ca9fc9134c ("powerpc/iommu: Do not do platform domain attach atctions after probe") Signed-off-by: Shivaprasad G Bhat --- arch/powerpc/kernel/iommu.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ar

Re: [PATCH] powerpc/papr_scm: Move duplicate definitions to common header files

2024-01-27 Thread Shivaprasad G Bhat
On 1/26/24 02:46, Christophe Leroy wrote: Le 18/04/2022 à 06:38, Shivaprasad G Bhat a écrit : papr_scm and ndtest share common PDSM payload structs like nd_papr_pdsm_health. Presently these structs are duplicated across papr_pdsm.h and ndtest.h header files. Since 'ndtest' is essentially arch

[REPOST PATCH v3] powerpc/papr_scm: Move duplicate definitions to common header files

2024-01-27 Thread Shivaprasad G Bhat
to a header file which can be shared across ndtest and papr_scm via newly introduced include/linux/papr_scm.h. Signed-off-by: Shivaprasad G Bhat Signed-off-by: Vaibhav Jain Suggested-by: "Aneesh Kumar K.V" --- Changelog: Repost of v3: Link: https://lore.kern

Re: [PATCH 2/2] iommu: Fix the domain type checks when default_domain is set

2024-01-26 Thread Shivaprasad G Bhat
On 1/25/24 21:22, Jason Gunthorpe wrote: On Thu, Jan 25, 2024 at 06:08:52AM -0600, Shivaprasad G Bhat wrote: On PPC64, the iommu_ops.def_domain_type() is not defined and CONFIG_IOMMU_DMA not enabled. With commit 0f6a90436a57 ("iommu: Do not use IOMMU_DOMAIN_DMA if CONFIG_IOMM

Re: [PATCH 1/2] powerpc: iommu: Bring back table group release_ownership() call

2024-01-26 Thread Shivaprasad G Bhat
On 1/25/24 21:20, Jason Gunthorpe wrote: On Thu, Jan 25, 2024 at 06:08:39AM -0600, Shivaprasad G Bhat wrote: The commit 2ad56efa80db ("powerpc/iommu: Setup a default domain and [snip] + /* +* The domain being set to PLATFORM from ea

[PATCH v2] powerpc: iommu: Bring back table group release_ownership() call

2024-01-26 Thread Shivaprasad G Bhat
able_group release_ownership() call when switching back to PLATFORM domain from BLOCKED, while also separates the domain_ops for both. Fixes: 2ad56efa80db ("powerpc/iommu: Setup a default domain and remove set_platform_dma_ops") Signed-off-by: Shivaprasad G Bhat --- Changelog: v1: https://l

[PATCH 2/2] iommu: Fix the domain type checks when default_domain is set

2024-01-25 Thread Shivaprasad G Bhat
t_domain() to not error out if the requested type is same as default domain type. Fixes: 2ad56efa80db ("powerpc/iommu: Setup a default domain and remove set_platform_dma_ops") Fixes: 0f6a90436a57 ("iommu: Do not use IOMMU_DOMAIN_DMA if CONFIG_IOMMU_DMA is not enabled") Sign

[PATCH 1/2] powerpc: iommu: Bring back table group release_ownership() call

2024-01-25 Thread Shivaprasad G Bhat
able_group release_ownership() call when switching back to PLATFORM domain. Fixes: 2ad56efa80db ("powerpc/iommu: Setup a default domain and remove set_platform_dma_ops") Signed-off-by: Shivaprasad G Bhat --- arch/powerpc/kernel/iommu.c | 16 +--- 1 file changed, 13 insert

[PATCH 0/2] powerpc: iommu: Fix the vfio-pci bind and unbind issues

2024-01-25 Thread Shivaprasad G Bhat
Details of the same are in the following patch descriptions. --- Shivaprasad G Bhat (2): powerpc: iommu: Bring back table group release_ownership() call iommu: Fix the domain type checks when default_domain is set arch/powerpc/kernel/iommu.c | 16 +--- drivers/iomm

[REPOST PATCH] ndtest: Cleanup all of blk namespace specific code

2022-07-12 Thread Shivaprasad G Bhat
; | ^~~~ | ndtest_blk_mmio The current patch removes the specific code to cleanup all obsolete references. Signed-off-by: Shivaprasad G Bhat --- Changelog: Repost of v1: Link - https://patchwork.kernel.org/project/linux-nvdimm/patch/165025395730.2821159.14794984437851867426

[PATCH v3] tests/nvdimm/ndtest: Simulate nvdimm health, DSC and smart-inject

2022-04-18 Thread Shivaprasad G Bhat
-by: Shivaprasad G Bhat Signed-off-by: Vaibhav Jain --- Changelog: Since v2: Link: https://patchwork.kernel.org/project/linux-nvdimm/patch/163454437514.431245.15482985237822269917.st...@lep8c.aus.stglabs.ibm.com/ * Made it like v1 which had the patches based on the moved header files. So, this patch depends

[RFC PATCH] ndtest: Make ndtest a module on its own

2022-04-17 Thread Shivaprasad G Bhat
file to take care of that. Signed-off-by: Shivaprasad G Bhat Signed-off-by: Vaibhav Jain --- tools/testing/nvdimm/test/Kbuild |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/nvdimm/test/Kbuild b/tools/testing/nvdimm/test/Kbuild index 197bcb2b7f35

[PATCH] powerpc/papr_scm: Move duplicate definitions to common header files

2022-04-17 Thread Shivaprasad G Bhat
to a header file which can be shared across ndtest and papr_scm via newly introduced include/linux/papr_scm.h. Signed-off-by: Shivaprasad G Bhat Signed-off-by: Vaibhav Jain Suggested-by: "Aneesh Kumar K.V" --- Changelog: Since v2: Link: https://patchwork.kernel.org/project/linux-nv

[PATCH] ndtest: Cleanup all of blk namespace specific code

2022-04-17 Thread Shivaprasad G Bhat
; | ^~~~ | ndtest_blk_mmio The current patch removes the specific code to cleanup all obsolete references. Signed-off-by: Shivaprasad G Bhat --- tools/testing/nvdimm/test/ndtest.c | 77 1 file changed, 77 deletions(-) diff --git

[REPOST RFC PATCH v2] powerpc/papr_scm: Move duplicate definitions to common header files

2021-10-18 Thread Shivaprasad G Bhat
to a header file which can be shared across ndtest and papr_scm via newly introduced include/linux/papr_scm.h. Signed-off-by: Shivaprasad G Bhat Signed-off-by: Vaibhav Jain Suggested-by: "Aneesh Kumar K.V" --- Changelog: Since v1: Link: https://patchwork.kernel.org/project/linux-nv

[REPOST PATCH v2] tests/nvdimm/ndtest: Simulate nvdimm health, DSC and smart-inject

2021-10-18 Thread Shivaprasad G Bhat
-by: Shivaprasad G Bhat Signed-off-by: Vaibhav Jain --- Changelog: Since v1: Link: https://patchwork.kernel.org/project/linux-nvdimm/list/?series=521767 * Removed the dependency on a header movement patch tools/testing/nvdimm/test/ndtest.c | 148 tools/testing/nvdimm/test

[REPORT PATCH v2] powerpc/papr_scm: Implement initial support for injecting smart errors

2021-10-18 Thread Shivaprasad G Bhat
ps from the payload and bit-blt it to the 'health_bitmap_{mask, override}' members. This ensures the after being fetched from the hypervisor, the health_bitmap reflects requested smart-error states. Signed-off-by: Vaibhav Jain Signed-off-by: Shivaprasad G Bhat --- Changelog: Since v1: Link: htt

[RFC PATCH v2] powerpc/papr_scm: Move duplicate definitions to common header files

2021-09-06 Thread Shivaprasad G Bhat
to a header file which can be shared across ndtest and papr_scm via newly introduced include/linux/papr_scm.h. Signed-off-by: Shivaprasad G Bhat Signed-off-by: Vaibhav Jain Suggested-by: "Aneesh Kumar K.V" --- Changelog: Since v1: Link: https://patchwork.kernel.org/project/linux-nv

[PATCH v2] tests/nvdimm/ndtest: Simulate nvdimm health, DSC and smart-inject

2021-09-06 Thread Shivaprasad G Bhat
-by: Shivaprasad G Bhat Signed-off-by: Vaibhav Jain --- Changelog: Since v1: Link: https://patchwork.kernel.org/project/linux-nvdimm/list/?series=521767 * Removed the dependency on a header movement patch tools/testing/nvdimm/test/ndtest.c | 148 tools/testing/nvdimm

[PATCH v2] powerpc/papr_scm: Implement initial support for injecting smart errors

2021-09-06 Thread Shivaprasad G Bhat
ps from the payload and bit-blt it to the 'health_bitmap_{mask, override}' members. This ensures the after being fetched from the hypervisor, the health_bitmap reflects requested smart-error states. Signed-off-by: Vaibhav Jain Signed-off-by: Shivaprasad G Bhat --- Changelog: Since v1: Link: htt

[PATCH] tests/nvdimm/ndtest: Simulate nvdimm health, DSC and smart-inject

2021-07-26 Thread Shivaprasad G Bhat
-by: Shivaprasad G Bhat --- The patch depends on the PAPR PDSM smart-inject payload definitions added with the patch - https://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg191337.html tools/testing/nvdimm/test/ndtest.c | 149 tools/testing/nvdimm/test/ndtest.h

[PATCH] powerpc/papr_scm: Move duplicate definitions to common header files

2021-06-30 Thread Shivaprasad G Bhat
and ndtest which are not exported to the user space. So, move them to a header file which can be shared across ndtest and papr_scm via newly introduced include/linux/papr_scm.h. Signed-off-by: Shivaprasad G Bhat Suggested-by: "Aneesh Kumar K.V" --- M

[PATCH v3] powerpc/papr_scm: Implement support for H_SCM_FLUSH hcall

2021-03-29 Thread Shivaprasad G Bhat
H_SCM_HEALTH call. This patch prevents mmap of namespaces with MAP_SYNC flag if the nvdimm requires an explicit flush[1]. References: [1] https://github.com/avocado-framework-tests/avocado-misc-tests/blob/master/memory/ndctl.py.data/map_sync.c Signed-off-by: Shivaprasad G Bhat --- v2 - https

[PATCH v2] powerpc/papr_scm: Implement support for H_SCM_FLUSH hcall

2021-03-23 Thread Shivaprasad G Bhat
health request call. This patch prevents mmap of namespaces with MAP_SYNC flag if the nvdimm requires explicit flush[1]. References: [1] https://github.com/avocado-framework-tests/avocado-misc-tests/blob/master/memory/ndctl.py.data/map_sync.c Signed-off-by: Shivaprasad G Bhat --- v1 - https

Re: [RFC Qemu PATCH v2 1/2] spapr: drc: Add support for async hcalls at the drc level

2021-03-23 Thread Shivaprasad G Bhat
Hi David, Sorry about the delay. On 2/8/21 11:51 AM, David Gibson wrote: On Tue, Jan 19, 2021 at 12:40:31PM +0530, Shivaprasad G Bhat wrote: Thanks for the comments! On 12/28/20 2:08 PM, David Gibson wrote: On Mon, Dec 21, 2020 at 01:08:53PM +0100, Greg Kurz wrote: ... The overall idea

Re: [RFC Qemu PATCH v2 1/2] spapr: drc: Add support for async hcalls at the drc level

2021-01-18 Thread Shivaprasad G Bhat
Thanks for the comments! On 12/28/20 2:08 PM, David Gibson wrote: On Mon, Dec 21, 2020 at 01:08:53PM +0100, Greg Kurz wrote: ... The overall idea looks good but I think you should consider using a thread pool to implement it. See below. I am not convinced, however. Specifically, attaching

[RFC PATCH] powerpc/papr_scm: Implement scm async flush

2020-12-01 Thread Shivaprasad G Bhat
/dev/pmem1 on /mnt2 type xfs (rw,relatime,attr2,dax=always,inode64,logbufs=8,logbsize=32k,noquota) #./mapsync /mnt1/newfile> Without async-flush-required #./mapsync /mnt2/newfile> With async-flush-required Failed to mmap with Operation not supported Signed-off-by: Sh

[RFC Qemu PATCH v2 2/2] spapr: nvdimm: Implement async flush hcalls

2020-11-30 Thread Shivaprasad G Bhat
and enables explicit asynchronous flush requests from guest. It can be disabled by setting syn-dax=on. Signed-off-by: Shivaprasad G Bhat --- hw/mem/nvdimm.c |1 + hw/ppc/spapr_nvdimm.c | 79 +++ include/hw/mem/nvdimm.h | 10 ++ include/hw

[RFC Qemu PATCH v2 1/2] spapr: drc: Add support for async hcalls at the drc level

2020-11-30 Thread Shivaprasad G Bhat
The patch adds support for async hcalls at the DRC level for the spapr devices. To be used by spapr-scm devices in the patch/es to follow. Signed-off-by: Shivaprasad G Bhat --- hw/ppc/spapr_drc.c | 149 include/hw/ppc/spapr_drc.h | 25

[RFC Qemu PATCH v2 0/2] spapr: nvdimm: Asynchronus flush hcall support

2020-11-30 Thread Shivaprasad G Bhat
ml Changes from v1 - Fixed a missed-out unlock - using QLIST_FOREACH instead of QLIST_FOREACH_SAFE while generating token Shivaprasad G Bhat (2): spapr: drc: Add support for async hcalls at the drc level spapr: nvdimm: Implement async flush hcalls hw/mem/nvdimm.c