On 5 July 2011 07:15, Markus Armbruster wrote:
>> + int fd, __attribute__((unused)) ret;
>>
>> snprintf(reset_file, sizeof(reset_file),
>> "/sys/bus/pci/devices/%04x:%02x:%02x.%01x/reset",
>
> What about (void)write() and do away with ret?
If 'ret' has been used to silence c
Peter Maydell writes:
> On 5 July 2011 07:15, Markus Armbruster wrote:
>>> + int fd, __attribute__((unused)) ret;
>>>
>>> snprintf(reset_file, sizeof(reset_file),
>>> "/sys/bus/pci/devices/%04x:%02x:%02x.%01x/reset",
>>
>> What about (void)write() and do away with ret?
>
>
I tried to re-arrange all of the requirements and use cases using this
wiki page: http://wiki.qemu.org/Features/LiveBlockMigration
It would be the best to agree upon the most interesting use cases (while
we make sure we cover future ones) and agree to them.
The next step is to set the interface
On 07/05/2011 09:49 AM, Markus Armbruster wrote:
> If 'ret' has been used to silence compiler warnings about functions
> which have been declared with attribute __warn_unused_result__
> (eg write() and various other libc functions) then "(void)write()"
> is insufficient -- gcc requires the va
On 07/05/2011 02:09 AM, Sasha Levin wrote:
Add a module parameter 'check_inuse' to allow disabling the check of whether
virtualization has already been enabled on the given cpu.
This is needed to deal with broken BIOS which set the SVM/VMX bit by default.
Please split the vmx and svm parts.
W
On Tue, 2011-07-05 at 11:09 +0300, Avi Kivity wrote:
> On 07/05/2011 02:09 AM, Sasha Levin wrote:
> > Add a module parameter 'check_inuse' to allow disabling the check of whether
> > virtualization has already been enabled on the given cpu.
> >
> > This is needed to deal with broken BIOS which set
This patch adds SMEP to all test cases and checks SMEP when cr0.wp=0.
changes since v2:
Recover U/S bit after turning off SMEP and correct the title
changes since v1:
Add SMEP to all test cases and verify it before setting cr4
Signed-off-by: Yang, Wei
Signed-off-by: Shan, Hai
On Tue, Jul 05, 2011 at 11:14:43AM +0300, Sasha Levin wrote:
> I have no information about the machine. It was the result of trying
> to debug an issue reported on IRC where we found that the SVM flag is
> being set after boot even before the kvm module is loaded.
Have you ruled out that any othe
On Mon, 2011-07-04 at 11:32 -0400, Glauber Costa wrote:
> This patch accounts steal time time in account_process_tick.
> If one or more tick is considered stolen in the current
> accounting cycle, user/system accounting is skipped. Idle is fine,
> since the hypervisor does not report steal time if
On Mon, 2011-07-04 at 11:32 -0400, Glauber Costa wrote:
> This patch makes update_rq_clock() aware of steal time.
> The mechanism of operation is not different from irq_time,
> and follows the same principles. This lives in a CONFIG
> option itself, and can be compiled out independently of
> the re
On Tue, 2011-07-05 at 11:11 +0200, Joerg Roedel wrote:
> On Tue, Jul 05, 2011 at 11:14:43AM +0300, Sasha Levin wrote:
> > I have no information about the machine. It was the result of trying
> > to debug an issue reported on IRC where we found that the SVM flag is
> > being set after boot even bef
On Tue, Jul 5, 2011 at 6:41 AM, Stefan Hajnoczi wrote:
> On Mon, Jul 4, 2011 at 11:38 PM, Peter Maydell
> wrote:
>> On 4 July 2011 23:00, Raghavendra D Prabhu wrote:
>>> This is to avoid gcc optimizating out the comparison in assert,
>>> due to assumption of signed overflow being undefined by d
This will allow cleaning up ghost pid files outside of the module.
Signed-off-by: Sasha Levin
---
tools/kvm/include/kvm/kvm.h |1 +
tools/kvm/kvm.c |9 +++--
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/tools/kvm/include/kvm/kvm.h b/tools/kvm/include/kvm
When running 'kvm list', first make sure that the guest process
is up and running before printing the entry.
Signed-off-by: Sasha Levin
---
tools/kvm/kvm-list.c | 21 +
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/tools/kvm/kvm-list.c b/tools/kvm/kvm-list
On 07/05/2011 12:32 PM, Sasha Levin wrote:
On Tue, 2011-07-05 at 11:11 +0200, Joerg Roedel wrote:
> On Tue, Jul 05, 2011 at 11:14:43AM +0300, Sasha Levin wrote:
> > I have no information about the machine. It was the result of trying
> > to debug an issue reported on IRC where we found that
I am using qemu-kvm, cli as the following:
qemu-system-x86_64 -drive
file=test-notes.img,if=virtio,cache=none,boot=on -net
nic,macaddr=00:00:00:11:22:88,model=virtio -net tap -m 1024 -vnc :3
I open powerpoint 2007, and drag a rectangel, it moves very
slowly. it must meet the following
On 07/05/2011 12:40 PM, ya su wrote:
I am using qemu-kvm, cli as the following:
qemu-system-x86_64 -drive
file=test-notes.img,if=virtio,cache=none,boot=on -net
nic,macaddr=00:00:00:11:22:88,model=virtio -net tap -m 1024 -vnc :3
I open powerpoint 2007, and drag a rectangel, it moves
On Tue, 2011-07-05 at 12:37 +0300, Avi Kivity wrote:
> On 07/05/2011 12:32 PM, Sasha Levin wrote:
> > On Tue, 2011-07-05 at 11:11 +0200, Joerg Roedel wrote:
> > > On Tue, Jul 05, 2011 at 11:14:43AM +0300, Sasha Levin wrote:
> > > > I have no information about the machine. It was the result of t
On 07/05/2011 12:56 PM, Sasha Levin wrote:
Please note that I don't have access to the hardware in question, this
was done over IRC.
I understand that. Can you get in contact with the reporter again?
Here are the steps taken in debugging this issue:
1. Looking at the dmesg ( http://pastebi
Hi all,
as Alex Graf reminded me the driver needed some more bugfixing
to be done. I've found some issues and also moved the megasas
emulation over to the new trace infrastructure.
Driver works for me now and a full installation of
openSUSE-12.1 works perfectly.
I've also included the fixes sugges
iov_to_buf() has an 'offset' parameter, iov_from_buf() hasn't.
This patch adds the missing parameter to iov_from_buf().
It also renames the 'offset' parameter to 'iov_off' to
emphasize it's the offset into the iovec and not the buffer.
Signed-off-by: Hannes Reinecke
Acked-by: Alexander Graf
---
'tag' is just an abstraction to identify the command
from the driver. So we should make that explicit by
replacing 'tag' with a driver-defined pointer 'hba_private'.
This saves the lookup for driver handling several commands
in parallel.
'tag' is still being kept for tracing purposes.
Signed-off-b
A debugging statement wasn't converted to the new interface.
Signed-off-by: Hannes Reinecke
---
hw/scsi-disk.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index c2a99fe..5804662 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -100
If the serial number is not set we should mask it out in the
list of supported VPD pages and mark it as not supported.
Signed-off-by: Hannes Reinecke
---
hw/scsi-disk.c | 15 ---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index 5
On 07/05/2011 01:03 PM, Hannes Reinecke wrote:
A debugging statement wasn't converted to the new interface.
Signed-off-by: Hannes Reinecke
---
hw/scsi-disk.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index c2a99fe..5804662 100644
On 07/05/2011 01:03 PM, Hannes Reinecke wrote:
If the serial number is not set we should mask it out in the
list of supported VPD pages and mark it as not supported.
Signed-off-by: Hannes Reinecke
---
hw/scsi-disk.c | 15 ---
1 files changed, 12 insertions(+), 3 deletions(-)
di
On Tue, 2011-07-05 at 13:37 +0300, Avi Kivity wrote:
> On 07/05/2011 12:56 PM, Sasha Levin wrote:
> > Please note that I don't have access to the hardware in question, this
> > was done over IRC.
> >
>
> I understand that. Can you get in contact with the reporter again?
>
Hopefully, If he comes
On 07/05/2011 02:07 PM, Sasha Levin wrote:
>
> - was a BIOS update attempted? at least VMware uses the same check as
> kvm, and probably virtualbox as well, so this problem should have been
> seen before.
We didn't update the BIOS.
virtualbox was installed previously and didn't work properl
Hi all,
I want to assign multiple host cores to a VM that are then exposed there as
only one virtual processor core. I want to maximize there the available
computation power and the guest OS cannot handle SMP.
And: How can I enable qemu-kvm to run on multiple host cores? I have a i7
HT enabled sy
On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote:
> I tried to re-arrange all of the requirements and use cases using this wiki
> page: http://wiki.qemu.org/Features/LiveBlockMigration
>
> It would be the best to agree upon the most interesting use cases (while we
> make sure we cover future ones) a
On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnoczi wrote:
> On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote:
> > I tried to re-arrange all of the requirements and use cases using this wiki
> > page: http://wiki.qemu.org/Features/LiveBlockMigration
> >
> > It would be the best to agree upon t
On 07/05/2011 01:03 PM, Hannes Reinecke wrote:
Hi all,
as Alex Graf reminded me the driver needed some more bugfixing
to be done. I've found some issues and also moved the megasas
emulation over to the new trace infrastructure.
Driver works for me now and a full installation of
openSUSE-12.1 wor
On 07/05/2011 01:03 PM, Hannes Reinecke wrote:
This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA.
Nice, so it does work for me this time :).
Tested-by: Alexander Graf
Alex
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord..
On 07/05/2011 01:03 PM, Hannes Reinecke wrote:
This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA.
Signed-off-by: Hannes Reinecke
---
Makefile.objs |1 +
default-configs/pci.mak |1 +
hw/megasas.c| 1950
On 07/05/2011 03:58 PM, Marcelo Tosatti wrote:
On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnoczi wrote:
On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote:
I tried to re-arrange all of the requirements and use cases using this wiki
page: http://wiki.qemu.org/Features/LiveBlockMigration
It
On 07/05/2011 03:38 PM, Alexander Graf wrote:
>>
>> +if (is_sgl64) {
>> +iov_pa = ldq_phys(pa);
>> +} else {
>> +iov_pa = ldl_phys(pa);
>
> These load data from memory in target endianness. Are you sure that's
> what you want? I'd expect this to be defined
the previous kvm-stat is produced base on current kvm-kmod git
version, and pateched with xiaoguangrong's mmio page-fault, but it can
not produce trace-cmd report for truncated trace.dat file. so I change
back to kvm-kmod 2.6.32.27 release. then kvm-stat produce:
kvm_exit
On 07/05/2011 03:59 PM, Paolo Bonzini wrote:
On 07/05/2011 03:38 PM, Alexander Graf wrote:
+if (is_sgl64) {
+iov_pa = ldq_phys(pa);
+} else {
+iov_pa = ldl_phys(pa);
These load data from memory in target endianness. Are you sure that's
what you want? I'd
Hi Frederic,
On Mon, Jul 04, 2011 at 02:58:24PM +0100, Frederic Weisbecker wrote:
> On Wed, Jun 29, 2011 at 05:27:25PM +0100, Will Deacon wrote:
> > Hi Frederic,
> >
> > Thanks for including me on CC.
> >
> > On Wed, Jun 29, 2011 at 05:08:45PM +0100, Frederic Weisbecker wrote:
> > > On Wed, Jun
On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote:
> On 07/05/2011 03:58 PM, Marcelo Tosatti wrote:
> >On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnoczi wrote:
> >>On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote:
> >>>I tried to re-arrange all of the requirements and use cases using
On Tue, Jul 05, 2011 at 03:30:26PM +0100, Will Deacon wrote:
> Hi Frederic,
>
> On Mon, Jul 04, 2011 at 02:58:24PM +0100, Frederic Weisbecker wrote:
> > On Wed, Jun 29, 2011 at 05:27:25PM +0100, Will Deacon wrote:
> > > Hi Frederic,
> > >
> > > Thanks for including me on CC.
> > >
> > > On Wed,
Am 05.07.2011 16:32, schrieb Marcelo Tosatti:
> On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote:
>> On 07/05/2011 03:58 PM, Marcelo Tosatti wrote:
>>> On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnoczi wrote:
On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote:
> I tried to re-
On 07/05/2011 05:32 PM, Marcelo Tosatti wrote:
On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote:
On 07/05/2011 03:58 PM, Marcelo Tosatti wrote:
On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnoczi wrote:
On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote:
I tried to re-arrange all
On Tue, Jul 5, 2011 at 12:03 PM, Hannes Reinecke wrote:
> +static void megasas_unmap_sgl(struct megasas_cmd_t *cmd)
> +{
> + uint16_t flags = le16_to_cpu(cmd->frame->header.flags);
> + int i, is_write = (flags & MFI_FRAME_DIR_WRITE) ? 1 : 0;
> +
> + for (i = 0; i < cmd->frame->header.sge_
On Tue, Jul 05, 2011 at 06:04:34PM +0300, Dor Laor wrote:
> On 07/05/2011 05:32 PM, Marcelo Tosatti wrote:
> >On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote:
> >>On 07/05/2011 03:58 PM, Marcelo Tosatti wrote:
> >>>On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnoczi wrote:
> On T
* On Mon, Jul 04, 2011 at 11:38:30PM +0100, Peter Maydell
wrote:
On 4 July 2011 23:00, Raghavendra D Prabhu wrote:
This is to avoid gcc optimizating out the comparison in assert,
due to assumption of signed overflow being undefined by default
(-Werror=strict-overflow).
--- a/Makefile.hw
+
On Tue, Jul 5, 2011 at 3:32 PM, Marcelo Tosatti wrote:
> On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote:
>> On 07/05/2011 03:58 PM, Marcelo Tosatti wrote:
>> >On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnoczi wrote:
>> >>On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote:
>> >>>I tr
On Tue, 2011-06-28 at 17:44 +0800, Qingtang Zhou wrote:
> Anaconda log will help us to analyse failure of installation.
Hi Qingtang, I have verified the code, have a couple of comments on one
of the patches. We have a problem though:
I did test it in my laptop, with both the default atbr0 bridge
On Tue, 2011-06-28 at 17:45 +0800, Qingtang Zhou wrote:
> This patch will save guest's anaconda log to 'anaconda.log' in debug
> directory.
>
> Signed-off-by: Qingtang Zhou
> ---
> client/tests/kvm/tests/unattended_install.py | 31
> ++
> 1 files changed, 31 insertion
From: pradeep
Check smbios table :
1) Boot a guest with smbios options
2) verify if host bios options have been emulated,
that is, the vendor, date and version options
returned by dmidecode are the same on host and
on guest.
Signed-off-by: Pradeep Kumar Surisetty
On Tue, 2011-07-05 at 15:07 -0300, Lucas Meneghel Rodrigues wrote:
> From: pradeep
>
> Check smbios table :
> 1) Boot a guest with smbios options
> 2) verify if host bios options have been emulated,
>that is, the vendor, date and version options
>returned by dmidecode
On Tue, Jul 05, 2011 at 04:37:08PM +0100, Stefan Hajnoczi wrote:
> On Tue, Jul 5, 2011 at 3:32 PM, Marcelo Tosatti wrote:
> > On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote:
> >> On 07/05/2011 03:58 PM, Marcelo Tosatti wrote:
> >> >On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnocz
On Mon, 04 Jul 2011, Glauber Costa wrote:
> To implement steal time, we need the hypervisor to pass the guest information
> about how much time was spent running other processes outside the VM.
> This is per-vcpu, and using the kvmclock structure for that is an abuse
> we decided not to make.
>
>
On Mon, 04 Jul 2011, Glauber Costa wrote:
> This patch is simple, put in a different commit so it can be more easily
> shared between guest and hypervisor. It just defines a named constant
> to indicate the enable bit for KVM-specific MSRs.
>
> Signed-off-by: Glauber Costa
> CC: Rik van Riel
>
On Mon, 04 Jul 2011, Glauber Costa wrote:
> To implement steal time, we need the hypervisor to pass the guest
> information about how much time was spent running other processes
> outside the VM, while the vcpu had meaningful work to do - halt
> time does not count.
>
> This information is acquir
On Mon, 04 Jul 2011, Glauber Costa wrote:
> This patch adds a function pointer in one of the many paravirt_ops
> structs, to allow guests to register a steal time function. Besides
> a steal time function, we also declare two jump_labels. They will be
> used to allow the steal time code to be easi
On Mon, 04 Jul 2011, Glauber Costa wrote:
> Since in a later patch I intend to call jump labels inside
> CONFIG_PARAVIRT, IA64 would fail to compile if they are not
> provided. This patch provides those jump labels for the IA64
> architecture.
>
> Signed-off-by: Glauber Costa
> CC: Isaku Yamahat
On Mon, 04 Jul 2011, Glauber Costa wrote:
> This patch accounts steal time time in account_process_tick.
> If one or more tick is considered stolen in the current
> accounting cycle, user/system accounting is skipped. Idle is fine,
> since the hypervisor does not report steal time if the guest
> i
On Mon, 04 Jul 2011, Glauber Costa wrote:
> This patch makes update_rq_clock() aware of steal time.
> The mechanism of operation is not different from irq_time,
> and follows the same principles. This lives in a CONFIG
> option itself, and can be compiled out independently of
> the rest of steal t
On Mon, 04 Jul 2011, Glauber Costa wrote:
> This patch implements the kvm bits of the steal time infrastructure.
> The most important part of it, is the steal time clock. It is an
> continuous clock that shows the accumulated amount of steal time
> since vcpu creation. It is supposed to survive cp
On Mon, 04 Jul 2011, Glauber Costa wrote:
> From: Gleb Natapov
>
> Introduce kvm_read_guest_cached() function in addition to write one we
> already have.
>
> [ by glauber: export function signature in kvm header ]
>
> Signed-off-by: Gleb Natapov
> Signed-off-by: Glauber Costa
Tested-by: Eri
Fix a typo and verify if virtio_network_installer
is actually set to something before trying to use
it as a class attribute.
Signed-off-by: Lucas Meneghel Rodrigues
---
client/tests/kvm/tests/unattended_install.py |5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/clien
On Tue, Jul 5, 2011 at 4:36 PM, Raghavendra D Prabhu
wrote:
> * On Mon, Jul 04, 2011 at 11:38:30PM +0100, Peter Maydell
> wrote:
>>
>> On 4 July 2011 23:00, Raghavendra D Prabhu
>> wrote:
>>>
>>> This is to avoid gcc optimizating out the comparison in assert,
>>> due to assumption of signed over
The original config was making harder to maintain custom config files
with virtio drivers install enabled. So, rather than doing a whitelist
of OSs, just make a not very strict blacklist, just to help users, and
not block them.
Signed-off-by: Lucas Meneghel Rodrigues
---
client/tests/kvm/tests_b
On Thu, Jun 30, 2011 at 04:20:58PM +0800, Xiao Guangrong wrote:
> If the page fault is caused by mmio, we can cache the mmio info, later, we do
> not need to walk guest page table and quickly know it is a mmio fault while we
> emulate the mmio instruction
>
> Signed-off-by: Xiao Guangrong
> ---
>
On Thu, Jun 30, 2011 at 04:21:30PM +0800, Xiao Guangrong wrote:
> If dirty bit is not set, we can make the pte access read-only to avoid handing
> dirty bit everywhere
>
> Signed-off-by: Xiao Guangrong
> -static unsigned FNAME(gpte_access)(struct kvm_vcpu *vcpu, pt_element_t gpte)
> +static unsi
https://bugzilla.kernel.org/show_bug.cgi?id=38672
--- Comment #5 from Steve 2011-07-05 23:00:47 ---
I tested reported bug on more servers also with kernel 3.0.0-rc6+ -> same
result.
git bisect result:
6506e4f995967b1a48cc34418c77b318df92ce35 is the first bad commit
commit 6506e4f995967b1a4
https://bugzilla.kernel.org/show_bug.cgi?id=38672
--- Comment #6 from Steve 2011-07-05 23:44:45 ---
Here is bug (xen-mapcache.c):
void qemu_map_cache_init(void)
{
->mapcache->entry = qemu_mallocz(size);
should be:
mapcache->entry = qemu_mallocz(size*sizeof(MapCacheEntry));
}
https://bugzilla.kernel.org/show_bug.cgi?id=38672
--- Comment #7 from Steve 2011-07-05 23:54:31 ---
After applying above simple fix all tested guests started & running correctly.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail b
On 07/06/2011 03:04 AM, Marcelo Tosatti wrote:
return 0;
>>
>> /* mmio */
>> -if (is_error_pfn(pfn))
>> -return kvm_handle_bad_page(vcpu->kvm, walker.gfn, pfn);
>> +if (is_error_pfn(pfn)) {
>> +unsigned access = walker.pte_access;
>> +
On 07/06/2011 03:27 AM, Marcelo Tosatti wrote:
> On Thu, Jun 30, 2011 at 04:21:30PM +0800, Xiao Guangrong wrote:
>> If dirty bit is not set, we can make the pte access read-only to avoid
>> handing
>> dirty bit everywhere
>>
>> Signed-off-by: Xiao Guangrong
>
>> -static unsigned FNAME(gpte_acces
One of the problems with virtio drivers install is
that the configuration needed to get it done was
scattered around the pretty large tests_base.cfg.sample
file. So, separate the relevant configuration from
that file and create a file dedicated to be the
central point of configuration for virtio dr
On 07/05/2011 05:00 PM, Yang, Wei wrote:
> This patch adds SMEP to all test cases and checks SMEP when
> cr0.wp=0.
>
> changes since v2: Recover U/S bit after turning off SMEP and correct
> the title changes since v1: Add SMEP to all test cases and verify it
> before setting cr4
>
>
Reviewed-by
This patch adds SMEP to all test cases and checks SMEP when cr0.wp=0.
changes since v3:
Add Reviewed-by
changes since v2:
Recover U/S bit after turning off SMEP and correct the title
changes since v1:
Add SMEP to all test cases and verify it before setting cr4
Signed-o
On Fri, Jul 01, 2011 at 07:58:45PM +0300, Dan Carpenter wrote:
> On Fri, Jul 01, 2011 at 07:31:54AM -0700, Dan Magenheimer wrote:
> > > Off by one errors are kind of insidious. People cut and paste them
> > > and they spread. If someone adds a new list of chunks then there
> > > are now two examp
On 07/04/2011 11:32 AM, Glauber Costa wrote:
From: Gleb Natapov
Introduce kvm_read_guest_cached() function in addition to write one we
already have.
[ by glauber: export function signature in kvm header ]
Signed-off-by: Gleb Natapov
Signed-off-by: Glauber Costa
Acked-by: Rik van Riel
--
Al
On 07/04/2011 11:32 AM, Glauber Costa wrote:
This patch is simple, put in a different commit so it can be more easily
shared between guest and hypervisor. It just defines a named constant
to indicate the enable bit for KVM-specific MSRs.
Signed-off-by: Glauber Costa
CC: Rik van Riel
CC: Jeremy F
On 07/04/2011 11:32 AM, Glauber Costa wrote:
To implement steal time, we need the hypervisor to pass the guest information
about how much time was spent running other processes outside the VM.
This is per-vcpu, and using the kvmclock structure for that is an abuse
we decided not to make.
In this
Hi guys,
On an effort to make KVM autotest better and more useful for our target
users (KVM developers), we are expanding documentation and writing
articles on how to get some commonly asked test jobs running (I plan on
get this going at least for some weeks).
So here is our first KVM autotest ti
On Mon, 2011-07-04 at 17:59 +0300, Avi Kivity wrote:
> On 07/04/2011 05:52 PM, Sasha Levin wrote:
> > >
> > > I can't really see that as useful. eventfds destroy information;
> > > without datamatch, you have no idea what value was written. Even with
> > > datamatch, you have no idea how many
This patch removes the 8 byte length limit on ioeventfds.
The consequences are that any write in the provided region
which is contained entierly by the region and matches datamatch
(if specified) will trigger an event.
Cc: Avi Kivity
Cc: Ingo Molnar
Cc: Marcelo Tosatti
Cc: Michael S. Tsirkin
Add get_val() and set_val() to help getting and setting a natural
sized variable pointed by a void ptr.
Signed-off-by: Sasha Levin
---
virt/kvm/eventfd.c | 57 ++-
1 files changed, 42 insertions(+), 15 deletions(-)
diff --git a/virt/kvm/eventfd.
The new flag specifies whether reads from the address specified
in the ioeventfd will raise the event like writes do.
The read value will be the one passed in datamatch.
Cc: Avi Kivity
Cc: Ingo Molnar
Cc: Marcelo Tosatti
Cc: Michael S. Tsirkin
Cc: Pekka Enberg
Signed-off-by: Sasha Levin
---
The new flag specifies whether writes to the address specified
in the ioeventfd shouldn't raise the event.
Cc: Avi Kivity
Cc: Ingo Molnar
Cc: Marcelo Tosatti
Cc: Michael S. Tsirkin
Cc: Pekka Enberg
Signed-off-by: Sasha Levin
---
Documentation/virtual/kvm/api.txt |5 +
include/linux/
The new flag allows passing a connected socket instead of an
eventfd to be notified of writes or reads to the specified memory region.
Instead of signaling an event, On write - the value written to the memory
region is written to the pipe.
On read - a notification of the read is sent to the host,
On 07/05/2011 05:21 PM, Stefan Hajnoczi wrote:
On Tue, Jul 5, 2011 at 12:03 PM, Hannes Reinecke wrote:
+static void megasas_unmap_sgl(struct megasas_cmd_t *cmd)
+{
+uint16_t flags = le16_to_cpu(cmd->frame->header.flags);
+int i, is_write = (flags& MFI_FRAME_DIR_WRITE) ? 1 : 0;
+
+f
86 matches
Mail list logo