This fixes below compilation error on SOCs where CONFIG_PHYS_64BIT
is not defined:
arch/powerpc/kvm/e500_mmu_host.c: In function 'kvmppc_e500_shadow_map':
| arch/powerpc/kvm/e500_mmu_host.c:631:20: error: 'PTE_WIMGE_SHIFT' undeclared
(first use in this function)
|wimg = (*ptep
Modify debug macros to have the same format through the codebase and use regular
ifs instead of ifdef.
As the debug printf is always put in code, some casting had to be added to avoid
warnings treated as errors at compile time.
Signed-off-by: Marc Marí marc.mari.barc...@gmail.com
---
Modify debug macros to have the same format through the codebase and use regular
ifs instead of ifdef.
As the debug printf is always put in code, some casting had to be added to avoid
warnings treated as errors at compile time.
Signed-off-by: Marc Marí marc.mari.barc...@gmail.com
---
-Original Message-
From: Alexander Graf [mailto:ag...@suse.de]
Sent: Tuesday, May 13, 2014 11:18 AM
To: Bhushan Bharat-R65777
Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott-B07421;
Bhushan
Bharat-R65777
Subject: Re: [PATCH] booke/powerpc: define wimge shift mask to
Am 13.05.2014 09:02, schrieb Marc Marí:
Modify debug macros to have the same format through the codebase and use
regular
ifs instead of ifdef.
As the debug printf is always put in code, some casting had to be added to
avoid
warnings treated as errors at compile time.
Signed-off-by:
A test case which generates memory pressure while performing guest
administration
fails with vhost triggering page allocation failure and guest not starting up.
After some analysis we discovered the allocation order of vhost to be
rensponsible
for this behaviour. Thus we suggest patch 1/1 which
From: Dong Dong Chen ddon...@cn.ibm.com
Under memory pressure we observe load issues with module vhost_net, as the
vhost setup code will try to do an order 4 allocation for the device.
The likeliness of this issue to occur can be reduced when the statically
allocated variable iov in struct
On Tue, May 13, 2014 at 10:35:33AM +0200, Michael Mueller wrote:
From: Dong Dong Chen ddon...@cn.ibm.com
Under memory pressure we observe load issues with module vhost_net, as the
vhost setup code will try to do an order 4 allocation for the device.
The likeliness of this issue to occur can
On Tue, 13 May 2014 11:40:49 +0300
Michael S. Tsirkin m...@redhat.com wrote:
Please dont' do this, extra indirection hurts performance.
Instead, please change vhost_net_open and scsi to allocate the whole
structure with vmalloc if kmalloc fails, along the lines of
On Tue, 13 May 2014 09:02:38 +0200
Marc Marí marc.mari.barc...@gmail.com wrote:
I'd replace the subject with
s390: convert debug printfs to QEMU_DPRINTF
which is more descriptive and has the additional virtue of being
shorter ;)
Modify debug macros to have the same format through the codebase
From: James Hogan james.ho...@imgtec.com
This patch has been added to the 3.12 stable tree. If you have any
objections, please let us know.
===
commit 15505679362270d02c449626385cb74af8905514 upstream.
Previously a reserved instruction exception while in guest code would
cause a
Correct post load checks:
1. dev-setup_len == sizeof(dev-data_buf)
seems fine, no need to fail migration
2. When state is DATA, passing index len
will cause memcpy with negative length,
resulting in heap overflow
First of the issues was reported by dgilbert.
Reported-by: Dr. David
From: James Hogan james.ho...@imgtec.com
3.12-stable review patch. If anyone has any objections, please let me know.
===
commit 15505679362270d02c449626385cb74af8905514 upstream.
Previously a reserved instruction exception while in guest code would
cause a KVM internal error if
Am 12.05.2014 13:09, schrieb Peter Maydell:
On 12 May 2014 11:30, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote:
On Mon, May 12, 2014 at 7:44 PM, Peter Maydell peter.mayd...@linaro.org
wrote:
On 12 May 2014 10:10, Juan Quintela quint...@redhat.com wrote:
Please, send any topic that
On 13 May 2014 00:27, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote:
Ok so here's my plan:
This generally all sounds good to me. A slight nit:
QOMify address spaces. So they can be instantiated, reffed etc.
completely aside from the hotplug discussion this greatly helps
connecting bus
On 13 May 2014 12:07, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote:
On Tuesday, May 13, 2014, Peter Maydell peter.mayd...@linaro.org wrote:
I'm not sure that the thing a bus master exposes to be connected
up should be an AddressSpace -- I think it should be a MemoryRegion
(more
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
x86/emulator.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/x86/emulator.c b/x86/emulator.c
index 388db99..20e3a45 100644
--- a/x86/emulator.c
+++ b/x86/emulator.c
@@ -891,14 +891,14 @@ static void test_sreg(volatile
Today's agenda:
- QOMifying both Memory regions and GPIOs and attaching them via QOM
links (Peter Crosthwaite)
Here are my notes; please correct mistakes.
Peter C: Everything with a connection becomes a QOM object, references
become links
Peter Maydell: Okay
PC: Don't include address spaces
Michael S. Tsirkin m...@redhat.com writes:
Please dont' do this, extra indirection hurts performance.
Instead, please change vhost_net_open and scsi to allocate the whole
structure with vmalloc if kmalloc fails, along the lines of
74d332c13b2148ae934ea94dac1745ae92efe8e5
Back in January
When writing 1 to CR0.PE, the CPL remains 0 even if bits 0-1 of CS
disagree. Before calling vmx_set_cr0, VCPU_EXREG_CPL was cleared
by vmx_vcpu_run, so set it again and make sure that enter_pmode
does not change it.
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
arch/x86/kvm/vmx.c | 26
Until now, KVM used to assume that CS.RPL could always be used as the CPL
value when KVM_SET_SREGS is called. Unfortunately this is not the case.
If userspace decides to call KVM_GET_SREGS/KVM_SET_SREGS exactly after
CR0.PE has been set to 1, but before the long jump that reloads CS, the
CPL will
For the set path, this patch never uses the new code so there
is no semantic change.
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
arch/x86/include/asm/kvm_host.h | 2 +-
arch/x86/include/uapi/asm/kvm.h | 5 -
arch/x86/kvm/svm.c | 13 ++---
arch/x86/kvm/vmx.c
It is not obvious that the CPL will be guessed right the next time
we run vmx_get_cpl. Make the code similar to SVM, and do the guess
already during vmx_set_segment while we have the correct value of CR0.PE.
For unrestricted guest mode, there is still a small window where CR0.PE
and we could set
We will use it for CPL save/restore; making it an enabled capability
lets us reuse a padding field in kvm_segment instead of inventing a
new ioctl. This is also simpler because KVM_SET_SREGS already mucks
with the CPL.
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
arch/x86/kvm/x86.c | 24
The proposed patch set implements S390 cpu model support in kvm. A cpu
model is defined by a triple comprizing the cpu type , the cpu facility
set and instruction blocking control. A consumer requests a feasible
combination of that that triple before vcpu creation. All subsequently
created vcpu's
This patch splits the SIE state guest prefix at offset 4
into a prefix bit field. Additionally it provides the
access functions:
- kvm_s390_get_prefix()
- kvm_s390_set_prefix()
to access the prefix per vcpu.
Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com
Reviewed-by: Cornelia Huck
This patch set in combination with its kernel kvm patch set proposes an
implementation of S390 cpu models. The origin of this item is to provide
a means for management interfaces like libvirt to draw decisions if life
guest migration to a target hypervisor is reasonable.
A migration constraint is
This patch implements the new state soft_fac_bits. This state
defines which facilities are emulated in kernel and not in processor
or millicode. Currently all bits are cleared.
Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com
---
arch/s390/kvm/Makefile | 2 +-
arch/s390/kvm/kvm-s390.h |
Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com
---
linux-headers/asm-s390/kvm.h | 26 ++
linux-headers/linux/kvm.h| 1 +
2 files changed, 27 insertions(+)
diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h
index c003c6a..2fba454 100644
This patch enables all previous cpu model related patches and
allows the feature to become active. It basically implements
the host properties being fetched from the host and applied to
the predefined S390 cpu classes during initialization of the
HW platform. In a second step,
This patch implements the static part of the s390 cpu class definitions.
It defines single cpu models by means of virtual cpu ids which contain
information on the cpu generation, the machine class, the GA number and
the machine type. The cpu id is used to instantiate a cpu class per cpu
id.
This patch implements the infrastructure to dynamically add cpu model aliases.
Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com
Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com
---
target-s390x/cpu-models.c | 64 +++
target-s390x/cpu-models.h
KVM used to assume that CS.RPL could always be used as the CPL
value when KVM_SET_SREGS is called. QEMU could call KVM_GET_SREGS
and the KVM_SET_SREGS exactly after CR0.PE has been set to 1,
but before the long jump that reloads CS. Then, KVM would reset
the CPL to bits 0-1 of CS (aka CS.RPL).
This patch provides routines to dynamically update the previously defined S390
cpu classes in the current host context. The main function issuing this process
is s390_setup_cpu_classes(). It takes the current host context as parameter to
setup the classes accordingly. It basically performs the
This patch introduces the function cpudesc_avail() which returns by
default true if not architecture specific implemented. Its intention
is to indicate if the cpu model description is available for display
by list_cpus(). This change allows cpu model descriptions to become
dynamically created by
The patch introduces facilities and cpu_ids per virtual machine.
Different virtual machines may want to expose different facilities and
cpu ids to the guest, so let's make them per-vm instead of global.
In addition this patch renames all ocurrences of *facilities to *fac_list
smilar to the
This patch implements the QMP command query-cpu-definitions in the S390
context. The command returns a descending sorted list of cpu model names
derived from the currently (in the current host context) supported set of
cpu classes. That means a consumer can successfully request each reported
cpu
This patch implements a new QMP request named query-cpu-model. It returns
the cpu model of cpu 0. eg:
request: '{execute : query-cpu-model }
answer: '{return : {name: 2827-ga2}}
Alias names are resolved to their respective machine type and GA names
already during cpu instantiation. Thus, also a
This patch defines S390 cpu facilities and their presence at the
different cpu model levels. The implemented functions allow to
calculate cpu model specific facility sets. These sets are associated
to the defined cpu classes used to calculate the list of supported
cpu models.
Signed-off-by:
The patch implements routines to set and retrieve processor configuration
data and to retrieve machine configuration data. The machine related data
will be used to determine the list of supported cpu models of this host.
Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com
---
Until now, KVM used to assume that CS.RPL could always be used as the CPL
value when KVM_SET_SREGS is called. Unfortunately this is not the case.
If userspace decides to call KVM_GET_SREGS/KVM_SET_SREGS exactly after
CR0.PE has been set to 1, but before the long jump that reloads CS, the
CPL will
This patch enables cpu model support in kvm/s390 via the vm attribute
interface.
During KVM initialization, the host properties cpuid, IBC value and the
facility list are stored in the architecture specific cpu model structure.
During vcpu setup, these properties are taken to initialize the
The patch adds functionality to retrieve the IBC configuration
by means of function sclp_get_ibc().
Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com
Acked-by: Cornelia Huck cornelia.h...@de.ibm.com
Acked-by: Heiko Carstens heiko.carst...@de.ibm.com
Acked-by: Christian Borntraeger
The patch addds an internal KVM API to access instruction blocking
control. It offers the following functions:
- has_ibc() : tests if the system offers instruction blocking control
- lowest_ibc() : first level supported
- latest_ibc() : latest level supported
Signed-off-by: Michael Mueller
On Tue, 13 May 2014 16:29:58 +0200
Romain Francoise rom...@orebokech.com wrote:
Michael S. Tsirkin m...@redhat.com writes:
Please dont' do this, extra indirection hurts performance.
Instead, please change vhost_net_open and scsi to allocate the whole
structure with vmalloc if kmalloc
On 05/13/2014 01:02 AM, Marc Marí wrote:
Modify debug macros to have the same format through the codebase and use
regular
ifs instead of ifdef.
As the debug printf is always put in code, some casting had to be added to
avoid
warnings treated as errors at compile time.
Umm, where in this
On Tue, May 13, 2014 at 04:29:58PM +0200, Romain Francoise wrote:
Michael S. Tsirkin m...@redhat.com writes:
Please dont' do this, extra indirection hurts performance.
Instead, please change vhost_net_open and scsi to allocate the whole
structure with vmalloc if kmalloc fails, along the
On 05/13/2014 09:00 AM, Michael Mueller wrote:
This patch implements a new QMP request named query-cpu-model. It returns
the cpu model of cpu 0. eg:
request: '{execute : query-cpu-model }
answer: '{return : {name: 2827-ga2}}
Alias names are resolved to their respective machine type and
Il 12/05/2014 22:26, Alexander Graf ha scritto:
Hi Paolo / Marcelo,
This is my current patch queue for 3.15. Please pull.
Alex
The following changes since commit 0f689a33ad17845363acdc6d52783befd6ad116c:
Merge branch 'for-linus' of
Hej kompis ,
Jag hoppas att du gör bra i dag ? Jag är Mr Chris Campbell koncernens
chefsjurist / Direktör Audit Department of Credit Suisse Bank , One Cabot
Square , London E14 4QJ , Storbritannien . Jag kontaktade dig när det gäller
ett affärsförslag som kommer att vara en enorm fördel för
On 05/12/2014 11:22 AM, Radim Krčmář wrote:
2014-05-07 11:01-0400, Waiman Long:
From: Peter Zijlstrapet...@infradead.org
Because the qspinlock needs to touch a second cacheline; add a pending
bit and allow a single in-word spinner before we punt to the second
cacheline.
I think there is an
Your email was listed for AIG Master-Card funds for
Compensation,contact(morganad...@att.net) --
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Alex Williamson alex.william...@redhat.com :
[...]
Oh right, I looked for code references to the register but didn't notice
that Linux configures it for MSI, not MSI-X. In my brief testing I only
saw that Windows generates interrupts on the first vector, so perhaps
not much lost without
This fixes below compilation error on SOCs where CONFIG_PHYS_64BIT
is not defined:
arch/powerpc/kvm/e500_mmu_host.c: In function 'kvmppc_e500_shadow_map':
| arch/powerpc/kvm/e500_mmu_host.c:631:20: error: 'PTE_WIMGE_SHIFT' undeclared
(first use in this function)
|wimg = (*ptep
-Original Message-
From: Alexander Graf [mailto:ag...@suse.de]
Sent: Tuesday, May 13, 2014 11:18 AM
To: Bhushan Bharat-R65777
Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott-B07421;
Bhushan
Bharat-R65777
Subject: Re: [PATCH] booke/powerpc: define wimge shift mask
Il 12/05/2014 22:26, Alexander Graf ha scritto:
Hi Paolo / Marcelo,
This is my current patch queue for 3.15. Please pull.
Alex
The following changes since commit 0f689a33ad17845363acdc6d52783befd6ad116c:
Merge branch 'for-linus' of
If we're running PowerNV platform, ppc_firmware() will be directed
to ppc_call_opal() where we can call to OPAL API accordingly. In
ppc_call_opal(), the input argument are parsed out and call to
appropriate OPAL API to handle that. Each request passed to the
function is identified with token. As
The patch introduces CONFIG_VFIO_EEH for more IOCTL commands on
tce_iommu_driver_ops to support EEH funtionality for PCI devices
that are passed through from host to guest.
Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com
---
drivers/vfio/Kconfig | 6 ++
1 file changed, 6 insertions(+)
The series of patches intends to support EEH for PCI devices, which are
passed through to PowerKVM based guest via VFIO. The implementation is
straightforward based on the issues or problems we have to resolve to
support EEH for PowerKVM based guest.
- Emulation for EEH RTAS requests. All EEH
The patch synchronizes OPAL header file with firmware so that the
host kernel can make OPAL call to do error injection.
Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/opal.h| 65 ++
If we detects frozen state on PE that has been passed to guest, we
needn't handle it. Instead, we rely on the guest to detect and recover
it. The patch avoid EEH event on the frozen passed PE so that the guest
can have chance to handle that.
Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com
---
The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container
to support EEH functionality for PCI devices, which have been
passed from host to guest via VFIO.
Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com
---
arch/powerpc/platforms/powernv/Makefile | 1 +
The patch intends to implement the error injection infrastructure
for PowerNV platform. The predetermined handlers will be called
according to the type of injected error (e.g. OpalErrinjctTypeIoaBusError).
For now, we just support PCI error injection. We need support
injecting other types of
The address of passed PCI devices (domain:bus:slot:func) might be
quite different from the perspective of host and guest. We have to
trace the address mapping so that we can emulate EEH RTAS requests
from guest. The patch introduces additional fields to eeh_pe and
eeh_dev for the purpose.
Also,
Originally, syscall ppc_rtas() can be used to invoke RTAS call from
user space. Utility errinjct is using it to inject various errors
to the system for testing purpose. The patch intends to extend the
syscall to support both pSeries and PowerNV platform. With that,
RTAS and OPAL call can be
65 matches
Mail list logo