>>> On 17.07.18 at 12:02, wrote:
> On 16/07/18 11:45, Jan Beulich wrote:
> On 13.07.18 at 22:03, wrote:
>>> +int x86_cpuid_copy_to_buffer(const struct cpuid_policy *p,
>>> + cpuid_leaf_buffer_t leaves,
>>> + uint32_t *nr_entries_p)
>>>
On 16/07/18 11:45, Jan Beulich wrote:
On 13.07.18 at 22:03, wrote:
>> +int x86_cpuid_copy_to_buffer(const struct cpuid_policy *p,
>> + cpuid_leaf_buffer_t leaves,
>> + uint32_t *nr_entries_p)
>> +{
>> +const uint32_t nr_entries =
>>> On 16.07.18 at 12:39, wrote:
> On 16/07/18 10:45, Jan Beulich wrote:
> On 16.07.18 at 11:18, wrote:
>>> On Fri, Jul 13, 2018 at 09:03:08PM +0100, Andrew Cooper wrote:
+#include
#include
#include
#include
@@ -23,6 +28,19 @@ static inline bool
>>> On 13.07.18 at 22:03, wrote:
> +int x86_cpuid_copy_to_buffer(const struct cpuid_policy *p,
> + cpuid_leaf_buffer_t leaves,
> + uint32_t *nr_entries_p)
> +{
> +const uint32_t nr_entries = *nr_entries_p;
> +uint32_t curr_entry = 0,
On 16/07/18 10:45, Jan Beulich wrote:
On 16.07.18 at 11:18, wrote:
>> On Fri, Jul 13, 2018 at 09:03:08PM +0100, Andrew Cooper wrote:
>>> +#include
>>> #include
>>> #include
>>> #include
>>> @@ -23,6 +28,19 @@ static inline bool test_bit(unsigned int bit, const void
>> *vaddr)
>>>
>>> On 16.07.18 at 11:18, wrote:
> On Fri, Jul 13, 2018 at 09:03:08PM +0100, Andrew Cooper wrote:
>> +#include
>> #include
>> #include
>> #include
>> @@ -23,6 +28,19 @@ static inline bool test_bit(unsigned int bit, const void
> *vaddr)
>> return addr[bit / 8] & (1u << (bit % 8));
>>
On Fri, Jul 13, 2018 at 09:03:08PM +0100, Andrew Cooper wrote:
> +#include
> #include
> #include
> #include
> @@ -23,6 +28,19 @@ static inline bool test_bit(unsigned int bit, const void
> *vaddr)
> return addr[bit / 8] & (1u << (bit % 8));
> }
>
> +/* memcpy(), but with
The serialised form is made up of the leaf, subleaf and data tuple. As this
is the architectural form, it is expected not to change going forwards.
The serialisation of the Xen/Viridian leaves isn't fully implemented yet. It
is just enough to be bug-compatible with the current DOMCTL_set_cpuid