Re: [Xen-devel] [PATCH] x86/AMD-ucode: correct multiple container handling

2014-12-15 Thread Aravind Gopalakrishnan
in cpu_request_microcode()'s first loop, and also check the types of skipped blocks in container_fast_forward(). Signed-off-by: Jan Beulichjbeul...@suse.com Reviewed-by: Andrew Cooper andrew.coop...@citrix.com Reviewed-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com

Re: [Xen-devel] Xen 4.6 Development Update (two months reminder)

2015-03-12 Thread Aravind Gopalakrishnan
On 3/12/2015 6:54 AM, Jan Beulich wrote: * amd_ucode cleanups, verify patch size(enhancement) (mostly in master except one patch) Which one? This is in reference to the patches to microcode_amd and it's all 'done' in 4.5 itself. I think when we were tracking this, commit 8b24b07e was not in

Re: [Xen-devel] [PATCH v22 11/14] x86/VPMU: Handle PMU interrupts for PV(H) guests

2015-05-28 Thread Aravind Gopalakrishnan
On 5/26/2015 1:09 PM, Boris Ostrovsky wrote: On 05/26/2015 12:24 PM, Jan Beulich wrote: On 21.05.15 at 19:57, boris.ostrov...@oracle.com wrote: @@ -188,27 +189,52 @@ static inline void context_load(struct vcpu *v) } } -static void amd_vpmu_load(struct vcpu *v) +static int

Re: [Xen-devel] [PATCH] x86, amd_ucode: Skip microcode updates for final levels

2015-07-31 Thread Aravind Gopalakrishnan
On 7/31/2015 3:48 PM, Andrew Cooper wrote: So, the patch id values have only been obtained empirically. The Linux patch provides the bug reference for this:https://bugzilla.suse.com/show_bug.cgi?id=913996 (It's a fairly long thread but the gist of it is that people predominantly seem to be

Re: [Xen-devel] [PATCH] x86, amd_ucode: Skip microcode updates for final levels

2015-07-31 Thread Aravind Gopalakrishnan
On 7/30/2015 12:01 PM, Andrew Cooper wrote: On 30/07/15 17:23, Aravind Gopalakrishnan wrote: Some of older[Fam10h] systems require that the microcode versions that it comes up with should not be updated by the microcode driver. Otherwise, system hangs are known to occur. In this patch, we

[Xen-devel] [PATCH V2] x86, amd_ucode: Skip microcode updates for final levels

2015-08-03 Thread Aravind Gopalakrishnan
version of the patch has already made it into tip- http://marc.info/?l=linux-kernelm=143703405627170 Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- Changes from V1 (per Andrew) - use commit text from linux patch - include details about how 'final_levels' are obtaines

Re: [Xen-devel] [PATCH V2] x86, amd_ucode: Skip microcode updates for final levels

2015-08-03 Thread Aravind Gopalakrishnan
On 8/3/2015 12:22 PM, Boris Ostrovsky wrote: On 08/03/2015 12:35 PM, Aravind Gopalakrishnan wrote: Some of older[Fam10h] systems require that certain number of applied microcode patch levels should not be overwritten by the microcode loader. Otherwise, system hangs are known to occur

Re: [Xen-devel] [PATCH V2] x86, amd_ucode: Skip microcode updates for final levels

2015-08-03 Thread Aravind Gopalakrishnan
On 8/3/2015 1:18 PM, Boris Ostrovsky wrote: On 08/03/2015 01:52 PM, Aravind Gopalakrishnan wrote: On 8/3/2015 12:22 PM, Boris Ostrovsky wrote: On 08/03/2015 12:35 PM, Aravind Gopalakrishnan wrote: Some of older[Fam10h] systems require that certain number of applied microcode patch levels

Re: [Xen-devel] [PATCH V2] x86, amd_ucode: Skip microcode updates for final levels

2015-08-03 Thread Aravind Gopalakrishnan
On 8/3/2015 2:00 PM, Boris Ostrovsky wrote: On 08/03/2015 02:42 PM, Aravind Gopalakrishnan wrote: Ah. I see what you mean. I can think of two ways around this- a. I can move the check_final_patch_levels() call to apply_microcode(). That way, our initial checks in microcode_fits() would have

[Xen-devel] [PATCH V3] x86, amd_ucode: Skip microcode updates for final levels

2015-08-03 Thread Aravind Gopalakrishnan
version of the patch has already made it into tip- http://marc.info/?l=linux-kernelm=143703405627170 Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com Reviewed-by: Andrew Cooper andrew.coop...@citrix.com --- Changes from V2 (per Boris) - introduce family check as it's

[Xen-devel] [PATCH] x86, amd_ucode: Skip microcode updates for final levels

2015-07-30 Thread Aravind Gopalakrishnan
is already applied by the BIOS. A linux version of the patch has already made it into tip- http://marc.info/?l=linux-kernelm=143703405627170 Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- xen/arch/x86/microcode_amd.c | 31 +++ 1 file changed, 31

Re: [Xen-devel] [PATCH V3] x86, amd_ucode: Skip microcode updates for final levels

2015-08-11 Thread Aravind Gopalakrishnan
On 8/11/2015 9:53 AM, Jan Beulich wrote: On 03.08.15 at 21:34, aravind.gopalakrish...@amd.com wrote: --- a/xen/arch/x86/microcode_amd.c +++ b/xen/arch/x86/microcode_amd.c @@ -347,6 +347,43 @@ static int container_fast_forward(const void *data, size_t size_left, size_t *of return 0; }

Re: [Xen-devel] [PATCH V3] x86, amd_ucode: Skip microcode updates for final levels

2015-08-11 Thread Aravind Gopalakrishnan
On 8/11/2015 10:17 AM, Andrew Cooper wrote: +0x0198, +0x019f, +0x01af +}; + +static bool_t check_final_patch_levels(int cpu) unsigned int I can change this too, but- Any specific reason for this? The other sanity checker or verification functions like

Re: [Xen-devel] [PATCH V3] x86, amd_ucode: Skip microcode updates for final levels

2015-08-11 Thread Aravind Gopalakrishnan
On 8/11/2015 10:32 AM, Jan Beulich wrote: +static bool_t check_final_patch_levels(int cpu) unsigned int I can change this too, but- Any specific reason for this? The other sanity checker or verification functions like verify_patch_size() or microcode_fits() return a bool_t too.. int cpu is

[Xen-devel] [PATCH V4 0/2] Update microcode driver

2015-08-11 Thread Aravind Gopalakrishnan
unsigned int usage Aravind Gopalakrishnan (2): x86/microcode: Cleanup int type usage for cpu numbers x86, amd_ucode: Skip microcode updates for final levels xen/arch/x86/microcode.c| 6 ++--- xen/arch/x86/microcode_amd.c| 57 + xen/arch/x86

[Xen-devel] [PATCH V4 2/2] x86, amd_ucode: Skip microcode updates for final levels

2015-08-11 Thread Aravind Gopalakrishnan
version of the patch has already made it into tip- http://marc.info/?l=linux-kernelm=143703405627170 Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com Reviewed-by: Andrew Cooper andrew.coop...@citrix.com Reviewed-by: Boris Ostrovsky boris.ostrov...@oracle.com --- xen/arch/x86

[Xen-devel] [PATCH V4 1/2] x86/microcode: Cleanup int type usage for cpu numbers

2015-08-11 Thread Aravind Gopalakrishnan
CPU numbers can't be negative. Fixing the microcode* files to properly use unsigned type in this patch. No functional change is introduced. Signed-off-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- xen/arch/x86/microcode.c| 6 +++--- xen/arch/x86/microcode_amd.c| 12

Re: [Xen-devel] [PATCH V4 2/2] x86, amd_ucode: Skip microcode updates for final levels

2015-08-13 Thread Aravind Gopalakrishnan
On 8/12/2015 4:38 AM, Jan Beulich wrote: On 11.08.15 at 21:11, aravind.gopalakrish...@amd.com wrote: Some of older[Fam10h] systems require that certain number of applied microcode patch levels should not be overwritten by the microcode loader. Otherwise, system hangs are known to occur. The

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread Aravind Gopalakrishnan
On 10/22/2015 10:44 AM, Boris Ostrovsky wrote: On 10/22/2015 10:17 AM, Jan Beulich wrote: On 28.09.15 at 09:13, wrote: The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() calculate the guest TSC by adding the TSC offset to the host TSC. When the TSC

Re: [Xen-devel] [PATCH 04/10] x86/HVM: prefix both instances of enable_intr_window()

2015-10-20 Thread Aravind Gopalakrishnan
On 10/20/2015 5:41 AM, Jan Beulich wrote: ... to tell them apart by their names even without further context. Signed-off-by: Jan Beulich <jbeul...@suse.com> Reviewed-by: Aravind Gopalakrishnan<aravind.gopalakrish...@amd.com> Than

Re: [Xen-devel] [PATCH v25 11/15] VPMU/AMD: Check MSR values before writing to hardware

2015-07-08 Thread Aravind Gopalakrishnan
those bits. Signed-off-by: Boris Ostrovsky boris.ostrov...@oracle.com Reviewed-by: Aravind Gopalakrishnan aravind.gopalakrish...@amd.com --- xen/arch/x86/hvm/svm/vpmu.c | 49 +++-- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/xen/arch

Re: [Xen-devel] [PATCH v6 20/29] xen/x86: allow disabling the emulated IOMMU

2015-09-28 Thread Aravind Gopalakrishnan
On 9/4/2015 7:08 AM, Roger Pau Monne wrote: Signed-off-by: Roger Pau Monné <roger@citrix.com> Acked-by: Andrew Cooper <andrew.coop...@citrix.com> Cc: Suravee Suthikulpanit <suravee.suthikulpa...@amd.com> Cc: Aravind Gopalakrishnan <aravind.gopalakrish...@amd.com&

Re: [Xen-devel] [PATCH] x86emul: support clzero

2016-01-11 Thread Aravind Gopalakrishnan
here. All that's required is sensible guest side data for the clflush line size. Signed-off-by: Jan Beulich <jbeul...@suse.com> Reviewed-by: Aravind Gopalakrishnan <aravind.gopalakrish...@amd.com> Thanks, -Aravind. ___ Xen-devel mail

[Xen-devel] [PATCH] AMD, maintainers: Remove myself from list

2016-03-02 Thread Aravind Gopalakrishnan
I will not be looking at AMD related Xen code now. So, removing myself. Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrish...@amd.com> --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 932b05c..7aacfd6 100644 --- a/MAINTAINERS