Message ID | 20211110220731.2396491-1-brijesh.singh@amd.com (mailing list archive) |
---|---|
Headers | show |
Series | Add AMD Secure Nested Paging (SEV-SNP) Guest Support | expand |
On 2021-11-10 16:06:46 -0600, Brijesh Singh wrote: > This part of Secure Encrypted Paging (SEV-SNP) series focuses on the changes > required in a guest OS for SEV-SNP support. > > SEV-SNP builds upon existing SEV and SEV-ES functionality while adding > new hardware-based memory protections. SEV-SNP adds strong memory integrity > protection to help prevent malicious hypervisor-based attacks like data > replay, memory re-mapping and more in order to create an isolated memory > encryption environment. > > This series provides the basic building blocks to support booting the SEV-SNP > VMs, it does not cover all the security enhancement introduced by the SEV-SNP > such as interrupt protection. > > Many of the integrity guarantees of SEV-SNP are enforced through a new > structure called the Reverse Map Table (RMP). Adding a new page to SEV-SNP > VM requires a 2-step process. First, the hypervisor assigns a page to the > guest using the new RMPUPDATE instruction. This transitions the page to > guest-invalid. Second, the guest validates the page using the new PVALIDATE > instruction. The SEV-SNP VMs can use the new "Page State Change Request NAE" > defined in the GHCB specification to ask hypervisor to add or remove page > from the RMP table. > > Each page assigned to the SEV-SNP VM can either be validated or unvalidated, > as indicated by the Validated flag in the page's RMP entry. There are two > approaches that can be taken for the page validation: Pre-validation and > Lazy Validation. > > Under pre-validation, the pages are validated prior to first use. And under > lazy validation, pages are validated when first accessed. An access to a > unvalidated page results in a #VC exception, at which time the exception > handler may validate the page. Lazy validation requires careful tracking of > the validated pages to avoid validating the same GPA more than once. The > recently introduced "Unaccepted" memory type can be used to communicate the > unvalidated memory ranges to the Guest OS. > > At this time we only sypport the pre-validation, the OVMF guest BIOS > validates the entire RAM before the control is handed over to the guest kernel. > The early_set_memory_{encrypt,decrypt} and set_memory_{encrypt,decrypt} are > enlightened to perform the page validation or invalidation while setting or > clearing the encryption attribute from the page table. > > This series does not provide support for the Interrupt security yet which will > be added after the base support. > > The series is based on tip/master > ea79c24a30aa (origin/master, origin/HEAD, master) Merge branch 'timers/urgent' I am looking at https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git, and I cannot find the commit ea79c24a30aa there. Am I looking at the wrong tree? Venu > > Additional resources > --------------------- > SEV-SNP whitepaper > https://www.amd.com/system/files/TechDocs/SEV-SNP-strengthening-vm-isolation-with-integrity-protection-and-more.pdf > > APM 2: https://www.amd.com/system/files/TechDocs/24593.pdf > (section 15.36) > > GHCB spec: > https://developer.amd.com/wp-content/resources/56421.pdf > > SEV-SNP firmware specification: > https://developer.amd.com/sev/ > > v6: https://lore.kernel.org/linux-mm/20211008180453.462291-1-brijesh.singh@amd.com/ > v5: https://lore.kernel.org/lkml/20210820151933.22401-1-brijesh.singh@amd.com/ > > Changes since v6: > * Add rmpadjust() helper to be used by AP creation and vmpl0 detect function. > * Clear the VM communication key if guest detects that hypervisor is modifying > the SNP_GUEST_REQ response header. > * Move the per-cpu GHCB registration from first #VC to idt setup. > * Consolidate initial SEV/SME setup into a common entry point that gets called > early enough to also be used for SEV-SNP CPUID table setup. > * SNP CPUID: separate initial SEV-SNP feature detection out into standalone > snp_init() routines, then add CPUID table setup to it as a separate patch. > * SNP CPUID: fix boot issue with Seabios due to ACPI relying on certain EFI > config table lookup failures as fallthrough cases rather than error cases. > * SNP CPUID: drop the use of a separate init routines to handle pointer fixups > after switching to kernel virtual addresses, instead use a helper that uses > RIP-relative addressing to access CPUID table when either on identity mapping > or kernel virtual addresses. > > Changes since v5: > * move the seqno allocation in the sevguest driver. > * extend snp_issue_guest_request() to accept the exit_info to simplify the logic. > * use smaller structure names based on feedback. > * explicitly clear the memory after the SNP guest request is completed. > * cpuid validation: use a local copy of cpuid table instead of keeping > firmware table mapped throughout boot. > * cpuid validation: coding style fix-ups and refactor cpuid-related helpers > as suggested. > * cpuid validation: drop a number of BOOT_COMPRESSED-guarded defs/declarations > by moving things like snp_cpuid_init*() out of sev-shared.c and keeping only > the common bits there. > * Break up EFI config table helpers and related acpi.c changes into separate > patches. > * re-enable stack protection for 32-bit kernels as well, not just 64-bit > > Changes since v4: > * Address the cpuid specific review comment > * Simplified the macro based on the review feedback > * Move macro definition to the patch that needs it > * Fix the issues reported by the checkpath > * Address the AP creation specific review comment > > Changes since v3: > * Add support to use the PSP filtered CPUID. > * Add support for the extended guest request. > * Move sevguest driver in driver/virt/coco. > * Add documentation for sevguest ioctl. > * Add support to check the vmpl0. > * Pass the VM encryption key and id to be used for encrypting guest messages > through the platform drv data. > * Multiple cleanup and fixes to address the review feedbacks. > > Changes since v2: > * Add support for AP startup using SNP specific vmgexit. > * Add snp_prep_memory() helper. > * Drop sev_snp_active() helper. > * Add sev_feature_enabled() helper to check which SEV feature is active. > * Sync the SNP guest message request header with latest SNP FW spec. > * Multiple cleanup and fixes to address the review feedbacks. > > Changes since v1: > * Integerate the SNP support in sev.{ch}. > * Add support to query the hypervisor feature and detect whether SNP is supported. > * Define Linux specific reason code for the SNP guest termination. > * Extend the setup_header provide a way for hypervisor to pass secret and cpuid page. > * Add support to create a platform device and driver to query the attestation report > and the derive a key. > * Multiple cleanup and fixes to address Boris's review fedback. > > Borislav Petkov (3): > x86/sev: Get rid of excessive use of defines > x86/head64: Carve out the guest encryption postprocessing into a > helper > x86/sev: Remove do_early_exception() forward declarations > > Brijesh Singh (22): > x86/mm: Extend cc_attr to include AMD SEV-SNP > x86/sev: Shorten GHCB terminate macro names > x86/sev: Define the Linux specific guest termination reasons > x86/sev: Save the negotiated GHCB version > x86/sev: Add support for hypervisor feature VMGEXIT > x86/sev: Check SEV-SNP features support > x86/sev: Add a helper for the PVALIDATE instruction > x86/sev: Check the vmpl level > x86/compressed: Add helper for validating pages in the decompression > stage > x86/compressed: Register GHCB memory when SEV-SNP is active > x86/sev: Register GHCB memory when SEV-SNP is active > x86/sev: Add helper for validating pages in early enc attribute > changes > x86/kernel: Make the bss.decrypted section shared in RMP table > x86/kernel: Validate rom memory before accessing when SEV-SNP is > active > x86/mm: Add support to validate memory when changing C-bit > KVM: SVM: Define sev_features and vmpl field in the VMSA > x86/boot: Add Confidential Computing type to setup_data > x86/sev: Provide support for SNP guest request NAEs > x86/sev: Register SNP guest request platform device > virt: Add SEV-SNP guest driver > virt: sevguest: Add support to derive key > virt: sevguest: Add support to get extended report > > Michael Roth (16): > x86/compressed/64: detect/setup SEV/SME features earlier in boot > x86/sev: detect/setup SEV/SME features earlier in boot > x86/head: re-enable stack protection for 32/64-bit builds > x86/sev: move MSR-based VMGEXITs for CPUID to helper > KVM: x86: move lookup of indexed CPUID leafs to helper > x86/compressed/acpi: move EFI system table lookup to helper > x86/compressed/acpi: move EFI config table lookup to helper > x86/compressed/acpi: move EFI vendor table lookup to helper > KVM: SEV: Add documentation for SEV-SNP CPUID Enforcement > x86/compressed/64: add support for SEV-SNP CPUID table in #VC handlers > x86/boot: add a pointer to Confidential Computing blob in bootparams > x86/compressed: add SEV-SNP feature detection/setup > x86/compressed: use firmware-validated CPUID for SEV-SNP guests > x86/compressed/64: add identity mapping for Confidential Computing > blob > x86/sev: add SEV-SNP feature detection/setup > x86/sev: use firmware-validated CPUID for SEV-SNP guests > > Tom Lendacky (4): > KVM: SVM: Create a separate mapping for the SEV-ES save area > KVM: SVM: Create a separate mapping for the GHCB save area > KVM: SVM: Update the SEV-ES save area mapping > x86/sev: Use SEV-SNP AP creation to start secondary CPUs > > Documentation/virt/coco/sevguest.rst | 117 +++ > .../virt/kvm/amd-memory-encryption.rst | 28 + > arch/x86/boot/compressed/Makefile | 1 + > arch/x86/boot/compressed/acpi.c | 129 +-- > arch/x86/boot/compressed/efi.c | 178 ++++ > arch/x86/boot/compressed/head_64.S | 8 +- > arch/x86/boot/compressed/ident_map_64.c | 44 +- > arch/x86/boot/compressed/mem_encrypt.S | 36 - > arch/x86/boot/compressed/misc.h | 44 +- > arch/x86/boot/compressed/sev.c | 243 ++++- > arch/x86/include/asm/bootparam_utils.h | 1 + > arch/x86/include/asm/cpuid.h | 26 + > arch/x86/include/asm/msr-index.h | 2 + > arch/x86/include/asm/setup.h | 2 +- > arch/x86/include/asm/sev-common.h | 137 ++- > arch/x86/include/asm/sev.h | 96 +- > arch/x86/include/asm/svm.h | 171 +++- > arch/x86/include/uapi/asm/bootparam.h | 4 +- > arch/x86/include/uapi/asm/svm.h | 13 + > arch/x86/kernel/Makefile | 1 - > arch/x86/kernel/cc_platform.c | 2 + > arch/x86/kernel/cpu/common.c | 5 + > arch/x86/kernel/head64.c | 78 +- > arch/x86/kernel/head_64.S | 24 + > arch/x86/kernel/probe_roms.c | 13 +- > arch/x86/kernel/sev-shared.c | 554 +++++++++++- > arch/x86/kernel/sev.c | 838 ++++++++++++++++-- > arch/x86/kernel/smpboot.c | 3 + > arch/x86/kvm/cpuid.c | 17 +- > arch/x86/kvm/svm/sev.c | 24 +- > arch/x86/kvm/svm/svm.c | 4 +- > arch/x86/kvm/svm/svm.h | 2 +- > arch/x86/mm/mem_encrypt.c | 55 +- > arch/x86/mm/mem_encrypt_identity.c | 8 + > arch/x86/mm/pat/set_memory.c | 15 + > drivers/virt/Kconfig | 3 + > drivers/virt/Makefile | 1 + > drivers/virt/coco/sevguest/Kconfig | 9 + > drivers/virt/coco/sevguest/Makefile | 2 + > drivers/virt/coco/sevguest/sevguest.c | 743 ++++++++++++++++ > drivers/virt/coco/sevguest/sevguest.h | 98 ++ > include/linux/cc_platform.h | 8 + > include/linux/efi.h | 1 + > include/uapi/linux/sev-guest.h | 81 ++ > 44 files changed, 3524 insertions(+), 345 deletions(-) > create mode 100644 Documentation/virt/coco/sevguest.rst > create mode 100644 arch/x86/boot/compressed/efi.c > create mode 100644 arch/x86/include/asm/cpuid.h > create mode 100644 drivers/virt/coco/sevguest/Kconfig > create mode 100644 drivers/virt/coco/sevguest/Makefile > create mode 100644 drivers/virt/coco/sevguest/sevguest.c > create mode 100644 drivers/virt/coco/sevguest/sevguest.h > create mode 100644 include/uapi/linux/sev-guest.h > > -- > 2.25.1 >
On 11/15/21 9:56 AM, Venu Busireddy wrote: ... >> The series is based on tip/master >> ea79c24a30aa (origin/master, origin/HEAD, master) Merge branch 'timers/urgent' > > I am looking at > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7Cb83627413bf24921b15e08d9a8508a4a%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725887206373140%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=pZvyYsg1crWmsLTpGO4amfYxgUnI9TUy414burkbcdY%3D&reserved=0, > and I cannot find the commit ea79c24a30aa there. Am I looking at the > wrong tree? > Yes. You should use the tip [1] tree . [1] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/ thanks
On 2021-11-15 10:02:24 -0600, Brijesh Singh wrote: > > > On 11/15/21 9:56 AM, Venu Busireddy wrote: > ... > > > > The series is based on tip/master > > > ea79c24a30aa (origin/master, origin/HEAD, master) Merge branch 'timers/urgent' > > > > I am looking at > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7Cb83627413bf24921b15e08d9a8508a4a%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725887206373140%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=pZvyYsg1crWmsLTpGO4amfYxgUnI9TUy414burkbcdY%3D&reserved=0, > > and I cannot find the commit ea79c24a30aa there. Am I looking at the > > wrong tree? > > > > Yes. > > You should use the tip [1] tree . > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/ Same problem with tip.git too. bash-4.2$ git remote -v origin https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git (fetch) origin https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git (push) bash-4.2$ git branch * master bash-4.2$ git log --oneline | grep ea79c24a30aa bash-4.2$ Still missing something? Venu
On 11/15/21 10:37 AM, Venu Busireddy wrote: > On 2021-11-15 10:02:24 -0600, Brijesh Singh wrote: >> >> >> On 11/15/21 9:56 AM, Venu Busireddy wrote: >> ... >> >>>> The series is based on tip/master >>>> ea79c24a30aa (origin/master, origin/HEAD, master) Merge branch 'timers/urgent' >>> >>> I am looking at >>> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063489322%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CT%2BZ6Nm6pnvVGY%2B%2FmzK4gG1zxlMNQ1fn7ie6K%2FYueTQ%3D&reserved=0, >>> and I cannot find the commit ea79c24a30aa there. Am I looking at the >>> wrong tree? >>> >> >> Yes. >> >> You should use the tip [1] tree . >> >> [1] https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git%2F&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063499319%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=XnWIcW62nTrAcDLCkHFpOPv5%2BClg11wfyh0pJ9Dug2c%3D&reserved=0 > > Same problem with tip.git too. > > bash-4.2$ git remote -v > origin https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063499319%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=W%2BA8qZwPicXo7OSslFPqL8s8QRxzW9n68TX1B7MXFYQ%3D&reserved=0 (fetch) > origin https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063499319%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=W%2BA8qZwPicXo7OSslFPqL8s8QRxzW9n68TX1B7MXFYQ%3D&reserved=0 (push) > bash-4.2$ git branch > * master > bash-4.2$ git log --oneline | grep ea79c24a30aa > bash-4.2$ > > Still missing something? > I can see the base commit on my local clone and also on web interface https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=ea79c24a30aa27ccc4aac26be33f8b73f3f1f59c thanks
On 2021-11-15 10:45:48 -0600, Brijesh Singh wrote: > > > On 11/15/21 10:37 AM, Venu Busireddy wrote: > > On 2021-11-15 10:02:24 -0600, Brijesh Singh wrote: > > > > > > > > > On 11/15/21 9:56 AM, Venu Busireddy wrote: > > > ... > > > > > > > > The series is based on tip/master > > > > > ea79c24a30aa (origin/master, origin/HEAD, master) Merge branch 'timers/urgent' > > > > > > > > I am looking at > > > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063489322%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CT%2BZ6Nm6pnvVGY%2B%2FmzK4gG1zxlMNQ1fn7ie6K%2FYueTQ%3D&reserved=0, > > > > and I cannot find the commit ea79c24a30aa there. Am I looking at the > > > > wrong tree? > > > > > > > > > > Yes. > > > > > > You should use the tip [1] tree . > > > > > > [1] https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git%2F&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063499319%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=XnWIcW62nTrAcDLCkHFpOPv5%2BClg11wfyh0pJ9Dug2c%3D&reserved=0 > > > > Same problem with tip.git too. > > > > bash-4.2$ git remote -v > > origin https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063499319%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=W%2BA8qZwPicXo7OSslFPqL8s8QRxzW9n68TX1B7MXFYQ%3D&reserved=0 (fetch) > > origin https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063499319%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=W%2BA8qZwPicXo7OSslFPqL8s8QRxzW9n68TX1B7MXFYQ%3D&reserved=0 (push) > > bash-4.2$ git branch > > * master > > bash-4.2$ git log --oneline | grep ea79c24a30aa > > bash-4.2$ > > > > Still missing something? > > > > I can see the base commit on my local clone and also on web interface But can you see the commit ea79c24a30aa if you clone git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git? > https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=ea79c24a30aa27ccc4aac26be33f8b73f3f1f59c The web interface has the weird warning "Notice: this object is not reachable from any branch." Don't know what to make of that. Venu > > thanks
On 2021-11-15 10:55:32 -0600, Venu Busireddy wrote: > On 2021-11-15 10:45:48 -0600, Brijesh Singh wrote: > > > > > > On 11/15/21 10:37 AM, Venu Busireddy wrote: > > > On 2021-11-15 10:02:24 -0600, Brijesh Singh wrote: > > > > > > > > > > > > On 11/15/21 9:56 AM, Venu Busireddy wrote: > > > > ... > > > > > > > > > > The series is based on tip/master > > > > > > ea79c24a30aa (origin/master, origin/HEAD, master) Merge branch 'timers/urgent' > > > > > > > > > > I am looking at > > > > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063489322%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CT%2BZ6Nm6pnvVGY%2B%2FmzK4gG1zxlMNQ1fn7ie6K%2FYueTQ%3D&reserved=0, > > > > > and I cannot find the commit ea79c24a30aa there. Am I looking at the > > > > > wrong tree? > > > > > > > > > > > > > Yes. > > > > > > > > You should use the tip [1] tree . > > > > > > > > [1] https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git%2F&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063499319%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=XnWIcW62nTrAcDLCkHFpOPv5%2BClg11wfyh0pJ9Dug2c%3D&reserved=0 > > > > > > Same problem with tip.git too. > > > > > > bash-4.2$ git remote -v > > > origin https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063499319%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=W%2BA8qZwPicXo7OSslFPqL8s8QRxzW9n68TX1B7MXFYQ%3D&reserved=0 (fetch) > > > origin https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C566cca1a4ceb44dac52f08d9a85639fd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637725911063499319%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=W%2BA8qZwPicXo7OSslFPqL8s8QRxzW9n68TX1B7MXFYQ%3D&reserved=0 (push) > > > bash-4.2$ git branch > > > * master > > > bash-4.2$ git log --oneline | grep ea79c24a30aa > > > bash-4.2$ > > > > > > Still missing something? > > > > > > > I can see the base commit on my local clone and also on web interface > > But can you see the commit ea79c24a30aa if you clone > git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git? > > > https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=ea79c24a30aa27ccc4aac26be33f8b73f3f1f59c > > The web interface has the weird warning "Notice: this object is not > reachable from any branch." Don't know what to make of that. Just wanted to clarify. I am not interested in the commit ea79c24a30aa per se. I am trying to apply this patch series to a local copy of the tip. I tried applying to the top of the tree, and that failed. I tried to apply on top of commit ca7752caeaa7 (which appeared to be the closest commit to your description), and that also failed. I just need a commit on which I can successfully apply this series. Thanks, Venu > > Venu > > > > > thanks
On 11/16/21 9:45 AM, Venu Busireddy wrote: > On 2021-11-15 10:55:32 -0600, Venu Busireddy wrote: >> On 2021-11-15 10:45:48 -0600, Brijesh Singh wrote: >>> >>> >>> On 11/15/21 10:37 AM, Venu Busireddy wrote: >>>> On 2021-11-15 10:02:24 -0600, Brijesh Singh wrote: >>>>> >>>>> >>>>> On 11/15/21 9:56 AM, Venu Busireddy wrote: >>>>> ... >>>>> >>>>>>> The series is based on tip/master >>>>>>> ea79c24a30aa (origin/master, origin/HEAD, master) Merge branch 'timers/urgent' >>>>>> >>>>>> I am looking at >>>>>> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C527b875208904981677108d9a9183dba%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637726744508270539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=hfqoF4d95hWAY8%2BKW4t5UyrWIPAUuHOTvzTQGXyxQik%3D&reserved=0, >>>>>> and I cannot find the commit ea79c24a30aa there. Am I looking at the >>>>>> wrong tree? >>>>>> >>>>> >>>>> Yes. >>>>> >>>>> You should use the tip [1] tree . >>>>> >>>>> [1] https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git%2F&data=04%7C01%7Cbrijesh.singh%40amd.com%7C527b875208904981677108d9a9183dba%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637726744508270539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=TDbL2dnzCp%2FlFHv6Tr%2Fn6QhFKL2kL3DFWj5BT6Abcms%3D&reserved=0 >>>> >>>> Same problem with tip.git too. >>>> >>>> bash-4.2$ git remote -v >>>> origin https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C527b875208904981677108d9a9183dba%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637726744508270539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=0qPjqphHSBSnpxOrPGDyJ7BF5O3fnTJtXQgnO0ZwCXY%3D&reserved=0 (fetch) >>>> origin https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git&data=04%7C01%7Cbrijesh.singh%40amd.com%7C527b875208904981677108d9a9183dba%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637726744508270539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=0qPjqphHSBSnpxOrPGDyJ7BF5O3fnTJtXQgnO0ZwCXY%3D&reserved=0 (push) >>>> bash-4.2$ git branch >>>> * master >>>> bash-4.2$ git log --oneline | grep ea79c24a30aa >>>> bash-4.2$ >>>> >>>> Still missing something? >>>> >>> >>> I can see the base commit on my local clone and also on web interface >> >> But can you see the commit ea79c24a30aa if you clone >> git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git? >> >>> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git%2Fcommit%2F%3Fid%3Dea79c24a30aa27ccc4aac26be33f8b73f3f1f59c&data=04%7C01%7Cbrijesh.singh%40amd.com%7C527b875208904981677108d9a9183dba%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637726744508270539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=mG4i3ZNHgyrS3Xkdxw%2BhkmfxvzFkS%2FpX0B3xHlxN0Nc%3D&reserved=0 >> >> The web interface has the weird warning "Notice: this object is not >> reachable from any branch." Don't know what to make of that. > > Just wanted to clarify. I am not interested in the commit ea79c24a30aa > per se. I am trying to apply this patch series to a local copy of the > tip. I tried applying to the top of the tree, and that failed. I tried > to apply on top of commit ca7752caeaa7 (which appeared to be the closest > commit to your description), and that also failed. I just need a commit > on which I can successfully apply this series. > At the time I pulled the tip, the said commit was valid and my entire series was generated against it. Its possible that commit is no longer valid in the recent tip (maybe due to force push). You can grab a staging tree from here https://github.com/AMDESE/linux/tree/snp-part1-v7. > Thanks, > > Venu > >> >> Venu >> >>> >>> thanks