Re: How does kvm achieve an 'advanced' process separation

2015-01-29 Thread Jidong Xiao
On Thu, Jan 29, 2015 at 3:00 AM, Kun Cheng chengku...@gmail.com wrote: Hi, Fam Thanks for your reply. So a VM process cannot use IPC because it's not provided with certain abilities as the concerned resources or functions are hide (not virtualised or not provided) from it. But in another

Re: Windows 2008 Guest BSODS with CLOCK_WATCHDOG_TIMEOUT on VM migration

2015-01-27 Thread Jidong Xiao
On Tue, Jan 27, 2015 at 5:55 AM, Mikhail Sennikovskii mikhail.sennikovs...@profitbricks.com wrote: Hi all, I've posted the bolow mail to the qemu-dev mailing list, but I've got no response there. That's why I decided to re-post it here as well, and besides that I think this could be a

How does qemu know the virtual memory of the guest os?

2014-11-28 Thread Jidong Xiao
Hi, I notice that Qemu supports dump virtual memory of Guest OS. As this page suggests: http://doc.opensuse.org/products/draft/SLES/SLES-kvm_sd_draft/cha.qemu.monitor.html To save the content of the virtual machine memory to a disk or console output, use the following commands:

Where is the VM live migration code?

2014-11-17 Thread Jidong Xiao
Hi, I saw this page: http://www.linux-kvm.org/page/Migration. It looks like Migration is a feature provided by KVM? But when I look at the Linux kernel source code, i.e., virt/kvm, and arch/x86/kvm, I don't see the code for this migration feature. So I wonder where is the source code for the

Re: [Qemu-devel] Where is the VM live migration code?

2014-11-17 Thread Jidong Xiao
On Mon, Nov 17, 2014 at 5:29 PM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, I saw this page: http://www.linux-kvm.org/page/Migration. It looks like Migration is a feature provided by KVM? But when I look at the Linux kernel source code, i.e., virt/kvm, and arch/x86/kvm, I don't see the

Re: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Jidong Xiao
On Wed, Jul 2, 2014 at 2:14 PM, kan.li...@intel.com wrote: From: Kan Liang kan.li...@intel.com x86, perf: Protect LBR and offcore rsp against KVM lying With -cpu host, KVM reports LBR and offcore support, if the host has support. When the guest perf driver tries to access LBR or offcore_rsp

Re: [Qemu-devel] [questions] about KVM as a Microsoft-compatible hypervisor

2014-06-30 Thread Jidong Xiao
On Mon, Jun 30, 2014 at 6:02 AM, Vadim Rozenfeld vroze...@redhat.com wrote: On Mon, 2014-06-30 at 09:39 +0800, Zhang Haoyu wrote: Hi, Vadim I read the kvm-2012-forum paper KVM as a Microsoft-compatible hypervisor, Any update and other references, please? Thanks, Zhang Haoyu

Re: How to know that vPMU is enabled or disabled?

2014-06-24 Thread Jidong Xiao
On Mon, Jun 23, 2014 at 1:41 PM, Jidong Xiao jidong.x...@gmail.com wrote: Hi, All, I am using a virtual machine in a cloud environment, which means I am in control of the Guest OS, but have no access to the Host OS. Is there a simple way to know whether or not the vPMU is enabled or disabled

Re: How to know that vPMU is enabled or disabled?

2014-06-24 Thread Jidong Xiao
On Tue, Jun 24, 2014 at 4:38 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 24/06/2014 10:33, Jidong Xiao ha scritto: I think I have figured out this. According to this patch (as well as the Intel SDM manual), it looks like pmu is exposed via the cpuid leaf 0xah. https://github.com

How to know that vPMU is enabled or disabled?

2014-06-23 Thread Jidong Xiao
Hi, All, I am using a virtual machine in a cloud environment, which means I am in control of the Guest OS, but have no access to the Host OS. Is there a simple way to know whether or not the vPMU is enabled or disabled? Or, is there something I can control so as to turn its state from enable to

Re: How to know that vPMU is enabled or disabled?

2014-06-23 Thread Jidong Xiao
On Mon, Jun 23, 2014 at 1:41 PM, Jidong Xiao jidong.x...@gmail.com wrote: Hi, All, I am using a virtual machine in a cloud environment, which means I am in control of the Guest OS, but have no access to the Host OS. Is there a simple way to know whether or not the vPMU is enabled or disabled

Re: How does kvm support x2apic?

2014-06-11 Thread Jidong Xiao
On Wed, Jun 11, 2014 at 2:27 AM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. This patch is to emulate

Re: How does kvm support x2apic?

2014-06-11 Thread Jidong Xiao
On Wed, Jun 11, 2014 at 4:49 AM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. This patch is to emulate

Re: How does kvm support x2apic?

2014-06-11 Thread Jidong Xiao
On Wed, Jun 11, 2014 at 8:42 PM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. This patch is to emulate

How does kvm support x2apic?

2014-06-10 Thread Jidong Xiao
Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. However, this following patch:

Re: How does kvm support x2apic?

2014-06-10 Thread Jidong Xiao
On Tue, Jun 10, 2014 at 9:33 PM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. This patch is to emulate

Re: How does kvm support x2apic?

2014-06-10 Thread Jidong Xiao
On Tue, Jun 10, 2014 at 11:54 PM, Jidong Xiao jidong.x...@gmail.com wrote: On Tue, Jun 10, 2014 at 9:33 PM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting

Re: How does kvm support x2apic?

2014-06-10 Thread Jidong Xiao
On Wed, Jun 11, 2014 at 12:53 AM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. This patch is to emulate

Re: How does kvm support x2apic?

2014-06-10 Thread Jidong Xiao
On Wed, Jun 11, 2014 at 1:08 AM, Jidong Xiao jidong.x...@gmail.com wrote: On Wed, Jun 11, 2014 at 12:53 AM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting

Re: How to enable Pause Loop Exiting (PLE)?

2014-06-09 Thread Jidong Xiao
On Mon, Jun 9, 2014 at 3:16 AM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, I am using this tool for querying VMX capabilities. http://git.qemu.org/?p=qemu.git;a=blob_plain;f=scripts/kvm/vmxcap;hb=HEAD And it shows as below that pause-loop exiting is not enabled. My kernel is 3.14. secondary

How to enable Pause Loop Exiting (PLE)?

2014-06-08 Thread Jidong Xiao
Hi, I am using this tool for querying VMX capabilities. http://git.qemu.org/?p=qemu.git;a=blob_plain;f=scripts/kvm/vmxcap;hb=HEAD And it shows as below that pause-loop exiting is not enabled. My kernel is 3.14. secondary processor-based controls Virtualize APIC accesses yes

Re: How to enable Pause Loop Exiting (PLE)?

2014-06-08 Thread Jidong Xiao
On Sun, Jun 8, 2014 at 11:52 PM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, I am using this tool for querying VMX capabilities. http://git.qemu.org/?p=qemu.git;a=blob_plain;f=scripts/kvm/vmxcap;hb=HEAD And it shows as below that pause-loop exiting is not enabled. My kernel is 3.14. secondary

Re: How to enable Pause Loop Exiting (PLE)?

2014-06-08 Thread Jidong Xiao
On Sun, Jun 8, 2014 at 11:52 PM, Zhang Haoyu zhan...@sangfor.com wrote: Hi, I am using this tool for querying VMX capabilities. http://git.qemu.org/?p=qemu.git;a=blob_plain;f=scripts/kvm/vmxcap;hb=HEAD And it shows as below that pause-loop exiting is not enabled. My kernel is 3.14. secondary

Re: [PATCH] Qemu: Fix eax for cpuid leaf 0x40000000

2014-06-04 Thread Jidong Xiao
On Wed, Jun 4, 2014 at 3:09 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 04/06/2014 03:10, Jidong Xiao ha scritto: diff --git a/qemu-2.0.0/target-i386/kvm.c.orig b/qemu-2.0.0/target-i386/kvm.c index 4389959..b8b282d 100644 --- a/qemu-2.0.0/target-i386/kvm.c.orig +++ b/qemu-2.0.0/target

Re: [Qemu-devel] [PATCH] Qemu: Fix eax for cpuid leaf 0x40000000

2014-06-04 Thread Jidong Xiao
On Wed, Jun 4, 2014 at 3:08 PM, Bandan Das b...@redhat.com wrote: Jidong Xiao jidong.x...@gmail.com writes: On Wed, Jun 4, 2014 at 3:09 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 04/06/2014 03:10, Jidong Xiao ha scritto: diff --git a/qemu-2.0.0/target-i386/kvm.c.orig b/qemu-2.0.0

[PATCH] Fix typos and mark a local function as static in x86.c

2014-05-30 Thread Jidong Xiao
This patch fix typos in arch/x86/kvm/x86.c and mark the local function emulator_write_emulated() as static. Signed-off-by: Jidong Xiao jidong.x...@gmail.com --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 20316c6..5148562 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c

Re: Question about MSR_K7_HWCR in kvm_set_msr_common

2014-05-29 Thread Jidong Xiao
On Wed, May 28, 2014 at 4:14 AM, Jidong Xiao jidong.x...@gmail.com wrote: Hi, In kvm_set_msr_common(), I see that the follow piece of code will handle the write operation to the register MSR_K7_HWCR. case MSR_K7_HWCR: data = ~(u64)0x40; /* ignore flush filter disable

Question about MSR_K7_HWCR in kvm_set_msr_common

2014-05-28 Thread Jidong Xiao
Hi, In kvm_set_msr_common(), I see that the follow piece of code will handle the write operation to the register MSR_K7_HWCR. case MSR_K7_HWCR: data = ~(u64)0x40; /* ignore flush filter disable */ data = ~(u64)0x100; /* ignore ignne emulation enable */ data =

Re: Question about the kvm emulator

2014-05-22 Thread Jidong Xiao
Thanks Paolo, it's very clear. -Jidong On Thu, May 22, 2014 at 7:42 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 22/05/2014 05:55, Jidong Xiao ha scritto: Hi, I noticed that there is a file call emulate.c, under the directory of arch/x86/kvm/, in its header part, it says: Generic x86

Re: Naive questions regarding KVM

2014-05-22 Thread Jidong Xiao
On Fri, May 23, 2014 at 12:57 AM, Mathew Li mathew.li...@gmail.com wrote: Hi All, I want to learn KVM code. Apologies for asking really simple questions. I have Ubuntu 12.04 32bit installed on my laptop. As I understand there are two modules of the KVM. One is called kvm.ko and other arch

Question about the kvm emulator

2014-05-21 Thread Jidong Xiao
Hi, I noticed that there is a file call emulate.c, under the directory of arch/x86/kvm/, in its header part, it says: Generic x86 (32-bit and 64-bit) instruction decoder and emulator. I am confused about this, since qemu will be the emulator, why does kvm itself also includes such an emulator?

Re: How to measure time for program running in guest OS?

2012-01-24 Thread Jidong Xiao
Forward to kvm maillist. Thank you. -- Forwarded message -- From: Jidong Xiao jidong.x...@gmail.com Date: Mon, Jan 23, 2012 at 11:09 PM Subject: How to measure time for program running in guest OS? To: virtualizat...@lists.linux-foundation.org Hi, I am running a guest OS