Received: by 10.192.165.156 with SMTP id m28csp792471imm; Mon, 16 Apr 2018 08:47:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx49za1JIM7g9sySwvmasqatij9hdm4eUAA7+LZR9jDaiRKI29cvVwOVMzR5L+KqmEbeGb5yp X-Received: by 10.98.103.199 with SMTP id t68mr22234925pfj.24.1523893646775; Mon, 16 Apr 2018 08:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523893646; cv=none; d=google.com; s=arc-20160816; b=Aahl64kcfAlQWWfBOsVomrE+d0xZx/yrwfTOFVwbfAMbSD7PeQddUXXSPDeGINjcgT m/CAoe0McL5jG0GO2mnljPbSYMzRwF5/qBPA4i7ChNYuWv0tUbJ6q8RdklRpRj4R0Dkz cJd6qNA4dAiBrCUULcT0sAt97XHsw7oVv9n+ShenGH7GqviXKENK5IVnlPGJvLjaDfq/ HB1n1vDBq1G63rs5XxHdkZV5qUlIza1BgRO6WKfZA9lfmELYV0ILxS8Hq50w/AeDWPRM PKg40dnyqGScaayZzleHkF2FdAI478UJTjZbY49RGVnlkT8qEde4oqDL1SwYuFVA04ol dmVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=tFLF1cEseQkMLjvrXZZDR42wAHpUQmcLAgnesKURlDg=; b=aVf4c5OxkCeY9Ymqx1yzhTNSZJ+CaEKqeklIH5rf7rdK6ALTg25kxV5CGNc8TdPvUW MpELAadp97l+CFoR2+GqOH08verTMQvSf54p1m3dmHnyXHBBmv3v9NyguxUfuCUkpQv9 DeF8cJmp3xGvtwu7ALZhWfgbCc0RKuKem4+okgMIPvDrigqkQk9e4fKJK63yXfzlFpyo VKVFMsfLIgpe9OQWGdCUHqF5WaRoe7ONcVOq+UtPMYeEAbH+sXzdSN9CrLSye75F49Xa Xded2cqIPX3uE1AfraoiRAblbU7bAMeFjtI1zgukZ41viqPrVd+XjaKNgyYi+zJkbybX Z5HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YnRaMxWU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y73si3554125pgd.390.2018.04.16.08.47.12; Mon, 16 Apr 2018 08:47:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YnRaMxWU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752696AbeDPPpk (ORCPT + 99 others); Mon, 16 Apr 2018 11:45:40 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:35303 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752620AbeDPPpi (ORCPT ); Mon, 16 Apr 2018 11:45:38 -0400 Received: by mail-oi0-f66.google.com with SMTP id 10-v6so3187385oix.2 for ; Mon, 16 Apr 2018 08:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tFLF1cEseQkMLjvrXZZDR42wAHpUQmcLAgnesKURlDg=; b=YnRaMxWUZu7EzsFbdqlO5Mpw9qFaR3KCMCld15ivGOpVozUpDw0mfWMokt8f8ltXr/ Yz2Kde9QyNB/GeL97PwocIN+MEmdQCFisUGVOczXez4tuFcw324DdilBdQcEbYkcWI2/ 1VxTkzWDUtAWNWi1hyN6eTDTxY1PKHddYJEZI8cgQwB1EAOBwyMJyIOhKDMgJ4sXaEPR wowLfEWu3eCgWa9l7IuQYmw2TzgLshuqwErQR6aH0TC/MFPyL9nJFAiOpUhwf0Jq8IDN H2YsbWjAts0CIRdOnBigZqQGky4H6PbhSRDLLTi5NQhmq7WOL5+n/8q6Fab0dj3NwNlW nCGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tFLF1cEseQkMLjvrXZZDR42wAHpUQmcLAgnesKURlDg=; b=KnJeI+jvNAtQpsCOZ2C+uYSwZC0DnW15vbrVdRn8WAtcvu0idEi7ARNWI40xa86TL+ lly7/qOHL7+okSeRzBJ8+zRj3ATJEQO7lXI05QRI30fTaqUWCamYrFxEza8JbDDUJX3K 3VfOAQVtpUB+ovGAU/Au1+pt6G+tI0Wz9IfgCAE1LmPBQu75i32iNLJ3fkVa6rn3/Tsu AtwNwkWgmbm7OxpNPIz2j/r02WYhDK/ORuOx1SjldyJBaJtqHLKkQSGbwvZtKmLjBNPV tJDCS6ilUO9nYdDYnFDod4L6ytBN9NinhCJfoCdtVFDIA+ASanKY+K7wr00k3HNTuhpw U2KA== X-Gm-Message-State: ALQs6tDQUVNcRe0lNo5d80W2GajSxYhwtzK5wPlJtNWVWP+xn1yrmHzp epm+Hkf+6U4WtKo0nb184+hgp+cx4BTFLimygjZzXxBs X-Received: by 2002:aca:cc16:: with SMTP id c22-v6mr15991299oig.348.1523893537130; Mon, 16 Apr 2018 08:45:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.138.7.200 with HTTP; Mon, 16 Apr 2018 08:45:36 -0700 (PDT) In-Reply-To: References: <1523675452-27271-1-git-send-email-karahmed@amazon.de> From: Jim Mattson Date: Mon, 16 Apr 2018 08:45:36 -0700 Message-ID: Subject: Re: [PATCH v4] X86/KVM: Properly update 'tsc_offset' to represent the running guest To: Paolo Bonzini Cc: KarimAllah Ahmed , kvm list , LKML , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 16, 2018 at 4:04 AM, Paolo Bonzini wrote: > On 14/04/2018 05:10, KarimAllah Ahmed wrote: >> Update 'tsc_offset' on vmentry/vmexit of L2 guests to ensure that it alw= ays >> captures the TSC_OFFSET of the running guest whether it is the L1 or L2 >> guest. >> >> Cc: Jim Mattson >> Cc: Paolo Bonzini >> Cc: Radim Kr=C4=8Dm=C3=A1=C5=99 >> Cc: kvm@vger.kernel.org >> Cc: linux-kernel@vger.kernel.org >> Suggested-by: Paolo Bonzini >> Signed-off-by: KarimAllah Ahmed >> [AMD changes, fix update_ia32_tsc_adjust_msr. - Paolo] >> Signed-off-by: Paolo Bonzini Reviewed-by: Jim Mattson