Re: [PATCH v12] qapi: introduce 'query-x86-cpuid' QMP command.

2021-09-03 Thread Valeriy Vdovin
On Tue, 24 Aug 2021 08:48:31 +0200 Marcus Armbruster wrote: >Eduardo Habkost writes: > >> On Mon, Aug 23, 2021 at 9:35 AM Markus Armbruster wrote: >>> >>> Eduardo Habkost writes: >>> >>> > On Wed, Aug 11, 2021 at 9:44 AM Thomas Huth wrote: >>> >> >>> >> On 11/08/2021 15.40, Eduardo Habkost wr

[PATCH v15] qapi: introduce 'query-x86-cpuid' QMP command.

2021-08-16 Thread Valeriy Vdovin
From: Valeriy Vdovin Introducing new QMP command 'query-x86-cpuid'. This command can be used to get virtualized cpu model info generated by QEMU during VM initialization in the form of cpuid representation. Diving into more details about virtual CPU generation: QEMU first parses 

[PATCH v14] qapi: introduce 'query-x86-cpuid' QMP command.

2021-08-09 Thread Valeriy Vdovin
From: Valeriy Vdovin Introducing new QMP command 'query-x86-cpuid'. This command can be used to get virtualized cpu model info generated by QEMU during VM initialization in the form of cpuid representation. Diving into more details about virtual CPU generation: QEMU first parses 

[PATCH v13] qapi: introduce 'query-x86-cpuid' QMP command.

2021-08-09 Thread Valeriy Vdovin
From: Valeriy Vdovin Introducing new QMP command 'query-x86-cpuid'. This command can be used to get virtualized cpu model info generated by QEMU during VM initialization in the form of cpuid representation. Diving into more details about virtual CPU generation: QEMU first parses 

[PATCH v13] qapi: introduce 'query-x86-cpuid' QMP command.

2021-07-28 Thread Valeriy Vdovin
"edx": 0, "in-eax": 1073741825, "ecx": 0, "ebx": 0 }, { "eax": 13, "edx": 1231384169, "in-eax": 0, "ecx": 1818588270, "ebx": 1970169159 }, {

[PATCH v12] qapi: introduce 'query-x86-cpuid' QMP command.

2021-07-28 Thread Valeriy Vdovin
"edx": 0, "in-eax": 1073741825, "ecx": 0, "ebx": 0 }, { "eax": 13, "edx": 1231384169, "in-eax": 0, "ecx": 1818588270, "ebx": 1970169159

Re: [PATCH v9] qapi: introduce 'query-kvm-cpuid' action

2021-06-30 Thread Valeriy Vdovin
On Mon, Jun 21, 2021 at 07:09:51PM +0300, Valeriy Vdovin wrote: > On Mon, Jun 21, 2021 at 05:50:55PM +0200, Markus Armbruster wrote: > > Eduardo Habkost writes: > > > > > On Mon, Jun 21, 2021 at 10:07:44AM +0200, Claudio Fontana wrote: > > >> On 6/1

Re: [PATCH v9] qapi: introduce 'query-kvm-cpuid' action

2021-06-21 Thread Valeriy Vdovin
AM +0200, Markus Armbruster wrote: > >> >> Eduardo Habkost writes: > >> >> > >> >>> On Thu, Jun 17, 2021 at 05:53:11PM +0200, Claudio Fontana wrote: > >> >>>> On 6/17/21 5:39 PM, Valeriy Vdovin wrote: > >> >>>>> On Th

Re: [PATCH v9] qapi: introduce 'query-kvm-cpuid' action

2021-06-17 Thread Valeriy Vdovin
On Thu, Jun 17, 2021 at 04:14:17PM +0200, Markus Armbruster wrote: > Claudio Fontana writes: > > > On 6/17/21 1:09 PM, Markus Armbruster wrote: > >> Valeriy Vdovin writes: > >> > >>> On Thu, Jun 17, 2021 at 07:22:36AM +0200, Markus Armbr

Re: [PATCH v9] qapi: introduce 'query-kvm-cpuid' action

2021-06-17 Thread Valeriy Vdovin
On Thu, Jun 17, 2021 at 01:58:09PM +0200, Claudio Fontana wrote: > On 6/17/21 9:49 AM, Valeriy Vdovin wrote: > > On Thu, Jun 17, 2021 at 07:22:36AM +0200, Markus Armbruster wrote: > >> Valeriy Vdovin writes: > >> > >>> Introducing new qapi method '

[PATCH v11] qapi: introduce 'query-kvm-cpuid' QMP command.

2021-06-17 Thread Valeriy Vdovin
"ebx": 0 }, { "eax": 13, "edx": 1231384169, "in-eax": 0, "ecx": 1818588270, "ebx": 1970169159 }, { "eax": 198354, "edx": 126614527, "in-eax": 1,

[PATCH v10] qapi: introduce 'query-kvm-cpuid' QMP command.

2021-06-17 Thread Valeriy Vdovin
, "ebx": 0 }, { "eax": 13, "edx": 1231384169, "in-eax": 0, "ecx": 1818588270, "ebx": 1970169159 }, { "eax": 198354, "edx": 126614527, "in-

Re: [PATCH v9] qapi: introduce 'query-kvm-cpuid' action

2021-06-17 Thread Valeriy Vdovin
On Thu, Jun 17, 2021 at 07:22:36AM +0200, Markus Armbruster wrote: > Valeriy Vdovin writes: > > > Introducing new qapi method 'query-kvm-cpuid'. This method can be used to > > It's actually a QMP command. There are no "qapi methods". > > &

Re: [PATCH v8] qapi: introduce 'query-kvm-cpuid' action

2021-06-08 Thread Valeriy Vdovin
On Tue, Jun 08, 2021 at 05:14:16PM +0200, Markus Armbruster wrote: > Double-checking: this supersedes "[PATCH v7 0/1] qapi: introduce > 'query-cpu-model-cpuid' action"? > Yes. I've changed the title in response to the changed api name and just forgot that I should have linked it to the previous ve

[PATCH v9] qapi: introduce 'query-kvm-cpuid' action

2021-06-03 Thread Valeriy Vdovin
edx": 0, "in-eax": 1073741825, "ecx": 0, "ebx": 0 }, { "eax": 13, "edx": 1231384169, "in-eax": 0, "ecx": 1818588270, "ebx": 1970169159 }, { "eax

Re: [PATCH v8] qapi: introduce 'query-kvm-cpuid' action

2021-06-03 Thread Valeriy Vdovin
On Wed, Jun 02, 2021 at 03:51:02PM -0500, Eric Blake wrote: > On Mon, May 31, 2021 at 03:38:06PM +0300, Valeriy Vdovin wrote: > > Introducing new qapi method 'query-kvm-cpuid'. This method can be used to > > get virtualized cpu model info generated by QEMU during VM initi

[PATCH v8] qapi: introduce 'query-kvm-cpuid' action

2021-05-31 Thread Valeriy Vdovin
3741825, "ecx": 0, "ebx": 0, }, { "eax": 13, "edx": 1231384169, "in_eax": 0, "ecx": 1818588270, "ebx": 1970169159, }, { "eax": 198354, "edx": 126614527, Signed-off

Re: [PATCH v7 1/1] qapi: introduce 'query-cpu-model-cpuid' action

2021-05-31 Thread Valeriy Vdovin
On Wed, May 26, 2021 at 05:44:24PM -0400, Eduardo Habkost wrote: > On Tue, May 04, 2021 at 03:26:39PM +0300, Valeriy Vdovin wrote: > > Introducing new qapi method 'query-cpu-model-cpuid'. This method can be > > used to > > get virtualized cpu model info generated b

[PATCH v7 0/1] qapi: introduce 'query-cpu-model-cpuid' action

2021-05-04 Thread Valeriy Vdovin
09 is from Paolo Bonzini. There he suggests to cache the the whole cpuid entries table that we pass to the kernel via KVM_SET_CPUID2 and later just output this cached data instead of calling the same table via KVM_GET_CPUID2. Current patch is the reflection of that idea. Valeriy Vdovin (1):

[PATCH v7 1/1] qapi: introduce 'query-cpu-model-cpuid' action

2021-05-04 Thread Valeriy Vdovin
;: 0, "leaf": 1073741825, "ecx": 0, "ebx": 0, "subleaf": 0 }, { "eax": 13, "edx": 1231384169, "leaf": 0, "ecx": 1818588270, "ebx": 1970169159, "subleaf":

Re: [PATCH v6] qapi: introduce 'query-cpu-model-cpuid' action

2021-04-22 Thread Valeriy Vdovin
On Wed, Apr 21, 2021 at 04:17:59PM -0400, Eduardo Habkost wrote: > On Wed, Apr 21, 2021 at 08:39:42PM +0300, Valeriy Vdovin wrote: > > On Tue, Apr 20, 2021 at 01:09:00PM -0400, Eduardo Habkost wrote: > > > On Tue, Apr 20, 2021 at 07:19:40PM +0300, Va

Re: [PATCH v6] qapi: introduce 'query-cpu-model-cpuid' action

2021-04-21 Thread Valeriy Vdovin
On Tue, Apr 20, 2021 at 01:09:00PM -0400, Eduardo Habkost wrote: > On Tue, Apr 20, 2021 at 07:19:40PM +0300, Valeriy Vdovin wrote: > [...] > > +## > > +# @query-cpu-model-cpuid: > > +# > > +# Returns description of a virtual CPU model, created by QEMU after cpu >

[PATCH v6] qapi: introduce 'query-cpu-model-cpuid' action

2021-04-20 Thread Valeriy Vdovin
ot; }, "id": "libvirt-40" } Also, cpu_x86_cpuid function has been modified to return bool value depending on what are the arguments of leaf and subleaf (or index and count). In cases where leaf/subleaf arguments are invalid the function returns false. Note, that this method i

[PATCH v5] qapi: introduce 'query-cpu-model-cpuid' action

2021-04-16 Thread Valeriy Vdovin
x": 0, "subleaf": 0 } ] }, ] }, "vendor": "GenuineIntel", "class-name": "Skylake-Client-IBRS-x86_64-cpu", "model-id": "Intel Core Processor (Skylake, IBRS)"

[PATCH v4] qapi: introduce 'query-cpu-model-cpuid' action

2021-04-15 Thread Valeriy Vdovin
x": 0, "subleaf": 0 } ] }, ] }, "vendor": "GenuineIntel", "class-name": "Skylake-Client-IBRS-x86_64-cpu", "model-id": "Intel Core Processor (Skylake, IBRS)"

Re: [PATCH v2] qapi: introduce 'query-cpu-model-cpuid' action

2021-04-02 Thread Valeriy Vdovin
On Wed, Mar 31, 2021 at 11:19:35AM +0200, Igor Mammedov wrote: > On Tue, 30 Mar 2021 12:37:11 +0300 > Valeriy Vdovin wrote: > > > On Tue, Mar 30, 2021 at 02:15:10AM +0200, Igor Mammedov wrote: > > > On Thu, 25 Mar 2021 19:57:05 +0300 > > > Valeriy Vdovin wrote:

Re: [PATCH v2] qapi: introduce 'query-cpu-model-cpuid' action

2021-03-30 Thread Valeriy Vdovin
On Tue, Mar 30, 2021 at 02:15:10AM +0200, Igor Mammedov wrote: > On Thu, 25 Mar 2021 19:57:05 +0300 > Valeriy Vdovin wrote: > > > Introducing new qapi method 'query-cpu-model-cpuid'. This method can be > > used to > > get virtualized cpu model info generate

Re: [PATCH v3] qapi: introduce 'query-cpu-model-cpuid' action

2021-03-29 Thread Valeriy Vdovin
On Mon, Mar 29, 2021 at 10:20:54AM +0100, Daniel P. Berrang?? wrote: > On Fri, Mar 26, 2021 at 08:30:00PM +0300, Valeriy Vdovin wrote: > > Other than debug, the method is useful in cases when we would like to > > utilize QEMU's virtual cpu initialization routines and put the

[PATCH v3] qapi: introduce 'query-cpu-model-cpuid' action

2021-03-26 Thread Valeriy Vdovin
"ecx": 4160369187, "ebx": 133120, "subleaf": 0 } ] }, { "leaf": 2, "subleafs": [ { "eax": 1, "edx": 2895997, "ecx": 0, &quo

Re: [PATCH v2] qapi: introduce 'query-cpu-model-cpuid' action

2021-03-26 Thread Valeriy Vdovin
On Fri, Mar 26, 2021 at 01:01:49PM +0300, Vladimir Sementsov-Ogievskiy wrote: > 25.03.2021 19:57, Valeriy Vdovin wrote: > >Introducing new qapi method 'query-cpu-model-cpuid'. This method can be used > >to > >get virtualized cpu model info generated by QEMU during V

[PATCH v2] qapi: introduce 'query-cpu-model-cpuid' action

2021-03-25 Thread Valeriy Vdovin
"ecx": 4160369187, "ebx": 133120, "subleaf": 0 } ] }, { "leaf": 2, "subleafs": [ { "eax": 1, "edx": 2895997, "ecx": 0, "

[PATCH] qapi: introduce 'query-cpu-model-cpuid' action

2021-03-24 Thread Valeriy Vdovin
"ecx": 4160369187, "ebx": 133120, "subleaf": 0 } ] }, { "leaf": 2, "subleafs": [ { "eax": 1, "edx": 2895997, "ecx&quo