Help with Understanding vcpu xstate restore error during vm migration

2024-07-11 Thread Fonyuy-Asheri Caleb
Hello, I am trying to understand the causes of the vcpu xstate restore error during live migration. I get the following error during live migration: xc: error: Failed to set vcpu0's xsave info (22 = Invalid argument): Internal error I was able to locate the failure point to the file xen/ar

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-07-11 Thread Fonyuy-Asheri Caleb
- Original Message - > From: "Andrew Cooper" > To: "Fonyuy-Asheri Caleb" , "xen-devel" > > Sent: Thursday, July 11, 2024 12:45:18 PM > Subject: Re: Help with Understanding vcpu xstate restore error during vm > migration > On 11/07

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-07-11 Thread Fonyuy-Asheri Caleb
>> Please do you mind giving me more insight on the logic currently implemented >> and maybe what is wrong with it? It will be important for me since what I'm >> doing is research work. > > See 9e6dbbe8bf40^..267122a24c49 What reference is this please? > >> How do the values evc->size and xf

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-07-11 Thread Fonyuy-Asheri Caleb
- Original Message - > From: "Andrew Cooper" > To: "Fonyuy-Asheri Caleb" > Cc: "xen-devel" , "Jan Beulich" > , "Roger Pau Monné" > > Sent: Thursday, July 11, 2024 3:04:05 PM > Subject: Re: Help with Understanding

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-07-12 Thread Fonyuy-Asheri Caleb
Hi Andrew, >> I was able to locate the failure point to the file >> xen/arch/x86/domctl.c  with the following check. >> >> if( evc->size> evc->size>PV_XSAVE_SIZE(xfeature_mask) ) >> gotovcpuextstate_out; > > It is certainly more complicated than that. > > What that's saying is that Xen doesn't

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-07-15 Thread Fonyuy-Asheri Caleb
>> PV Default policy: 30 leaves, 2 MSRs >> ... >> 000d: -> 0003::0240: >> 000d:0001 -> 0007::: > > ... PV guests get nothing, while you're trying to migrate in a guest > which... > >> =

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-07-15 Thread Fonyuy-Asheri Caleb
- Original Message - > From: "Jan Beulich" > To: "Fonyuy-Asheri Caleb" > Cc: "xen-devel" , "Andrew Cooper" > > Sent: Monday, July 15, 2024 10:16:07 AM > Subject: Re: Help with Understanding vcpu xstate restore error during v

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-07-15 Thread Fonyuy-Asheri Caleb
>>> On 15.07.2024 09:38, Fonyuy-Asheri Caleb wrote: >>>>> Perhaps the more important question, are you booting the skylake with >>>>> cpuid=no-avx on the command line by any chance? >>>> >>>> No. I didn't boot any of the machine

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-07-15 Thread Fonyuy-Asheri Caleb
> On 15.07.2024 10:48, Fonyuy-Asheri Caleb wrote: >>>>> On 15.07.2024 09:38, Fonyuy-Asheri Caleb wrote: >>>>>>> Perhaps the more important question, are you booting the skylake with >>>>>>> cpuid=no-avx on the command line by any chan

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-08-06 Thread Fonyuy-Asheri Caleb
Hello Andrew, Hello Jan, Please permit me to come back to this once again. > On 15/07/2024 9:16 am, Jan Beulich wrote: >> On 15.07.2024 09:38, Fonyuy-Asheri Caleb wrote: >>>> Perhaps the more important question, are you booting the skylake with >>>> cpuid=

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-08-06 Thread Fonyuy-Asheri Caleb
> If what you say in the earlier paragraph was the case with upstream Xen and > without you restricting what the guest being migrated was able to see on the > source host, then I think that would indicate a bug somewhere. Yet you don't > provide enough details to be certain. > > Jan Sorry for not

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-08-06 Thread Fonyuy-Asheri Caleb
> On 06.08.2024 09:34, Fonyuy-Asheri Caleb wrote: >>> If what you say in the earlier paragraph was the case with upstream Xen and >>> without you restricting what the guest being migrated was able to see on the >>> source host, then I think that would indicate

Re: Help with Understanding vcpu xstate restore error during vm migration

2024-08-06 Thread Fonyuy-Asheri Caleb
> > None of these require extra state (i.e. registers), hence ... > >> Per my current understanding, I would expect more xstates on the VM than >> supported on the target >> server and hence a failure with xstate verification when restoring CPU state. > > ... no extra "xstates" (as you name it).

file xen/include/xen/lib/x86/cpu-policy.h: Meaning of CPUID constants

2024-05-06 Thread Fonyuy-Asheri Caleb
Hi, I am currently doing a study on the way xen handles CPUID information. I came across these constants in the code (xen/include/xen/lib/x86/cpu-policy.h file) but no explanation of why they have been set that way. #define CPUID_GUEST_NR_BASIC (0xdu + 1) #define CPUID_GUEST_NR_CACHE (5u + 1

Re: file xen/include/xen/lib/x86/cpu-policy.h: Meaning of CPUID constants

2024-05-06 Thread Fonyuy-Asheri Caleb
> From: "Roger Pau Monné" > To: "Fonyuy-Asheri Caleb" > Cc: "xen-devel" > Sent: Monday, May 6, 2024 10:34:20 AM > Subject: Re: file xen/include/xen/lib/x86/cpu-policy.h: Meaning of CPUID > constants > On Mon, May 06, 2024 at 09:46:58

Help With Identifying CPUID faulting logic in Xen code

2025-01-03 Thread Fonyuy-Asheri Caleb
Hello, I am interested in finding understanding how xen handles CPUID faulting and VM exits in general. Please can someone indicate to me the concerned files? I want to know how xen detects the execution of the CPUID instruction and ensures a guest only gets the features defined in cpuid-auto

Re: Help With Identifying CPUID faulting logic in Xen code

2025-01-03 Thread Fonyuy-Asheri Caleb
Thank you Caleb - Original Message - > From: "Andrew Cooper" > To: "Fonyuy-Asheri Caleb" , "xen-devel" > > Cc: "Jan Beulich" > Sent: Friday, January 3, 2025 3:35:43 PM > Subject: Re: Help With Identifying CPUID faulting logic