Re: [kvm-unit-tests]: nVMX, gcc labels as values, FEATURE_CONTROL lock bit

2014-02-23 Thread Jan Kiszka
On 2014-02-23 10:04, Marius Vlad wrote: > Hello, > > $ qemu --version QEMU emulator version 1.7.0 (Debian 1.7.0+dfsg-3), > Copyright (c) 2003-2008 Fabrice Bellard > > $ gcc --version gcc (Debian 4.8.2-15) 4.8.2 > > $ git rev-list HEAD | head -n1 > c0a4e715eb30944f984a92fbd4bb2cff6ee298a5 > > $

[RFC 1/6] vhost/scsi: Move sanity check into vhost_scsi_map_iov_to_sgl

2014-02-23 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Move the overflow check for sgl_count > TCM_VHOST_PREALLOC_SGLS into vhost_scsi_map_iov_to_sgl() so that it's based on the total number of SGLs for all IOVs, instead of single IOVs. Also, rename TCM_VHOST_PREALLOC_PAGES -> TCM_VHOST_PREALLOC_UPAGES to better describe poi

[RFC 6/6] virtio-scsi: Enable DIF/DIX modes in SCSI host LLD

2014-02-23 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch updates virtscsi_probe() to setup all necessary Scsi_Host level protection resources necessary to enable DIF on virtio-scsi <-> vhost-scsi LUNs. Currently hardcoded to 1. It changes virtscsi_add_cmd() so that outgoing / incoming protection SGLs are attached a

[RFC 0/6] vhost/scsi: Add T10 PI SGL passthrough support

2014-02-23 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Hi MST, MKP, Paolo & Co, The following is an initial RFC series for allowing vhost/scsi to accept T10 protection information (PI) as seperate SGLs along side existing data payload SGLs from within virtio-scsi guest memory. In it's current form, both ends are using virti

[RFC 2/6] vhost/scsi: Add preallocation of protection SGLs

2014-02-23 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch updates tcm_vhost_make_nexus() to pre-allocate per descriptor tcm_vhost_cmd->tvc_prot_sgl[] used to expose protection SGLs from within virtio-scsi guest memory to vhost-scsi. Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Martin K. Petersen Cc: Christoph Hell

[RFC 5/6] vhost/scsi: Add new VIRTIO_SCSI_F_T10_PI feature bit

2014-02-23 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds a VIRTIO_SCSI_F_T10_PI feature bit for signaling host support of accepting T10 protection information SGLs from virtio-scsi guest. Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Martin K. Petersen Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Sagi Grim

[RFC 3/6] vhost/scsi: Add T10 PI IOV -> SGL memory mapping logic

2014-02-23 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds vhost_scsi_map_iov_to_prot() to perform the mapping of T10 data integrity memory between virtio iov + struct scatterlist using get_user_pages_fast() following existing code. As with vhost_scsi_map_iov_to_sgl(), this does sanity checks against the total pr

[RFC 4/6] vhost/scsi: Enable T10 PI IOV -> SGL memory mapping

2014-02-23 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch updates vhost_scsi_handle_vq() to calculate a data_niov + prot_niov currently based upon virtio_scsi_cmd_req->prio for figuring out many of seperate data + protection SGLs to expect from data_num. Also update tcm_vhost_submission_work() to pass the pre-allocat

RE: [PATCH v4 3/3] KVM: x86: Enable Intel MPX for guest

2014-02-23 Thread Liu, Jinsong
Paolo Bonzini wrote: > Il 21/02/2014 18:57, Liu, Jinsong ha scritto: >> -F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | F(RDSEED) | >> +F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | F(MPX) | F(RDSEED) | >> F(ADX); > > MPX also needs to be conditional on mpx_supported here

RE: hyper-v support in KVM

2014-02-23 Thread Zhang, Yang Z
Vadim Rozenfeld wrote on 2014-02-14: > On Fri, 2014-02-14 at 02:35 +, Liu, RongrongX wrote: >> Vadim Rozenfeld wrote on 2014-02-12: >>> On Wed, 2014-02-12 at 01:33 +, Zhang, Yang Z wrote: Vadim Rozenfeld wrote on 2014-02-10: > On Mon, 2014-02-10 at 08:21 +, Zhang, Yang Z wrote:

[kvm-unit-tests]: nVMX, gcc labels as values, FEATURE_CONTROL lock bit

2014-02-23 Thread Marius Vlad
Hello, $ qemu --version QEMU emulator version 1.7.0 (Debian 1.7.0+dfsg-3), Copyright (c) 2003-2008 Fabrice Bellard $ gcc --version gcc (Debian 4.8.2-15) 4.8.2 $ git rev-list HEAD | head -n1 c0a4e715eb30944f984a92fbd4bb2cff6ee298a5 $ git