; include/linux/dax.h |9 ++---
> include/linux/fs.h |6 --
> 3 files changed, 25 insertions(+), 8 deletions(-)
Tested on QEMU with fs-dax and device-dax as vNVDIMM backends
respectively with vfio passthrough. The fs-dax case fails QEMU as
expected, and the device-dax case works normally now.
Tested-by: Haozhong Zhang <haozhong.zh...@intel.com>
; include/linux/dax.h |9 ++---
> include/linux/fs.h |6 --
> 3 files changed, 25 insertions(+), 8 deletions(-)
Tested on QEMU with fs-dax and device-dax as vNVDIMM backends
respectively with vfio passthrough. The fs-dax case fails QEMU as
expected, and the device-dax case works normally now.
Tested-by: Haozhong Zhang
On 02/13/18 20:04 -0600, Josh Poimboeuf wrote:
> On Sun, Feb 11, 2018 at 02:39:41PM +0100, Marc Haber wrote:
> > Hi,
> >
> > after in total nine weeks of bisecting, broken filesystems, service
> > outages (thankfully on unportant systems), 4.15 seems to have fixed the
> > issue. After going to
On 02/13/18 20:04 -0600, Josh Poimboeuf wrote:
> On Sun, Feb 11, 2018 at 02:39:41PM +0100, Marc Haber wrote:
> > Hi,
> >
> > after in total nine weeks of bisecting, broken filesystems, service
> > outages (thankfully on unportant systems), 4.15 seems to have fixed the
> > issue. After going to
esolving the dax-dma-vs-truncate problem is one
> of the last hurdles to remove that designation.
>
> Cc: Alex Williamson <alex.william...@redhat.com>
> Cc: Michal Hocko <mho...@suse.com>
> Cc: Christoph Hellwig <h...@lst.de>
> Cc: k...@vger.kernel.or
esolving the dax-dma-vs-truncate problem is one
> of the last hurdles to remove that designation.
>
> Cc: Alex Williamson
> Cc: Michal Hocko
> Cc: Christoph Hellwig
> Cc: k...@vger.kernel.org
> Cc:
> Reported-by: Haozhong Zhang
> Fixes: d475c6346a38 ("dax,ex
the dax-dma-vs-truncate problem is one
> of the last hurdles to remove that designation.
>
> Cc: Alex Williamson <alex.william...@redhat.com>
> Cc: Michal Hocko <mho...@suse.com>
> Cc: Christoph Hellwig <h...@lst.de>
> Cc: k...@vger.kernel.org
> Cc: <sta..
the dax-dma-vs-truncate problem is one
> of the last hurdles to remove that designation.
>
> Cc: Alex Williamson
> Cc: Michal Hocko
> Cc: Christoph Hellwig
> Cc: k...@vger.kernel.org
> Cc:
> Reported-by: Haozhong Zhang
> Fixes: d475c6346a38 ("dax,ext2: r
On 01/09/18 00:57 -0800, Liran Alon wrote:
>
> - haozhong.zh...@intel.com wrote:
>
> > On 01/07/18 00:26 -0700, Ross Zwisler wrote:
> > > On Wed, Aug 23, 2017 at 10:21 PM, Wanpeng Li
> > wrote:
> > > > From: Wanpeng Li
> > > >
> > > >
On 01/09/18 00:57 -0800, Liran Alon wrote:
>
> - haozhong.zh...@intel.com wrote:
>
> > On 01/07/18 00:26 -0700, Ross Zwisler wrote:
> > > On Wed, Aug 23, 2017 at 10:21 PM, Wanpeng Li
> > wrote:
> > > > From: Wanpeng Li
> > > >
> > > > vmx_complete_interrupts() assumes that the exception is
On 01/07/18 00:26 -0700, Ross Zwisler wrote:
> On Wed, Aug 23, 2017 at 10:21 PM, Wanpeng Li wrote:
> > From: Wanpeng Li
> >
> > vmx_complete_interrupts() assumes that the exception is always injected,
> > so it would be dropped by
On 01/07/18 00:26 -0700, Ross Zwisler wrote:
> On Wed, Aug 23, 2017 at 10:21 PM, Wanpeng Li wrote:
> > From: Wanpeng Li
> >
> > vmx_complete_interrupts() assumes that the exception is always injected,
> > so it would be dropped by kvm_clear_exception_queue(). This patch separates
> >
.
Changes in v3:
* Move cache mode check to pat.c as pat_pfn_is_uc()
* Reintroduce converters between kvm_pfn_t and pfn_t.
Changes in v2:
* Switch to lookup_memtype() to get host memory type.
* Rewrite the comment in KVM MMU patch.
* Remove v1 patch 2, which is not necessary in v2.
Haozhong Zhang (2
.
Changes in v3:
* Move cache mode check to pat.c as pat_pfn_is_uc()
* Reintroduce converters between kvm_pfn_t and pfn_t.
Changes in v2:
* Switch to lookup_memtype() to get host memory type.
* Rewrite the comment in KVM MMU patch.
* Remove v1 patch 2, which is not necessary in v2.
Haozhong Zhang (2
pages would be harmed.
Therefore, we check the host memory type in addition and only treat
UC/UC-/WC pages as MMIO.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
Reported-by: Cuevas Escareno, Ivan D <ivan.d.cuevas.escar...@intel.com>
Reported-by: Kumar, Karthik <karthik.
pages would be harmed.
Therefore, we check the host memory type in addition and only treat
UC/UC-/WC pages as MMIO.
Signed-off-by: Haozhong Zhang
Reported-by: Cuevas Escareno, Ivan D
Reported-by: Kumar, Karthik
Reviewed-by: Xiao Guangrong
---
arch/x86/kvm/mmu.c | 13 -
1 file changed
Check whether the PAT memory type of a pfn cannot be overridden by
MTRR UC memory type, i.e. the PAT memory type is UC, UC- or WC. This
function will be used by KVM to determine whether it needs to map a
host pfn to guest with UC memory type.
Signed-off-by: Haozhong Zhang <haozhong
Check whether the PAT memory type of a pfn cannot be overridden by
MTRR UC memory type, i.e. the PAT memory type is UC, UC- or WC. This
function will be used by KVM to determine whether it needs to map a
host pfn to guest with UC memory type.
Signed-off-by: Haozhong Zhang
Reviewed-by: Xiao
On 12/18/17 13:55 +0100, Paolo Bonzini wrote:
> On 08/11/2017 08:56, Haozhong Zhang wrote:
> > +bool pat_pfn_is_uc_or_uc_minus(unsigned long pfn)
> > +{
> > + enum page_cache_mode cm = lookup_memtype(PFN_PHYS(pfn));
> > +
> > + retur
On 12/18/17 13:55 +0100, Paolo Bonzini wrote:
> On 08/11/2017 08:56, Haozhong Zhang wrote:
> > +bool pat_pfn_is_uc_or_uc_minus(unsigned long pfn)
> > +{
> > + enum page_cache_mode cm = lookup_memtype(PFN_PHYS(pfn));
> > +
> > + retur
On 11/15/17 11:44 +0100, David Hildenbrand wrote:
> On 08.11.2017 08:56, Haozhong Zhang wrote:
> > It will be used by KVM to check whether a pfn should be
> > mapped to guest as UC.
> >
> > Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
> > -
On 11/15/17 11:44 +0100, David Hildenbrand wrote:
> On 08.11.2017 08:56, Haozhong Zhang wrote:
> > It will be used by KVM to check whether a pfn should be
> > mapped to guest as UC.
> >
> > Signed-off-by: Haozhong Zhang
> > ---
> > arch/x86/include/a
On 11/15/17 07:17 -0800, Dan Williams wrote:
> On Tue, Nov 7, 2017 at 11:56 PM, Haozhong Zhang
> <haozhong.zh...@intel.com> wrote:
> > It will be used by KVM to check whether a pfn should be
> > mapped to guest as UC.
> >
> > Signed-off-by: Haoz
On 11/15/17 07:17 -0800, Dan Williams wrote:
> On Tue, Nov 7, 2017 at 11:56 PM, Haozhong Zhang
> wrote:
> > It will be used by KVM to check whether a pfn should be
> > mapped to guest as UC.
> >
> > Signed-off-by: Haozhong Zhang
> > ---
> > arch/x86/
pages would be harmed.
Therefore, we check the host memory type in addition and only treat
UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
Reported-by: Cuevas Escareno, Ivan D <ivan.d.cuevas.escar...@intel.com>
Reported-by: Kumar, Karthik <karthik.
pages would be harmed.
Therefore, we check the host memory type in addition and only treat
UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang
Reported-by: Cuevas Escareno, Ivan D
Reported-by: Kumar, Karthik
---
arch/x86/kvm/mmu.c | 15 ++-
1 file changed, 14 insertions(+), 1 deletion
It will be used by KVM to check whether a pfn should be
mapped to guest as UC.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
---
arch/x86/include/asm/pat.h | 2 ++
arch/x86/mm/pat.c | 16
2 files changed, 18 insertions(+)
diff --git a/arch/x86/inclu
It will be used by KVM to check whether a pfn should be
mapped to guest as UC.
Signed-off-by: Haozhong Zhang
---
arch/x86/include/asm/pat.h | 2 ++
arch/x86/mm/pat.c | 16
2 files changed, 18 insertions(+)
diff --git a/arch/x86/include/asm/pat.h b/arch/x86/include
.
Changes in v2:
* Switch to lookup_memtype() to get host memory type.
* Rewrite the comment in KVM MMU patch.
* Remove v1 patch 2, which is not necessary in v2.
Haozhong Zhang (2):
x86/mm: add functions to check if a pfn is UC/UC-
KVM: MMU: consider host cache mode in MMIO page check
arch
.
Changes in v2:
* Switch to lookup_memtype() to get host memory type.
* Rewrite the comment in KVM MMU patch.
* Remove v1 patch 2, which is not necessary in v2.
Haozhong Zhang (2):
x86/mm: add functions to check if a pfn is UC/UC-
KVM: MMU: consider host cache mode in MMIO page check
arch
On 11/03/17 16:51 +0800, Haozhong Zhang wrote:
> On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
> >
> >
> > On 11/03/2017 01:53 PM, Haozhong Zhang wrote:
> > > Some reserved pages, such as those from NVDIMM DAX devices, are
> > > not for MMIO, and can be ma
On 11/03/17 16:51 +0800, Haozhong Zhang wrote:
> On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
> >
> >
> > On 11/03/2017 01:53 PM, Haozhong Zhang wrote:
> > > Some reserved pages, such as those from NVDIMM DAX devices, are
> > > not for MMIO, and can be ma
On 11/03/17 06:21 -0700, Dan Williams wrote:
> On Thu, Nov 2, 2017 at 10:53 PM, Haozhong Zhang
> <haozhong.zh...@intel.com> wrote:
> > Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
>
> Can you also add some text to the changelog saying why we need t
On 11/03/17 06:21 -0700, Dan Williams wrote:
> On Thu, Nov 2, 2017 at 10:53 PM, Haozhong Zhang
> wrote:
> > Signed-off-by: Haozhong Zhang
>
> Can you also add some text to the changelog saying why we need these
> converters?
I'm going to drop these converters in the next
On 11/03/17 10:15 -0400, Mikulas Patocka wrote:
>
>
> On Tue, 31 Oct 2017, Haozhong Zhang wrote:
>
> > [I just copy the commit message from patch 2]
> >
> > Some reserved pages, such as those from NVDIMM DAX devices, are
> > not for MMIO, and can be mappe
On 11/03/17 10:15 -0400, Mikulas Patocka wrote:
>
>
> On Tue, 31 Oct 2017, Haozhong Zhang wrote:
>
> > [I just copy the commit message from patch 2]
> >
> > Some reserved pages, such as those from NVDIMM DAX devices, are
> > not for MMIO, and can be mappe
On 11/03/17 17:24 +0800, Xiao Guangrong wrote:
>
>
> On 11/03/2017 05:02 PM, Haozhong Zhang wrote:
> > On 11/03/17 16:51 +0800, Haozhong Zhang wrote:
> > > On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
> > > >
> > > >
> > > >
On 11/03/17 17:24 +0800, Xiao Guangrong wrote:
>
>
> On 11/03/2017 05:02 PM, Haozhong Zhang wrote:
> > On 11/03/17 16:51 +0800, Haozhong Zhang wrote:
> > > On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
> > > >
> > > >
> > > >
On 11/03/17 17:10 +0800, Xiao Guangrong wrote:
>
>
> On 11/03/2017 04:51 PM, Haozhong Zhang wrote:
> > On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
> > >
> > >
> > > On 11/03/2017 01:53 PM, Haozhong Zhang wrote:
> > > > Some
On 11/03/17 17:10 +0800, Xiao Guangrong wrote:
>
>
> On 11/03/2017 04:51 PM, Haozhong Zhang wrote:
> > On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
> > >
> > >
> > > On 11/03/2017 01:53 PM, Haozhong Zhang wrote:
> > > > Some
On 11/03/17 16:51 +0800, Haozhong Zhang wrote:
> On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
> >
> >
> > On 11/03/2017 01:53 PM, Haozhong Zhang wrote:
> > > Some reserved pages, such as those from NVDIMM DAX devices, are
> > > not for MMIO, and can be ma
On 11/03/17 16:51 +0800, Haozhong Zhang wrote:
> On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
> >
> >
> > On 11/03/2017 01:53 PM, Haozhong Zhang wrote:
> > > Some reserved pages, such as those from NVDIMM DAX devices, are
> > > not for MMIO, and can be ma
On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
>
>
> On 11/03/2017 01:53 PM, Haozhong Zhang wrote:
> > Some reserved pages, such as those from NVDIMM DAX devices, are
> > not for MMIO, and can be mapped with cached memory type for better
> > performance. However, t
On 11/03/17 14:54 +0800, Xiao Guangrong wrote:
>
>
> On 11/03/2017 01:53 PM, Haozhong Zhang wrote:
> > Some reserved pages, such as those from NVDIMM DAX devices, are
> > not for MMIO, and can be mapped with cached memory type for better
> > performance. However, t
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
---
include/linux/kvm_host.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 6882538eda32..caf6f7a6bdb2 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_
pages would be harmed.
Therefore, we check the host memory type by lookup_memtype() in
addition and only treat UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
Reported-by: Cuevas Escareno, Ivan D <ivan.d.cuevas.escar...@intel.com>
Reported-by: Kumar, Karthik
Signed-off-by: Haozhong Zhang
---
include/linux/kvm_host.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 6882538eda32..caf6f7a6bdb2 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -27,6 +27,7 @@
#include
pages would be harmed.
Therefore, we check the host memory type by lookup_memtype() in
addition and only treat UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang
Reported-by: Cuevas Escareno, Ivan D
Reported-by: Kumar, Karthik
---
arch/x86/kvm/mmu.c | 19 ++-
1 file changed, 18
pat_pfn_is_uc(pfn) is added and will be used by KVM to check whether
the memory type of a host pfn is UC/UC-.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
---
arch/x86/include/asm/pat.h | 2 ++
arch/x86/mm/pat.c | 14 ++
2 files changed, 16 insertions(+)
between kvm_pfn_t and pfn_t.
Changes in v2:
* Switch to lookup_memtype() to get host memory type.
* Rewrite the comment in KVM MMU patch.
* Remove v1 patch 2, which is not necessary in v2.
Haozhong Zhang (3):
x86/mm: add function to check if a pfn is UC/UC-
KVM: add converters between
pat_pfn_is_uc(pfn) is added and will be used by KVM to check whether
the memory type of a host pfn is UC/UC-.
Signed-off-by: Haozhong Zhang
---
arch/x86/include/asm/pat.h | 2 ++
arch/x86/mm/pat.c | 14 ++
2 files changed, 16 insertions(+)
diff --git a/arch/x86/include
between kvm_pfn_t and pfn_t.
Changes in v2:
* Switch to lookup_memtype() to get host memory type.
* Rewrite the comment in KVM MMU patch.
* Remove v1 patch 2, which is not necessary in v2.
Haozhong Zhang (3):
x86/mm: add function to check if a pfn is UC/UC-
KVM: add converters between
On 11/02/17 19:25 -0700, Dan Williams wrote:
> On Thu, Nov 2, 2017 at 6:16 PM, Haozhong Zhang <haozhong.zh...@intel.com>
> wrote:
> > Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
> > ---
> > include/linux/kvm_host.h | 3 +++
> > 1 file c
On 11/02/17 19:25 -0700, Dan Williams wrote:
> On Thu, Nov 2, 2017 at 6:16 PM, Haozhong Zhang
> wrote:
> > Signed-off-by: Haozhong Zhang
> > ---
> > include/linux/kvm_host.h | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/include/l
() to get host memory type.
* Rewrite the comment in KVM MMU patch.
* Remove v1 patch 2, which is not necessary in v2.
Haozhong Zhang (3):
x86/mm: add function to check if a pfn is UC/UC-
KVM: add converters between pfn_t and kvm_pfn_t
KVM: MMU: consider host cache mode in MMIO page check
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
---
include/linux/kvm_host.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 6882538eda32..759fe498c89e 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_
() to get host memory type.
* Rewrite the comment in KVM MMU patch.
* Remove v1 patch 2, which is not necessary in v2.
Haozhong Zhang (3):
x86/mm: add function to check if a pfn is UC/UC-
KVM: add converters between pfn_t and kvm_pfn_t
KVM: MMU: consider host cache mode in MMIO page check
Signed-off-by: Haozhong Zhang
---
include/linux/kvm_host.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 6882538eda32..759fe498c89e 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -67,6 +67,9 @@
#define
pat_pfn_is_uc(pfn) is added and will be used by KVM to check whether
the memory type of a host pfn is UC/UC-.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
---
arch/x86/include/asm/pat.h | 2 ++
arch/x86/mm/pat.c | 14 ++
2 files changed, 16 insertions(+)
pages would be harmed.
Therefore, we check the host memory type by lookup_memtype() in
addition and only treat UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
Reported-by: Cuevas Escareno, Ivan D <ivan.d.cuevas.escar...@intel.com>
Reported-by: Kumar, Karthik
pat_pfn_is_uc(pfn) is added and will be used by KVM to check whether
the memory type of a host pfn is UC/UC-.
Signed-off-by: Haozhong Zhang
---
arch/x86/include/asm/pat.h | 2 ++
arch/x86/mm/pat.c | 14 ++
2 files changed, 16 insertions(+)
diff --git a/arch/x86/include
pages would be harmed.
Therefore, we check the host memory type by lookup_memtype() in
addition and only treat UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang
Reported-by: Cuevas Escareno, Ivan D
Reported-by: Kumar, Karthik
---
arch/x86/kvm/mmu.c | 18 +-
1 file changed, 17
On 11/02/17 13:37 -0400, Konrad Rzeszutek Wilk wrote:
> On Tue, Oct 31, 2017 at 07:48:38PM +0800, Haozhong Zhang wrote:
> > [I just copy the commit message from patch 2]
> >
> > Some reserved pages, such as those from NVDIMM DAX devices, are
> > not for MMIO, and can b
On 11/02/17 13:37 -0400, Konrad Rzeszutek Wilk wrote:
> On Tue, Oct 31, 2017 at 07:48:38PM +0800, Haozhong Zhang wrote:
> > [I just copy the commit message from patch 2]
> >
> > Some reserved pages, such as those from NVDIMM DAX devices, are
> > not for MMIO, and can b
On 11/02/17 15:56 +0800, Xiao Guangrong wrote:
>
>
> On 10/31/2017 07:48 PM, Haozhong Zhang wrote:
> > Some reserved pages, such as those from NVDIMM DAX devices, are
> > not for MMIO, and can be mapped with cached memory type for better
> > performance. However, t
On 11/02/17 15:56 +0800, Xiao Guangrong wrote:
>
>
> On 10/31/2017 07:48 PM, Haozhong Zhang wrote:
> > Some reserved pages, such as those from NVDIMM DAX devices, are
> > not for MMIO, and can be mapped with cached memory type for better
> > performance. However, t
On 10/31/17 19:48 +0800, Haozhong Zhang wrote:
> [I just copy the commit message from patch 2]
>
> Some reserved pages, such as those from NVDIMM DAX devices, are
> not for MMIO, and can be mapped with cached memory type for better
> performance. However, the above check misconcei
On 10/31/17 19:48 +0800, Haozhong Zhang wrote:
> [I just copy the commit message from patch 2]
>
> Some reserved pages, such as those from NVDIMM DAX devices, are
> not for MMIO, and can be mapped with cached memory type for better
> performance. However, the above check misconcei
Hi Wanpeng,
On 10/31/17 19:10 +0800, Wanpeng Li wrote:
> 2017-10-31 17:59 GMT+08:00 Dmitry Vyukov :
> > Hello,
> >
> > I am seeing the following crash on upstream
> > 15f859ae5c43c7f0a064ed92d33f7a5bc5de6de0 (Oct 26).
> > Reproducer:
> >
Hi Wanpeng,
On 10/31/17 19:10 +0800, Wanpeng Li wrote:
> 2017-10-31 17:59 GMT+08:00 Dmitry Vyukov :
> > Hello,
> >
> > I am seeing the following crash on upstream
> > 15f859ae5c43c7f0a064ed92d33f7a5bc5de6de0 (Oct 26).
> > Reproducer:
> >
KVM MMU will use it to get the cache mode of the host page.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
---
arch/x86/include/asm/pat.h | 2 ++
arch/x86/mm/pat.c | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/pat.h b/ar
pages would be harmed.
Therefore, we check the host memory type by lookup_memtype() in
addition and only treat UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
Reported-by: Cuevas Escareno, Ivan D <ivan.d.cuevas.escar...@intel.com>
Reported-by: Kumar, Karthik
KVM MMU will use it to get the cache mode of the host page.
Signed-off-by: Haozhong Zhang
---
arch/x86/include/asm/pat.h | 2 ++
arch/x86/mm/pat.c | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/pat.h b/arch/x86/include/asm/pat.h
index
pages would be harmed.
Therefore, we check the host memory type by lookup_memtype() in
addition and only treat UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang
Reported-by: Cuevas Escareno, Ivan D
Reported-by: Kumar, Karthik
---
arch/x86/kvm/mmu.c | 30 +++---
1 file
v1 patch 2, which is not necessary in v2.
Haozhong Zhang (2):
x86/mm: expose lookup_memtype()
KVM: MMU: consider host cache mode in MMIO page check
arch/x86/include/asm/pat.h | 2 ++
arch/x86/kvm/mmu.c | 30 +++---
arch/x86/mm/pat.c | 3 ++-
3 files
v1 patch 2, which is not necessary in v2.
Haozhong Zhang (2):
x86/mm: expose lookup_memtype()
KVM: MMU: consider host cache mode in MMIO page check
arch/x86/include/asm/pat.h | 2 ++
arch/x86/kvm/mmu.c | 30 +++---
arch/x86/mm/pat.c | 3 ++-
3 files
On 10/27/17 10:40 +0200, Ingo Molnar wrote:
>
> * Haozhong Zhang <haozhong.zh...@intel.com> wrote:
>
> > By default, KVM treats a reserved page as for MMIO purpose, and maps
> > it to guest with UC memory type. However, some reserved pages are not
> > for MMIO,
On 10/27/17 10:40 +0200, Ingo Molnar wrote:
>
> * Haozhong Zhang wrote:
>
> > By default, KVM treats a reserved page as for MMIO purpose, and maps
> > it to guest with UC memory type. However, some reserved pages are not
> > for MMIO, such as pages of DAX device (
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
---
include/linux/kvm_host.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 6882538eda32..759fe498c89e 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_
KVM MMU will use it to get the cache mode of the host pfn.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
---
arch/x86/mm/pat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index fe7d57a8fb60..cab593ea8956 100644
--- a/arch/x86/mm
Signed-off-by: Haozhong Zhang
---
include/linux/kvm_host.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 6882538eda32..759fe498c89e 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -67,6 +67,9 @@
#define
KVM MMU will use it to get the cache mode of the host pfn.
Signed-off-by: Haozhong Zhang
---
arch/x86/mm/pat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index fe7d57a8fb60..cab593ea8956 100644
--- a/arch/x86/mm/pat.c
+++ b/arch/x86/mm/pat.c
the performance. In order to
exclude those cases, we check the host cache mode in addition and only
treat UC/UC- pages as MMIO.
Haozhong Zhang (3):
x86/mm: expose track_pfn_insert()
KVM: add converters between pfn_t and kvm_pfn_t
KVM: MMU: consider host cache type in MMIO pfn check
arch/x86/kvm
the performance. In order to
exclude those cases, we check the host cache mode in addition and only
treat UC/UC- pages as MMIO.
Haozhong Zhang (3):
x86/mm: expose track_pfn_insert()
KVM: add converters between pfn_t and kvm_pfn_t
KVM: MMU: consider host cache type in MMIO pfn check
arch/x86/kvm
check the host cache mode in addition and only
treat UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com>
Reported-by: Cuevas Escareno, Ivan D <ivan.d.cuevas.escar...@intel.com>
Reported-by: Kumar, Karthik <karthik.ku...@intel.com>
---
arch/
check the host cache mode in addition and only
treat UC/UC- pages as MMIO.
Signed-off-by: Haozhong Zhang
Reported-by: Cuevas Escareno, Ivan D
Reported-by: Kumar, Karthik
---
arch/x86/kvm/mmu.c | 32 +---
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git
On 10/14/16 13:18 +0100, Andrew Cooper wrote:
On 14/10/16 08:08, Haozhong Zhang wrote:
On 10/13/16 20:33 +0100, Andrew Cooper wrote:
On 13/10/16 19:59, Dan Williams wrote:
On Thu, Oct 13, 2016 at 9:01 AM, Andrew Cooper
<andrew.coop...@citrix.com> wrote:
On 13/10/16 16:40, Dan Williams
On 10/14/16 13:18 +0100, Andrew Cooper wrote:
On 14/10/16 08:08, Haozhong Zhang wrote:
On 10/13/16 20:33 +0100, Andrew Cooper wrote:
On 13/10/16 19:59, Dan Williams wrote:
On Thu, Oct 13, 2016 at 9:01 AM, Andrew Cooper
wrote:
On 13/10/16 16:40, Dan Williams wrote:
On Thu, Oct 13, 2016 at 2
On 10/14/16 04:16 -0600, Jan Beulich wrote:
On 13.10.16 at 17:46, wrote:
On 10/13/16 03:08 -0600, Jan Beulich wrote:
On 13.10.16 at 10:53, wrote:
On 10/13/16 02:34 -0600, Jan Beulich wrote:
On 12.10.16 at 18:19,
On 10/14/16 04:16 -0600, Jan Beulich wrote:
On 13.10.16 at 17:46, wrote:
On 10/13/16 03:08 -0600, Jan Beulich wrote:
On 13.10.16 at 10:53, wrote:
On 10/13/16 02:34 -0600, Jan Beulich wrote:
On 12.10.16 at 18:19, wrote:
On Wed, Oct 12, 2016 at 9:01 AM, Jan Beulich wrote:
On 12.10.16 at
On 10/13/16 20:33 +0100, Andrew Cooper wrote:
On 13/10/16 19:59, Dan Williams wrote:
On Thu, Oct 13, 2016 at 9:01 AM, Andrew Cooper
wrote:
On 13/10/16 16:40, Dan Williams wrote:
On Thu, Oct 13, 2016 at 2:08 AM, Jan Beulich wrote:
[..]
I think
On 10/13/16 20:33 +0100, Andrew Cooper wrote:
On 13/10/16 19:59, Dan Williams wrote:
On Thu, Oct 13, 2016 at 9:01 AM, Andrew Cooper
wrote:
On 13/10/16 16:40, Dan Williams wrote:
On Thu, Oct 13, 2016 at 2:08 AM, Jan Beulich wrote:
[..]
I think we can do the similar for Xen, like to lay
On 10/13/16 03:08 -0600, Jan Beulich wrote:
On 13.10.16 at 10:53, wrote:
On 10/13/16 02:34 -0600, Jan Beulich wrote:
On 12.10.16 at 18:19, wrote:
On Wed, Oct 12, 2016 at 9:01 AM, Jan Beulich wrote:
On 12.10.16 at
On 10/13/16 03:08 -0600, Jan Beulich wrote:
On 13.10.16 at 10:53, wrote:
On 10/13/16 02:34 -0600, Jan Beulich wrote:
On 12.10.16 at 18:19, wrote:
On Wed, Oct 12, 2016 at 9:01 AM, Jan Beulich wrote:
On 12.10.16 at 17:42, wrote:
On Wed, Oct 12, 2016 at 8:39 AM, Jan Beulich wrote:
On
+Dan Williams
I accidentally dropped him in my last reply. Add him back.
On 10/13/16 16:53 +0800, Haozhong Zhang wrote:
On 10/13/16 02:34 -0600, Jan Beulich wrote:
On 12.10.16 at 18:19, <dan.j.willi...@intel.com> wrote:
On Wed, Oct 12, 2016 at 9:01 AM, Jan Beulich <jbeul...@suse.c
+Dan Williams
I accidentally dropped him in my last reply. Add him back.
On 10/13/16 16:53 +0800, Haozhong Zhang wrote:
On 10/13/16 02:34 -0600, Jan Beulich wrote:
On 12.10.16 at 18:19, wrote:
On Wed, Oct 12, 2016 at 9:01 AM, Jan Beulich wrote:
On 12.10.16 at 17:42, wrote:
On Wed, Oct
On 10/13/16 02:34 -0600, Jan Beulich wrote:
On 12.10.16 at 18:19, wrote:
On Wed, Oct 12, 2016 at 9:01 AM, Jan Beulich wrote:
On 12.10.16 at 17:42, wrote:
On Wed, Oct 12, 2016 at 8:39 AM, Jan Beulich
On 10/13/16 02:34 -0600, Jan Beulich wrote:
On 12.10.16 at 18:19, wrote:
On Wed, Oct 12, 2016 at 9:01 AM, Jan Beulich wrote:
On 12.10.16 at 17:42, wrote:
On Wed, Oct 12, 2016 at 8:39 AM, Jan Beulich wrote:
On 12.10.16 at 16:58, wrote:
On 10/12/16 05:32 -0600, Jan Beulich wrote:
On
On 10/12/16 05:32 -0600, Jan Beulich wrote:
On 12.10.16 at 12:33, wrote:
The layout is shown as the following diagram.
+---+---+---+--+--+
| whatever used | Partition | Super | Reserved | /dev/pmem0p1 |
| by kernel|
On 10/12/16 05:32 -0600, Jan Beulich wrote:
On 12.10.16 at 12:33, wrote:
The layout is shown as the following diagram.
+---+---+---+--+--+
| whatever used | Partition | Super | Reserved | /dev/pmem0p1 |
| by kernel| Table | Block | for Xen
1 - 100 of 266 matches
Mail list logo