search for: kvm_feature

Displaying 20 results from an estimated 23 matches for "kvm_feature".

Did you mean: kvm_features
2014 Sep 19
4
Standardizing an MSR or other hypercall to get an RNG seed?
...19/2014 09:37 AM, Gleb Natapov wrote: > > > > Linux detects what hypervior it runs on very early > > Not anywhere close to early enough. We're talking for uses like kASLR. > Still to early to do: h = cpuid(HYPERVIOR_SIGNATURE) if (h == KVMKVMKVM) { if (cpuid(kvm_features) & kvm_rnd) rdmsr(kvm_rnd) else (h == HyperV) { if (cpuid(hv_features) & hv_rnd) rdmsr(hv_rnd) else (h == XenXenXen) { if (cpuid(xen_features) & xen_rnd) rdmsr(xen_rnd) } ? -- Gleb.
2014 Sep 19
4
Standardizing an MSR or other hypercall to get an RNG seed?
...19/2014 09:37 AM, Gleb Natapov wrote: > > > > Linux detects what hypervior it runs on very early > > Not anywhere close to early enough. We're talking for uses like kASLR. > Still to early to do: h = cpuid(HYPERVIOR_SIGNATURE) if (h == KVMKVMKVM) { if (cpuid(kvm_features) & kvm_rnd) rdmsr(kvm_rnd) else (h == HyperV) { if (cpuid(hv_features) & hv_rnd) rdmsr(hv_rnd) else (h == XenXenXen) { if (cpuid(xen_features) & xen_rnd) rdmsr(xen_rnd) } ? -- Gleb.
2014 Sep 19
3
Standardizing an MSR or other hypercall to get an RNG seed?
...t hypervior it runs on very early > >> > >> Not anywhere close to early enough. We're talking for uses like kASLR. > >> > > Still to early to do: > > > > h = cpuid(HYPERVIOR_SIGNATURE) > > if (h == KVMKVMKVM) { > > if (cpuid(kvm_features) & kvm_rnd) > > rdmsr(kvm_rnd) > > else (h == HyperV) { > > if (cpuid(hv_features) & hv_rnd) > > rdmsr(hv_rnd) > > else (h == XenXenXen) { > > if (cpuid(xen_features) & xen_rnd) > > rdmsr(xen_rnd) &gt...
2014 Sep 19
3
Standardizing an MSR or other hypercall to get an RNG seed?
...t hypervior it runs on very early > >> > >> Not anywhere close to early enough. We're talking for uses like kASLR. > >> > > Still to early to do: > > > > h = cpuid(HYPERVIOR_SIGNATURE) > > if (h == KVMKVMKVM) { > > if (cpuid(kvm_features) & kvm_rnd) > > rdmsr(kvm_rnd) > > else (h == HyperV) { > > if (cpuid(hv_features) & hv_rnd) > > rdmsr(hv_rnd) > > else (h == XenXenXen) { > > if (cpuid(xen_features) & xen_rnd) > > rdmsr(xen_rnd) &gt...
2017 Feb 17
1
Re: Why Guest does not retain Host CPU flags
ok thanks , but then can we know which all list of feature are supported by QEMU/KVM release. http://www.linux-kvm.org/page/KVM_Features Does not seem to be all corect . On Thu, Feb 16, 2017 at 3:42 PM, Jiri Denemark <jdenemar@redhat.com> wrote: > On Mon, Feb 06, 2017 at 09:51:06 +0530, akhilesh rawat wrote: > > hi , > > > > I am creating Guest by Libvirt tool " virt-install" with cpu model...
2014 Sep 19
2
Standardizing an MSR or other hypercall to get an RNG seed?
...t;>>> Not anywhere close to early enough. We're talking for uses like kASLR. > >>>> > >>> Still to early to do: > >>> > >>> h = cpuid(HYPERVIOR_SIGNATURE) > >>> if (h == KVMKVMKVM) { > >>> if (cpuid(kvm_features) & kvm_rnd) > >>> rdmsr(kvm_rnd) > >>> else (h == HyperV) { > >>> if (cpuid(hv_features) & hv_rnd) > >>> rdmsr(hv_rnd) > >>> else (h == XenXenXen) { > >>> if (cpuid(xen_features) &am...
2014 Sep 19
2
Standardizing an MSR or other hypercall to get an RNG seed?
...t;>>> Not anywhere close to early enough. We're talking for uses like kASLR. > >>>> > >>> Still to early to do: > >>> > >>> h = cpuid(HYPERVIOR_SIGNATURE) > >>> if (h == KVMKVMKVM) { > >>> if (cpuid(kvm_features) & kvm_rnd) > >>> rdmsr(kvm_rnd) > >>> else (h == HyperV) { > >>> if (cpuid(hv_features) & hv_rnd) > >>> rdmsr(hv_rnd) > >>> else (h == XenXenXen) { > >>> if (cpuid(xen_features) &am...
2014 Sep 19
3
Standardizing an MSR or other hypercall to get an RNG seed?
...'re talking for uses like kASLR. > >> >>>> > >> >>> Still to early to do: > >> >>> > >> >>> h = cpuid(HYPERVIOR_SIGNATURE) > >> >>> if (h == KVMKVMKVM) { > >> >>> if (cpuid(kvm_features) & kvm_rnd) > >> >>> rdmsr(kvm_rnd) > >> >>> else (h == HyperV) { > >> >>> if (cpuid(hv_features) & hv_rnd) > >> >>> rdmsr(hv_rnd) > >> >>> else (h == XenXenXen) { > &g...
2014 Sep 19
3
Standardizing an MSR or other hypercall to get an RNG seed?
...'re talking for uses like kASLR. > >> >>>> > >> >>> Still to early to do: > >> >>> > >> >>> h = cpuid(HYPERVIOR_SIGNATURE) > >> >>> if (h == KVMKVMKVM) { > >> >>> if (cpuid(kvm_features) & kvm_rnd) > >> >>> rdmsr(kvm_rnd) > >> >>> else (h == HyperV) { > >> >>> if (cpuid(hv_features) & hv_rnd) > >> >>> rdmsr(hv_rnd) > >> >>> else (h == XenXenXen) { > &g...
2014 Sep 19
0
Standardizing an MSR or other hypercall to get an RNG seed?
...;>> >>> Linux detects what hypervior it runs on very early >> >> Not anywhere close to early enough. We're talking for uses like kASLR. >> > Still to early to do: > > h = cpuid(HYPERVIOR_SIGNATURE) > if (h == KVMKVMKVM) { > if (cpuid(kvm_features) & kvm_rnd) > rdmsr(kvm_rnd) > else (h == HyperV) { > if (cpuid(hv_features) & hv_rnd) > rdmsr(hv_rnd) > else (h == XenXenXen) { > if (cpuid(xen_features) & xen_rnd) > rdmsr(xen_rnd) > } > If we need to do chase...
2014 Sep 19
0
Standardizing an MSR or other hypercall to get an RNG seed?
...very early >>>> >>>> Not anywhere close to early enough. We're talking for uses like kASLR. >>>> >>> Still to early to do: >>> >>> h = cpuid(HYPERVIOR_SIGNATURE) >>> if (h == KVMKVMKVM) { >>> if (cpuid(kvm_features) & kvm_rnd) >>> rdmsr(kvm_rnd) >>> else (h == HyperV) { >>> if (cpuid(hv_features) & hv_rnd) >>> rdmsr(hv_rnd) >>> else (h == XenXenXen) { >>> if (cpuid(xen_features) & xen_rnd) >>>...
2014 Sep 19
0
Standardizing an MSR or other hypercall to get an RNG seed?
...> > > > Linux detects what hypervior it runs on very early > > > > Not anywhere close to early enough. We're talking for uses like kASLR. > > > Still to early to do: > > h = cpuid(HYPERVIOR_SIGNATURE) > if (h == KVMKVMKVM) { > if (cpuid(kvm_features) & kvm_rnd) > rdmsr(kvm_rnd) > else (h == HyperV) { > if (cpuid(hv_features) & hv_rnd) > rdmsr(hv_rnd) > else (h == XenXenXen) { > if (cpuid(xen_features) & xen_rnd) > rdmsr(xen_rnd) > } > I think that there's...
2014 Sep 19
2
Standardizing an MSR or other hypercall to get an RNG seed?
On Thu, Sep 18, 2014 at 03:00:05PM -0700, Andy Lutomirski wrote: > On Thu, Sep 18, 2014 at 2:46 PM, David Hepkin <davidhep at microsoft.com> wrote: > > I suggest we come to consensus on a specific CPUID leaf where an OS needs to look to determine if a hypervisor supports this capability. We could define a new CPUID leaf range at a well-defined location, or we could just use one of
2014 Sep 19
2
Standardizing an MSR or other hypercall to get an RNG seed?
On Thu, Sep 18, 2014 at 03:00:05PM -0700, Andy Lutomirski wrote: > On Thu, Sep 18, 2014 at 2:46 PM, David Hepkin <davidhep at microsoft.com> wrote: > > I suggest we come to consensus on a specific CPUID leaf where an OS needs to look to determine if a hypervisor supports this capability. We could define a new CPUID leaf range at a well-defined location, or we could just use one of
2014 Sep 19
0
Standardizing an MSR or other hypercall to get an RNG seed?
...ere close to early enough. We're talking for uses like kASLR. >> >>>> >> >>> Still to early to do: >> >>> >> >>> h = cpuid(HYPERVIOR_SIGNATURE) >> >>> if (h == KVMKVMKVM) { >> >>> if (cpuid(kvm_features) & kvm_rnd) >> >>> rdmsr(kvm_rnd) >> >>> else (h == HyperV) { >> >>> if (cpuid(hv_features) & hv_rnd) >> >>> rdmsr(hv_rnd) >> >>> else (h == XenXenXen) { >> >>> if (...
2014 Sep 19
0
Standardizing an MSR or other hypercall to get an RNG seed?
...like kASLR. >> >> >>>> >> >> >>> Still to early to do: >> >> >>> >> >> >>> h = cpuid(HYPERVIOR_SIGNATURE) >> >> >>> if (h == KVMKVMKVM) { >> >> >>> if (cpuid(kvm_features) & kvm_rnd) >> >> >>> rdmsr(kvm_rnd) >> >> >>> else (h == HyperV) { >> >> >>> if (cpuid(hv_features) & hv_rnd) >> >> >>> rdmsr(hv_rnd) >> >> >>> else (h ==...
2017 Feb 06
2
Why Guest does not retain Host CPU flags
hi , I am creating Guest by Libvirt tool " virt-install" with cpu model as host. After Guest creation i see Guest Missing quite no of flags which Host was having . What could be the reason for this ? I am expecting all flags of Host to e present in Guest as well when choosing cpu model as host . Guest : processor : 19 vendor_id : GenuineIntel cpu family : 6 model
2008 Mar 20
2
[RFC/PATCH 15/15] guest: virtio device support, and kvm hypercalls
...his device (incl. desc) + */ +static unsigned desc_size(const struct kvm_device_desc *desc) +{ + return sizeof(*desc) + + desc->num_vq * sizeof(struct kvm_vqconfig) + + desc->feature_len * 2 + + desc->config_len; +} + +/* + * This tests (and acknowleges) a feature bit. + */ +static bool kvm_feature(struct virtio_device *vdev, unsigned fbit) +{ + struct kvm_device_desc *desc = to_kvmdev(vdev)->desc; + u8 *features; + + if (fbit / 8 > desc->feature_len) + return false; + + features = kvm_vq_features(desc); + if (!(features[fbit / 8] & (1 << (fbit % 8)))) + return false; + +...
2008 Mar 20
2
[RFC/PATCH 15/15] guest: virtio device support, and kvm hypercalls
...his device (incl. desc) + */ +static unsigned desc_size(const struct kvm_device_desc *desc) +{ + return sizeof(*desc) + + desc->num_vq * sizeof(struct kvm_vqconfig) + + desc->feature_len * 2 + + desc->config_len; +} + +/* + * This tests (and acknowleges) a feature bit. + */ +static bool kvm_feature(struct virtio_device *vdev, unsigned fbit) +{ + struct kvm_device_desc *desc = to_kvmdev(vdev)->desc; + u8 *features; + + if (fbit / 8 > desc->feature_len) + return false; + + features = kvm_vq_features(desc); + if (!(features[fbit / 8] & (1 << (fbit % 8)))) + return false; + +...
2011 Nov 30
6
[PATCH RFC V3 0/4] kvm : Paravirt-spinlock support for KVM guests
The 4-patch series to follow this email extends KVM-hypervisor and Linux guest running on KVM-hypervisor to support pv-ticket spinlocks, based on Xen's implementation. One hypercall is introduced in KVM hypervisor,that allows a vcpu to kick another vcpu out of halt state. The blocking of vcpu is done using halt() in (lock_spinning) slowpath. The V2 change discussion was in: