Re: [Qemu-devel] [RFC PATCH 7/7] cpus: reclaim allocated vCPU objects

2014-07-30 Thread Anshul Makkar
the cpu with cpuid = x available in the parked list and we can reuse it. Am I missing something or this bit is yet to be implmented. Thanks Anshul Makkar On Fri, Jul 18, 2014 at 4:09 AM, Gu Zheng guz.f...@cn.fujitsu.com wrote: Hi Anshul, On 07/18/2014 12:24 AM, Anshul Makkar wrote: Are we

[Qemu-devel] cpu-del support over and above the RFC patches for cpu-hotunplug

2014-08-01 Thread Anshul Makkar
; +} if (cpu == first_cpu) { fprintf(stderr, Unable to delete the last one cpu.\n); return; } xcc = X86_CPU_GET_CLASS(DEVICE(cpu)); xcc-parent_unrealize(DEVICE(cpu), errp); } Anshul Makkar wwwdotjustkerneldotcom

Re: [Qemu-devel] [RFC PATCH 7/7] cpus: reclaim allocated vCPU objects

2014-08-01 Thread Anshul Makkar
Hi Gu, Thanks for clarifying. Ah I missed that bit of the patch. Sorry about that and for making noise. Yes, now cpu-hotplug and unplug works fine. Next week I plan to run a series of automated and stress test. Will keep the group posted about the results. Thanks Anshul Makkar On Fri, Aug 1

Re: [Qemu-devel] [RFC PATCH 10/10] cpus: reclaim allocated vCPU objects

2014-08-07 Thread Anshul Makkar
, then cpu 4 gets added and now if I try to do add cpu 4 or 6, it says cpu already exist.. Its a kind of vague behaviour.. Do, we follow any protocol here while adding and deleting cpus. Thanks Anshul Makkar www.justkernel.com On Thu, Aug 7, 2014 at 6:54 AM, Gu Zheng guz.f...@cn.fujitsu.com wrote

Re: [Qemu-devel] [RFC PATCH 10/10] cpus: reclaim allocated vCPU objects

2014-08-11 Thread Anshul Makkar
of cat /proc/cpuinfo . Please let me know if I am missing something . Thanks Anshul Makkar On Fri, Aug 8, 2014 at 7:48 AM, Gu Zheng guz.f...@cn.fujitsu.com wrote: Hi Anshul, On 08/07/2014 09:31 PM, Anshul Makkar wrote: Thanks Gu.. cpu-hotunplug is working fine in my tests. Thanks for your

Re: [Qemu-devel] [RFC PATCH 10/10] cpus: reclaim allocated vCPU objects

2014-08-12 Thread Anshul Makkar
Hi Gu, Looks more likely logic ordering to me based on indexes. Don't spend time looking into it, let me look into it if I have done something wrong and fix it . Thanks Anshul Makkar On Mon, Aug 11, 2014 at 4:35 PM, Anshul Makkar anshul.mak...@profitbricks.com wrote: Hi Gu, These are APIC

[Qemu-devel] change of mac address at runtime

2014-06-17 Thread Anshul Makkar
Hi, Just want to check this small piece of implementation detail in qemu. Is it possible to change the mac address of VM at runtime and does the same information is conveyed to host if we are using Virtio based transfers (approach). Thanks Anshul Makkar

[Qemu-devel] Feature list for 2.1

2014-05-13 Thread Anshul Makkar
Hi, The page http://wiki.qemu.org/Planning/1.2 just give the names of the features that will be implemented in 2.1. Where can I find the details about the same ? Thanks Anshul Makkar www.justkernel.com

Re: [Qemu-devel] Feature list for 2.1

2014-05-14 Thread Anshul Makkar
...@linaro.org wrote: On 13 May 2014 16:54, Anshul Makkar anshul.mak...@profitbricks.com wrote: The page http://wiki.qemu.org/Planning/1.2 just give the names of the features that will be implemented in 2.1. Wrong page -- 2.1 != 1.2 :-) Where can I find the details about the same ? I don't

[Qemu-devel] Common header file for error codes

2014-05-21 Thread Anshul Makkar
Hi, Doesn't there exist a common header file for all the return codes. In the code I can see return values as 0, -1 etc. Am I missing something or is this some work in progress. Thanks Anshul Makkar www.justkernel.com

Re: [Qemu-devel] [PATCH 33/35] pc: ACPI BIOS: reserve SRAT entry for hotplug mem hole

2014-05-27 Thread Anshul Makkar
be always sure of that OST_FAILURE event will be sent in case of failure. Please can you share your thoughts here. Thanks Anshul Makkar www.justkernel.com On Tue, May 6, 2014 at 3:00 PM, Vasilis Liaskovitis vasilis.liaskovi...@profitbricks.com wrote: On Tue, May 06, 2014 at 09:52:39AM +0800, Hu Tao

Re: [Qemu-devel] [PATCH v10 00/18] Vhost and vhost-net support for userspace based backends

2014-05-28 Thread Anshul Makkar
here, please can you share your thoughts. Thanks Anshul Makkar www.justkernel.com On Tue, May 27, 2014 at 2:03 PM, Nikolay Nikolaev n.nikol...@virtualopensystems.com wrote: In this patch series we would like to introduce our approach for putting a virtio-net backend in an external userspace

Re: [Qemu-devel] [PATCH v3 22/34] trace: add acpi memory hotplug IO region events

2014-05-28 Thread Anshul Makkar
Hi, Sorry, for this basic question. Do the above trace function lead to some printfs which will be helpful for debugging. If yes, where I can see the trace logs. I have not been able to find the definition of these trace functions. Thanks Anshul Makkar www.justkernel.com On Tue, May 27, 2014

Re: [Qemu-devel] status of cpu hotplug work for x86_64?

2014-05-28 Thread Anshul Makkar
Hi, But where are the patches. The links shared are just sites where discussion about patches is going on. Are there any public repositories from where I can find proper patches ? Thanks Anshul Makkar. On Fri, May 2, 2014 at 3:35 PM, Igor Mammedov imamm...@redhat.com wrote: On Fri, 2 May 2014

Re: [Qemu-devel] Qemu-devel Digest, Vol 133, Issue 401

2014-05-02 Thread Anshul Makkar
/qemu/commit/55c9540919e189b0ad2e6a759af742080f8f5dc4 ? Thanks Anshul Makkar

[Qemu-devel] Patchset for memory hot unplugging.

2014-05-02 Thread Anshul Makkar
Please can you share the patchset for memory hot unplugging. Is this the correct commit I am looking at https://github.com/taohu/qemu/commit/55c9540919e189b0ad2e6a759af742080f8f5dc4 Thanks Anshul Makkar

Re: [Qemu-devel] Help debugging audio problem

2014-07-04 Thread Anshul Makkar
modularity was another aim of my redesigning. Anshul Makkar On Thu, Jul 3, 2014 at 9:10 AM, Markus Armbruster arm...@redhat.com wrote: Programmingkid programmingk...@gmail.com writes: What does this code mean? if (!glue (s-nb_hw_voices_, TYPE)) { return NULL; } The code is found

[Qemu-devel] virtio + virtq + iommu

2014-07-08 Thread Anshul Makkar
leads to hardware MMU call. We are developing a high speed packet transfer mechanism using infiniband cards. So, trying to analyse every possible bottleneck. Confused here, please suggest. Anshul Makkar www.justkernel.com

[Qemu-devel] live migration + licensing issue.

2014-07-08 Thread Anshul Makkar
issue as after migration Windows will see a new hardware beneath it. Any suggestion as to how to overcome this problem. Thanks Anshul Makkar www.justkernel.com

Re: [Qemu-devel] virtio + virtq + iommu

2014-07-09 Thread Anshul Makkar
Hi, Any suggestions. Anshul Makkar On Tue, Jul 8, 2014 at 5:21 PM, Anshul Makkar anshul.mak...@profitbricks.com wrote: Hi, Was tracing the buffer handling code flow after the kick has been initiated from the guest in case of virtio. Found this function cpu_physical_memory_map

Re: [Qemu-devel] live migration + licensing issue.

2014-07-09 Thread Anshul Makkar
understanding is wrong here or i am missing something. Anshul Makkar On Tue, Jul 8, 2014 at 6:25 PM, Andreas Färber afaer...@suse.de wrote: Hi, Am 08.07.2014 17:24, schrieb Anshul Makkar: In our data center we are using qemu 1.0/ 1.2 and we need to do a live migration to qemu 2.0. One

Re: [Qemu-devel] live migration + licensing issue.

2014-07-09 Thread Anshul Makkar
Thanks. I got the point. Anshul Makkar On Wed, Jul 9, 2014 at 9:36 AM, Markus Armbruster arm...@redhat.com wrote: Anshul Makkar anshul.mak...@profitbricks.com writes: Hi, Yeah, I am aware of this option. But the point where I am concerned is that if Windows VM is running in QEMU 1.0

Re: [Qemu-devel] live migration + licensing issue.

2014-07-11 Thread Anshul Makkar
from pc model 1.0 in qemu 1.0 to pc model 2.0 (pc-i440fx-2.1) to qemu 2.0. Yeah, true, if we have to avoid the licensing issue then we have to use same PC model. Anshul Makkar On Fri, Jul 11, 2014 at 1:19 AM, Eric Blake ebl...@redhat.com wrote: On 07/08/2014 03:10 PM, Anshul Makkar wrote: Hi

Re: [Qemu-devel] live migration + licensing issue.

2014-07-11 Thread Anshul Makkar
Hi Andreas, the point is that the machine version on the destination side needs to match the source side. I hope this is just to avoid the licensing issue. Else, in all other circumstance, we can specify different pc models while migrating from source to destination. Anshul Makkar On Wed, Jul 9

Re: [Qemu-devel] live migration + licensing issue.

2014-07-11 Thread Anshul Makkar
changed in pc-model 2.0 and qemu2.0 uses this changed model). QEMU 2.0 will only go with pc-model 2.0 wrt to LVS. Am I correct here ? Does the only solution is to shutdown the VM, upgrade qemu and then start with new QEMU and new PC model . Anshul Makkar

Re: [Qemu-devel] [RFC PATCH 7/7] cpus: reclaim allocated vCPU objects

2014-07-17 Thread Anshul Makkar
which I can release, if the intent is to add this command. Thanks Anshul Makkar On Fri, Jul 11, 2014 at 11:59 AM, Gu Zheng guz.f...@cn.fujitsu.com wrote: After ACPI get a signal to eject a vCPU, the vCPU must be removed from CPU list,before the vCPU really removed, then release the all related

Re: [Qemu-devel] virtio + virtq + iommu

2014-07-18 Thread Anshul Makkar
of these architectures for emulating iommu for x86 ? Anshul Makkar On Tue, Jul 8, 2014 at 5:21 PM, Anshul Makkar anshul.mak...@profitbricks.com wrote: Hi, Was tracing the buffer handling code flow after the kick has been initiated from the guest in case of virtio. Found this function cpu_physical_memory_map

Re: [Qemu-devel] [PATCH 00/35] pc: ACPI memory hotplug

2014-08-25 Thread Anshul Makkar
in progress. If its already been supported or still a work in progress, please can you share the relevant links/patches. Sorry, if I have missed any latest patches that support Windows memory hot remove. Thanks Anshul Makkar On Wed, May 7, 2014 at 11:15 AM, Stefan Priebe - Profihost AG s.pri

[Qemu-devel] block IO latency tracker without using QMP socket.

2014-08-27 Thread Anshul Makkar
the constraint that I can't use qmp socket or if any alternative is possible. Thanks Anshul Makkar www.justkernel.com

Re: [Qemu-devel] [RFC V2 10/10] cpus: reclaim allocated vCPU objects

2014-09-11 Thread Anshul Makkar
Bharata, this not expected. info cpus should indicate report proper number of cpus after deletion. Anshul Makkar On Thu, Sep 11, 2014 at 11:35 AM, Bharata B Rao bharata@gmail.com wrote: from

Re: [Qemu-devel] [RFC V2 10/10] cpus: reclaim allocated vCPU objects

2014-09-12 Thread Anshul Makkar
During plugging we can see this event: echo 1 cpu8/online. But during unplugging , we can't see the event echo 0 cpu8/online. Just for additional check, in my code I have added following udev rule echo 0 cpu[0-9]*/online. May be this is of any help. Thanks Anshul Makkar On Fri, Sep 12

Re: [Qemu-devel] [RFC V2 10/10] cpus: reclaim allocated vCPU objects

2014-09-12 Thread Anshul Makkar
I have tested with 3.11 kernel, Kernel should be fine.. But it wouldn't harm testing with latest kernel, may be it can provide some extra hints.. Anshul Makkar On Fri, Sep 12, 2014 at 3:52 PM, Bharata B Rao bharata@gmail.com wrote: On Fri, Sep 12, 2014 at 4:23 PM, Anshul Makkar anshul.mak

Re: [Qemu-devel] [RFC V2 10/10] cpus: reclaim allocated vCPU objects

2014-09-15 Thread Anshul Makkar
with fedora 20 (unmodified kernel) and cpu-plug/unplug is working fine. Thanks Anshul Makkar On Mon, Sep 15, 2014 at 12:09 PM, Bharata B Rao bharata@gmail.com wrote: _EJ0 doesn't exist in my DSDT.

Re: [Qemu-devel] [RFC V2 10/10] cpus: reclaim allocated vCPU objects

2014-09-15 Thread Anshul Makkar
Great !! Anshul Makkar On Mon, Sep 15, 2014 at 3:53 PM, Bharata B Rao bharata@gmail.com wrote: On Mon, Sep 15, 2014 at 4:03 PM, Anshul Makkar anshul.mak...@profitbricks.com wrote: That explains the cause. Please verify you have the iasl compiler installed and are not using

Re: [Qemu-devel] vhost-user:why region[0] always mmap failed ?

2014-10-15 Thread Anshul Makkar
Hi, Please can you share in what scenario this mapping fails. I am not seeing any such issue. Thanks Anshul Makkar On Wed, Sep 17, 2014 at 10:33:23AM +0800, Linhaifeng wrote: Hi, There is two memory regions when receive VHOST_SET_MEM_TABLE message: region[0] gpa = 0x0

Re: [Qemu-devel] Sending packets up to VM using vhost-net User.

2014-11-18 Thread Anshul Makkar
Sorry, forgot to mention I am using git clone -b vhost-user-v5 https://github.com/virtualopensystems/qemu.git; for vhost-user backend implementation. and git clone https://github.com/virtualopensystems/vapp.git for reference implementation. Anshul Makkar On Tue, Nov 18, 2014 at 5:29 PM

[Qemu-devel] Sending packets up to VM using vhost-net User.

2014-11-18 Thread Anshul Makkar
virtio-net that a packet is available or you can smell some implementation problem. Thanks Anshul Makkar

Re: [Qemu-devel] Sending packets up to VM using vhost-net User.

2014-11-19 Thread Anshul Makkar
Any suggestions here.. Thanks Anshul Makkar On Tue, Nov 18, 2014 at 5:34 PM, Anshul Makkar anshul.mak...@profitbricks.com wrote: Sorry, forgot to mention I am using git clone -b vhost-user-v5 https://github.com/virtualopensystems/qemu.git; for vhost-user backend implementation. and git

[Qemu-devel] directly inject packet in vrings and not use NetClient APIs

2014-11-19 Thread Anshul Makkar
the guest. (ifconfig eth0 RX counter is unchanged. tcpdump also doesn't detect any packets.) . I don't want to use any NetClient APIs and want to directly inject packets into the guest vring. Please can you share if my approach and understanding is correct. Thanks Anshul Makkar

Re: [Qemu-devel] directly inject packet in vrings and not use NetClient APIs

2014-11-19 Thread Anshul Makkar
Thanks Luke.. Ok, so theoretically it should work. That's useful suggestions. Let me debug virtio-net driver for possible cause. Thanks Anshul Makkar On Wed, Nov 19, 2014 at 6:39 PM, Luke Gorrie l...@snabb.co wrote: Hi Anshul, On Wednesday, November 19, 2014, Anshul Makkar anshul.mak

[Qemu-devel] virtio-net path after kick

2014-12-17 Thread Anshul Makkar
and virtio_pci.c. Sorry if I have missed anything, but I have been trying hard to understand and implement this packet path from app to qemu via direct kicking but so far failed. Please can you share your suggestions as to where to look after in qemu code after I kick from my app. Thanks Anshul Makkar

Re: [Qemu-devel] CUSE-TPM : Win 10 reports TPM device doesn't have sufficient resources

2017-04-21 Thread Anshul Makkar
Yes, v2.8.0+tpm branch worked. Thanks Stefan. Anshul From: Stefan Berger [mailto:stef...@us.ibm.com] Sent: 18 April 2017 19:47 To: Anshul Makkar <anshul.mak...@citrix.com> Cc: qemu-devel@nongnu.org Subject: Re: CUSE-TPM : Win 10 reports TPM device doesn't have sufficient resources You ma

[Qemu-devel] CUSE-TPM : Win 10 reports TPM device doesn't have sufficient resources

2017-04-18 Thread anshul makkar
0081 Commands to start vTPM: swtpm_cuse -M 260 -m 1 -n vtpm0 qemu-system-x86_64 -enable-kvm -m 1024 -boot d -bios bios.bin -boot menu=on -tpmdev cuse-tpm,id=tpm0,path=/dev/vtpm0 -device tpm-tis,tpmdev=tpm0 win.img Please suggest if I am missing anything . Thanks Anshul Makkar