Received: from eggs.gnu.org ([2001:4830:134:3::10]:47741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO5GF-0005QH-O7 for qemu-devel@nongnu.org; Thu, 13 Mar 2014 09:01:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WO5G8-0006tK-EA for qemu-devel@nongnu.org; Thu, 13 Mar 2014 09:01:23 -0400 Received: from indigo.cs.bgu.ac.il ([132.72.42.23]:41450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO5G8-0006sB-13 for qemu-devel@nongnu.org; Thu, 13 Mar 2014 09:01:16 -0400 Date: Thu, 13 Mar 2014 14:59:55 +0200 (IST) Message-Id: <201403131259.s2DCxtIT011218@indigo.cs.bgu.ac.il> From: Alexander Binun MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <53185BE2.4080101@redhat.com> Subject: [Qemu-devel] different IDTs of the same VCPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: yagel@cs.bgu.ac.il, kahilm@post.bgu.ac.il, Stefan Hajnoczi , qemu-devel@nongnu.org, boaz.menuhin@gmail.com, markbl@post.bgu.ac.il Dear Friends, Thanks for your assistance! We would like to ask you a question about the KVM internals. Our module includes a timer which (once in every second) fetches the IDT value of every online VCPU in the system using the kvm_x86_ops->get_idt ; the code looks like: struct kvm_vcpu *curr_vcpu; struct desc_ptr dt; list_for_each_entry(kvm, vms_list, vm_list) { for (i = 0; i < kvm->online_vcpus.counter; i++) { curr_vcpu = kvm->vcpus[i]; kvm_x86_ops->get_idt(curr_vcpu, &dt); } } We have noticed that get_idt returns DIFFERENT values for the same VCPU (i.e. for the same value of i that refers to a given VCPU). We cannot understand this issue; could you explain ? It is very strange since nobody changes the IDT value (as , for example, rootkits do). Regards, the Israeli KVM team