Re: [Xen-devel] [PATCH] vt-d: use two 32-bit writes to update DMAR fault address registers

2017-10-09 Thread Zhang, Haozhong
On 10/10/17 13:36 +0800, Tian, Kevin wrote: > > From: Roger Pau Monné [mailto:roger@citrix.com] > > Sent: Wednesday, September 20, 2017 4:31 PM > > > > On Mon, Sep 11, 2017 at 02:00:48PM +0800, Haozhong Zhang wrote: > > > The 64-bit DMAR fault address is composed of two 32 bits registers > >

Re: [Xen-devel] [RFC Design Doc v2] Add vNVDIMM support for Xen

2016-07-18 Thread Zhang, Haozhong
On 07/19/16 08:58, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Monday, July 18, 2016 5:02 PM > > > > On 07/18/16 16:36, Tian, Kevin wrote: > > > > From: Zhang, Haozhong > > > > Sent: Monday, July 18, 2016 8:29 AM > > > > >

Re: [Xen-devel] [RFC Design Doc v2] Add vNVDIMM support for Xen

2016-07-18 Thread Zhang, Haozhong
On 07/18/16 16:36, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Monday, July 18, 2016 8:29 AM > > > > Hi, > > > > Following is version 2 of the design doc for supporting vNVDIMM in > > Xen. It's basically the summary of discussion on previous v

Re: [Xen-devel] [BUG] xen's LLC, UCNA and MEM testing show error messge"Failed to inject MSR"

2016-05-26 Thread Zhang, Haozhong
On 05/27/16 13:07, Zhang, PengtaoX wrote: > Bug detailed description: > > On haswell-ex and boardwell-ex server, testing the xen's LLC, MEM, UCNA, > show error message:"Failed to inject MSR: Invalid argument". > > Environment : > > HW: haswell-ex/boardwell-ex

Re: [Xen-devel] [RFC Design Doc] Add vNVDIMM support for Xen

2016-03-19 Thread Zhang, Haozhong
On 03/17/16 22:12, Xu, Quan wrote: > On March 17, 2016 9:37pm, Haozhong Zhang wrote: > > For PV guests (if we add vNVDIMM support for them in future), as I'm going > > to > > use page_info struct for it, I suppose the current mechanism in Xen can > > handle > > this

Re: [Xen-devel] [PATCH v5 6/6] docs: Add descriptions of TSC scaling in xl.cfg and tscmode.txt

2016-02-28 Thread Zhang, Haozhong
On 02/29/16 10:02, Tian, Kevin wrote: > > From: Jan Beulich [mailto:jbeul...@suse.com] > > Sent: Friday, February 26, 2016 4:01 PM > > > > >>> On 26.02.16 at 05:37, <kevin.t...@intel.com> wrote: > > >> From: Zhang, Haozhong > > >>

Re: [Xen-devel] [PATCH v5 6/6] docs: Add descriptions of TSC scaling in xl.cfg and tscmode.txt

2016-02-25 Thread Zhang, Haozhong
On 02/26/16 12:37, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Tuesday, February 23, 2016 10:05 AM > > > > Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com> > > Reviewed-by: Kevin Tian <kevin.t...@intel.com>, except: > > > +

Re: [Xen-devel] [PATCH v4 06/10] x86/hvm: Setup TSC scaling ratio

2016-02-16 Thread Zhang, Haozhong
On 02/05/16 21:54, Jan Beulich wrote: > >>> On 17.01.16 at 22:58, wrote: > > +u64 hvm_get_tsc_scaling_ratio(u32 gtsc_khz) > > +{ > > +u64 ratio; > > + > > +if ( !hvm_tsc_scaling_supported ) > > +return 0; > > + > > +/* > > + * The multiplication

Re: [Xen-devel] [PATCH v4 05/10] x86: Add functions for 64-bit integer arithmetic

2016-02-16 Thread Zhang, Haozhong
On 02/05/16 21:36, Jan Beulich wrote: > >>> On 17.01.16 at 22:58, wrote: > > This patch adds several functions to take multiplication, division and > > shifting involving 64-bit integers. > > > > Signed-off-by: Haozhong Zhang > > Reviewed-by:

Re: [Xen-devel] [RESEND PATCH v4 09/10] vmx: Add VMX RDTSC(P) scaling support

2016-02-16 Thread Zhang, Haozhong
On 02/05/16 22:06, Jan Beulich wrote: > >>> On 19.01.16 at 03:55, wrote: > > @@ -2107,6 +2115,14 @@ const struct hvm_function_table * __init > > start_vmx(void) > > && cpu_has_vmx_secondary_exec_control ) > > vmx_function_table.pvh_supported = 1; > >

Re: [Xen-devel] [PATCH v4 04/10] x86/hvm: Collect information of TSC scaling ratio

2016-02-16 Thread Zhang, Haozhong
On 02/05/16 19:41, Jan Beulich wrote: > >>> On 17.01.16 at 22:58, wrote: > > Both VMX TSC scaling and SVM TSC ratio use the 64-bit TSC scaling ratio, > > but the number of fractional bits of the ratio is different between VMX > > and SVM. This patch adds the architecture

Re: [Xen-devel] [RFC Design Doc] Add vNVDIMM support for Xen

2016-02-15 Thread Zhang, Haozhong
On 02/03/16 23:47, Konrad Rzeszutek Wilk wrote: > > > > > Open: It seems no system call/ioctl is provided by Linux kernel to > > > > >get the physical address from a virtual address. > > > > >/proc//pagemap provides information of mapping from > > > > >VA to PA. Is it an

Re: [Xen-devel] [RFC Design Doc] Add vNVDIMM support for Xen

2016-02-14 Thread Zhang, Haozhong
On 02/04/16 20:24, Stefano Stabellini wrote: > On Thu, 4 Feb 2016, Haozhong Zhang wrote: > > On 02/03/16 15:22, Stefano Stabellini wrote: > > > On Wed, 3 Feb 2016, George Dunlap wrote: > > > > On 03/02/16 12:02, Stefano Stabellini wrote: > > > > > On Wed, 3 Feb 2016, Haozhong Zhang wrote: > > > >

Re: [Xen-devel] [RFC Design Doc] Add vNVDIMM support for Xen

2016-02-02 Thread Zhang, Haozhong
On 02/02/16 16:03, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Tuesday, February 02, 2016 3:53 PM > > > > On 02/02/16 15:48, Tian, Kevin wrote: > > > > From: Zhang, Haozhong > > > > Sent: Tuesday, February 02, 2016 3:39 PM > > &

Re: [Xen-devel] [RFC Design Doc] Add vNVDIMM support for Xen

2016-02-01 Thread Zhang, Haozhong
Hi Kevin, Thanks for your review! On 02/02/16 14:33, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Monday, February 01, 2016 1:44 PM > > > [...] > > > > 1.2 ACPI Support > > > > ACPI provides two factors of support for NVDIMM. First,

Re: [Xen-devel] [RFC Design Doc] Add vNVDIMM support for Xen

2016-02-01 Thread Zhang, Haozhong
On 02/02/16 15:48, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Tuesday, February 02, 2016 3:39 PM > > > > > btw, how is persistency guaranteed in KVM/QEMU, cross guest > > > power off/on? I guess since Qemu process is killed the allocated pmem &

Re: [Xen-devel] [PATCH 0/4] add support for vNVDIMM

2016-01-20 Thread Zhang, Haozhong
On 01/20/16 14:35, Stefano Stabellini wrote: > On Wed, 20 Jan 2016, Zhang, Haozhong wrote: > > On 01/20/16 12:43, Stefano Stabellini wrote: > > > On Wed, 20 Jan 2016, Tian, Kevin wrote: > > > > > From: Zhang, Haozhong > > > &g

Re: [Xen-devel] [PATCH 0/4] add support for vNVDIMM

2016-01-20 Thread Zhang, Haozhong
On 01/20/16 12:43, Stefano Stabellini wrote: > On Wed, 20 Jan 2016, Tian, Kevin wrote: > > > From: Zhang, Haozhong > > > Sent: Tuesday, December 29, 2015 7:32 PM > > > > > > This patch series is the Xen part patch to provide virtual NVDIMM to > >

Re: [Xen-devel] [PATCH 4/4] hvmloader: add support to load extra ACPI tables from qemu

2016-01-19 Thread Zhang, Haozhong
On 01/20/16 13:14, Tian, Kevin wrote: > > From: Jan Beulich [mailto:jbeul...@suse.com] > > Sent: Tuesday, January 19, 2016 7:47 PM > > > > >>> On 19.01.16 at 12:37, wrote: > > > On Mon, Jan 18, 2016 at 01:46:29AM -0700, Jan Beulich wrote: > > >> >>> On 18.01.16 at 01:52,

Re: [Xen-devel] [PATCH v2 2/2] x86/hvm: add support for pcommit instruction

2016-01-04 Thread Zhang, Haozhong
On 01/05/16 15:19, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Tuesday, January 05, 2016 3:15 PM > > > > On 01/05/16 15:08, Tian, Kevin wrote: > > > > From: Zhang, Haozhong > > > > Sent: Wednesday, December 30, 2015 7:49 PM > >

Re: [Xen-devel] [PATCH v2 2/2] x86/hvm: add support for pcommit instruction

2016-01-04 Thread Zhang, Haozhong
On 01/05/16 15:08, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Wednesday, December 30, 2015 7:49 PM > > > > Pass PCOMMIT CPU feature into HMV domain. Currently, we do not intercept > > pcommit instruction for L1 guest, and allow L1 to intercept pcommi

Re: [Xen-devel] [PATCH v2 09/14] x86/hvm: Setup TSC scaling ratio

2015-12-10 Thread Zhang, Haozhong
On 12/10/15 18:27, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Monday, December 07, 2015 4:59 AM > > > > This patch adds a field tsc_scaling_ratio in struct hvm_vcpu to > > record the TSC scaling ratio, and sets it up when tsc_set_info() is > &

Re: [Xen-devel] [PATCH v2 14/14] docs: Add descriptions of TSC scaling in xl.cfg and tscmode.txt

2015-12-10 Thread Zhang, Haozhong
On 12/10/15 18:40, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Monday, December 07, 2015 4:59 AM > g and tscmode.txt > > > > Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com> > > --- > > docs/man/xl.cfg.pod.5 | 15 ++

Re: [Xen-devel] [PATCH v2 08/14] x86/hvm: Collect information of TSC scaling ratio

2015-12-10 Thread Zhang, Haozhong
On 12/10/15 18:19, Tian, Kevin wrote: > > From: Zhang, Haozhong > > Sent: Monday, December 07, 2015 4:59 AM > ratio > > > > Both VMX TSC scaling and SVM TSC ratio use the 64-bit TSC scaling ratio, > > but the number of fractional bits of the ratio is different be